Jump to content
  • Advertisement


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


DrawPrimitive Vertex sorting...

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

I got some problems with DrawPrimitive again. I can''t figure out what rules to follow in order to have my triangles rendered every time. To the present i sort the vertexes using two rules (TOP to BOTTOM and LEFT to RIGHT). However this doesn''t work. I''ve tried sorting from LEFT to RIGHT and TOP to BOTTOM, and again nothing. Anyone knows what rules i should follow? Every tip is welcomed. p.s. BTW, D3DIM doesn''t have any MeshLoader functions, etc... what do i do if i want to load a .x file? Thanks.

Share this post

Link to post
Share on other sites
If you look at the triangle from in front of it the vertices should be ordered in a clockwise order for the triangle to be seen.

You''ll have to write your own loader for the files. However I believe there is source code available that can help you with that, I don''t know where though as I haven''t written a .x file loader.

- WitchLord

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!