ComputeSphereVisibility: a patch

paulo lesgaz jeremielapuree at
Mon Nov 17 00:48:05 CST 2008


here is a new patch for ComputeSphereVisibility implementing Henri and Franck's idea.

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.

Any idea to fix this problem.
Here is the only one link talking about ComputeSphereVisibility

Thanks for the help.

--- En date de : Lun 17.11.08, Henri Verbeet <hverbeet at> a écrit :
De: Henri Verbeet <hverbeet at>
Objet: Re: ComputeSphereVisibility: a patch
À: "Frank Richter" <frank.richter at>
Cc: "paulo lesgaz" <jeremielapuree at>, wine-devel at
Date: Lundi 17 Novembre 2008, 0h21

2008/11/15 Frank Richter <frank.richter at>:
> On 14.11.2008 20:27, paulo lesgaz wrote:
>> Hi,
>> here is a patch for a first try to implement ComputeSphereVisibility.
>> Any feedback is welcome.
> I think you can simplify the sphere-plane intersection. Just compute the
> signed distance D of the sphere center from the plane. If D > r, the
> sphere is visible. If -r <= D <= r, the sphere is partially visible.
> D < -r, it's invisible.
Yeah, that's basically what I described in my earlier mail.

-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-A-new-patch-for-ComputeSphereVisibility.patch
Type: application/octet-stream
Size: 12624 bytes
Desc: not available
Url : 

More information about the wine-devel mailing list