<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>here is a new patch for ComputeSphereVisibility implementing Henri and Franck's idea.<br><br>The problem is that the test takes the value 0x3f once (if the test is correct), and that my function can not never obtain such a value.<br><br>Any idea to fix this problem.<br>Here is the only one link talking about ComputeSphereVisibility<br><br>http://209.85.135.104/search?q=cache:ZkQTOaa7h7UJ:salaam.cs.buap.mx/EBOOKS/IA/LIBROGAMES/Onlinebooks/Direct3D_Online/Chapter07/Chapter%25207.doc+computeSpherevisibility&hl=fr&ct=clnk&cd=16&gl=fr&client=firefox-a<br><br>Thanks for the help.<br><br>David<br>--- En date de : <b>Lun 17.11.08, Henri Verbeet <i><hverbeet@gmail.com></i></b> a écrit :<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">De: Henri Verbeet
<hverbeet@gmail.com><br>Objet: Re: ComputeSphereVisibility: a patch<br>À: "Frank Richter" <frank.richter@gmail.com><br>Cc: "paulo lesgaz" <jeremielapuree@yahoo.fr>, wine-devel@winehq.org<br>Date: Lundi 17 Novembre 2008, 0h21<br><br><pre>2008/11/15 Frank Richter <frank.richter@gmail.com>:<br>> On 14.11.2008 20:27, paulo lesgaz wrote:<br>>> Hi,<br>>><br>>> here is a patch for a first try to implement ComputeSphereVisibility.<br>>> Any feedback is welcome.<br>><br>> I think you can simplify the sphere-plane intersection. Just compute the<br>> signed distance D of the sphere center from the plane. If D > r, the<br>> sphere is visible. If -r <= D <= r, the sphere is partially visible.<br>if<br>> D < -r, it's invisible.<br>><br>Yeah, that's basically what I described in my earlier mail.<br></pre></blockquote></td></tr></table><br>