Jump to content
  • Advertisement
Sign in to follow this  
dacredens

OpenGL Normals in loaded meshs !!?!?!?

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

Hi, when ever i load a q3 bsp or 3ds file etc and tell opengl to draw the normals of the faces with GL_POINTS, theres always a clump of points sitting somewhere in the map .... in a sphere shape. Why is this ?!?

Share this post


Link to post
Share on other sites
Advertisement
Normals are vectors which point straight out of the surface they are attatched to and cannot really be drawn with points. If you try to they will all appear in a sphere around the origin, as normals are always of length one (or ought to be), and in a complex mesh normals will be pointing in more or less all directions. If you want to render normals on your vertices I'd suggest drawing GL_LINES from the vertex to a point at vertex + normal.

The standard graphical use for normals is lighting. Look up tutorials on this if you're not sure what to do.

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!