• Advertisement

Archived

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

D3D Vertex Order

This topic is 6426 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

When drawing transformed and lit triangles as a list using DrawPrimitive, is the order of the vertices important? The D3D docs read: "A front face is one in which vertices are defined in clockwise order. Any face that is not a front face is a back face. Direct3D does not always render back faces; therefore, back faces are said to be culled." However, my first guess was probably not since the D3DTLVERTEX structure has no variables to store normal vectors (already transformed). But when I draw my vertices in a CW order, they don''t appear. When I draw them in a CCW order, I can see them. Why does the docs say use CW order when I have to use CCW order to see my trianges? Wayfarer

Share this post


Link to post
Share on other sites
Advertisement
Ah, nevermind. I figured it out. D3DRENDERSTATE_CULLMODE by default is set
to D3DCULL_CCW.


Wayfarer

Share this post


Link to post
Share on other sites

  • Advertisement