Archived

This topic is now archived and is closed to further replies.

With D3DCULL whats difference of using Cull back clockwise/counterClockwise vertices?

This topic is 5041 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''m just curious with culling whats the difference between using the D3DCULL_CW(clockwise) and D3DCULL_CCW(counter clockwise)? Im using clockwise so far, but i cant see why we need the option of two ways of culling. Why is that? Thankyou

Share this post


Link to post
Share on other sites
with clockwise, vertices that wind clockwise around a triangle are culled, the reverse for counterclockwise. so, if you have a triangle on the screen that looks like:



1+
/ \
/ \
/ \
/ \
2+---------+3

this would be culled by D3DCULL_CCW, because the vertices go counterclockwise. if any two vertices were swapped, it would be culled by D3DCULL_CW

Share this post


Link to post
Share on other sites
That would be the correct definition. But to better understand it, D3DCULL_CCW culls all the faces turning away from the user, whereas D3DCULL_CW culls all the faces turning towards the user.

If you use D3DCULL_CCW, you''ll see the "outer" surfaces of objects, since only the back-facing polygons are culled. But if you turn on D3DCULL_CW, you''ll see only the back faces, or the polygons on the "inside" of your model.

Share this post


Link to post
Share on other sites