ComputeSphereVisibility: a patch

paulo lesgaz jeremielapuree at yahoo.fr
Sat Nov 15 13:11:38 CST 2008


Hello,

can anyone test the the following tests in a windows box, please?
The option to be given at the executable is  d3d.

Thanks in advance

David


--- En date de : Sam 15.11.08, Frank Richter <frank.richter at gmail.com> a écrit :
De: Frank Richter <frank.richter at gmail.com>
Objet: Re: ComputeSphereVisibility: a patch
À: "paulo lesgaz" <jeremielapuree at yahoo.fr>
Cc: wine-devel at winehq.org
Date: Samedi 15 Novembre 2008, 19h14

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. if
D < -r, it's invisible.

Also, wine people like tests. You should probably add some.

-f.r.




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20081115/7d552da3/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ddraw_crosstest.exe
Type: application/x-ms-dos-executable
Size: 1996116 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20081115/7d552da3/attachment-0001.bin 


More information about the wine-devel mailing list