Jump to content
  • Advertisement
Sign in to follow this  
norgent

OpenGL Weird normals when rendering MD2 models

This topic is 2295 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'm following a tutorial on loading MD2 models in OpenGL (http://www.videotutorialsrock.com/opengl_tutorial/animation/text.php), but when I render the model I get really weird normals, it looks like some of them are reversed. I'm using pretty much the same code as in the tutorial, but this still happens. What could be causing the problem? I'm using the model downloaded from the tutorial site, so the problem isn't exporting the model to MD2.

Crazy weird normals when I render the model:
J7OM0.png

Compared to the normal normals in the tutorial:
screenshot.png

Share this post


Link to post
Share on other sites
Advertisement
You said "pretty much" using the same code. I'm guessing the problem is in the code not part of the "pretty much" :-).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!