Original Post
🔒 Locked
Z problem !!!
Advertisement
Try changing the D3DRS_CULLMODE from D3DCULL_CCW to D3DCULL_CW.
The winding order of your vertices may be counterclockwise whereas it should be clockwise.
Alternatively your Z buffer may be having problems:
a) make sure the distance between the near and far clipping plane is something sensible (i.e. we use about far-near=4000 for most things). If it isn''t you''ll be getting artifacts from the Z buffer.
b) Make sure your Clear() call has the flag enabled to clear the Z buffer as well as the frame buffer.
c) Make sure ZENABLE=D3DZB, ZWRITEENABLE=TRUE etc.
--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
The winding order of your vertices may be counterclockwise whereas it should be clockwise.
Alternatively your Z buffer may be having problems:
a) make sure the distance between the near and far clipping plane is something sensible (i.e. we use about far-near=4000 for most things). If it isn''t you''ll be getting artifacts from the Z buffer.
b) Make sure your Clear() call has the flag enabled to clear the Z buffer as well as the frame buffer.
c) Make sure ZENABLE=D3DZB, ZWRITEENABLE=TRUE etc.
--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement