Jump to content
  • Advertisement

Archived

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

GekkoCube

converting ogl to dx primitives.

This topic is 5554 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 took the code straight from digiben''s (www.gametutorials.com) MD2 Animation Lession/tutorial. I ported it over to directx8.1 with mixed success. I can draw and animate...however, the model (tris.md2) is being with what appears to be randomly triangles. i can still distinguish the model as the model''s figure is roughly in tact. I can show you a screenshot if you''d like. I think the problem might be with the way im drawing the triangles. the tutorial uses GL_TRIANGLE. Under directx I tried using triangle strips, triangle lists, and even triangles fans... and I seem to have to most accurate drawing with triangle strips although still not solid. i also tried all the variations of culling, CCW, CW, and NONE. I can show my source if that is the triangles from ogl to dx is not an immediate problem. thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sounds like a problem with the normals if it is only showing random triangle from the model.

I don''t know if it would have anything to do with one API using left-handed coordinate system and the other using right-handed coordinate system.

Sorry, that''s about as much as I can help you at this point.

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!