Sign in to follow this  
JorenJoestar

Helper geometries

Recommended Posts

JorenJoestar    381
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
Vilem Otte    2938
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this