Jump to content
  • Advertisement

Archived

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

Triangle in DirectX 8 problem

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

Okay... this has been bugging me all night, when i pass vertices into a Vertex Buffer, is there a specific order that i must pass them in? because i''m just trying to display a triangle and for some reason if i change the order that i pass in the vertices, it doesn''t display the triangle anymore... but i don''t know why it should matter in what order the vertices are passed in. I''m new to directx in general so any help would be welcome so that i can get some sleep!

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster

this is due to back face culling
dx performs bfc by verifying if vertices are passed clockwise
or counter cw (depends on renderstates).
so if you wanna have all triangles drawed, disable culling-renderstate


greets -thafacka

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!