Direct3D Z order question
stefandoesinger at gmx.at
Sun Feb 12 03:10:22 CST 2006
> Err reading your e-mail again, pardon my directx ignorance, but aren't
> all d3d z values supposed to be in the [0.0, 1.0] range? I thought that
> was the range for the z buffer. I recall reading that one of the main
> annoyance differences between OpenGL and D3D was OpenGL used [-1.0, 1.0]
> for depth and D3D used [0.0, 1.0].
You could be right, I have to do some more checks. But the Half-Life problem
could be caused by a bug in my ProcessVertices implementation. I interpreted
the results I got from windows and blindy implemented the viewport
conversation, and it seems that there are conflicts between my conversation
and the GL viewport setup.
However, the triangle problem remains. I have changed the code to use z=0.1
for the red triangle and z=0.9 for the blue one, and the blue triangle still
overlaps the red one on Windows. If I change the Z values, the result is
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20060212/ed960a79/attachment.pgp
More information about the wine-devel