DX9 DepthBias

Brad Sweet

Newcomer
Joined
Jan 6, 2004
Messages
1
2004 Greetings,

DX9 documentation defines a depth offset as:

Offset = m * D3DRS_SLOPESCALEDEPTHBIAS + D3DRS_DEPTHBIAS

where m is the maximum depth slope of the triangle being rendered

For Z-Buffers...

1) Is this offset "added" to the computed z value after w divide, or is it in the range of the zbuffer?
2) What is the valid range of this offset (e.g. -1.0 to 1.0 or 0.0 to 1.0, etc.)? I.e. can I move a polygon towards me or only away?
3) Is this Offset applicable anytime a ZBuffer is ENABLED or only if D3DRS_ZWRITEENABLE is set to TRUE?

Thanks for all help,
Brad
 
Back
Top