Jump to content
  • Advertisement
Sign in to follow this  
JorenJoestar

Helper geometries

This topic is 3717 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 guys, here again to ask you a simple question... I'm having some problems with my engine, and I want to have extra info on the scene during my renderings. I want to print normals of all vertexes, of the faces, visualize the bounding boxes of the objects, stuff like that! I call them 'helper geometries', but I don't know if this is the name. How do you render them? Again...thanks guys!

Share this post


Link to post
Share on other sites
Advertisement
I call this debug geometries (but dunno, if anyone else is calling them this-like). Anyway dunno which api are u using - OpenGL or Direct3D?

In opengl it's quite simple - you'll use GL_LINES token for vertex-buffers or in glBegin/glEnd legacy functions.

In D3D it's not much harder - i'll give a link rather than write long how-to (using ID3DXLine) http://msdn.microsoft.com/en-us/library/bb174016(VS.85).aspx

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!