Rendering order
by Torbjorn Leksell · in Technical Issues · 03/12/2006 (6:01 pm) · 2 replies
I've implemented a new object into the engine which is a stripped down version of tsStatic and I want this kind of object to always render on top of terrain and interiors (dif's).
Problem A: I hardly know anything about OpenGl or how torque handles the rendering order so I would need some help to render the object as described above.
Problem B: At the base of the object I'm rendering a circle using GL_LINES, I've tried to set the width of the line using glLineWidth but no mater what I set the width to the lines stay the same.
Note: If you need to see what rendering code I'm using just look at the TSStatic::renderObject in tsStatic.cc.
Problem A: I hardly know anything about OpenGl or how torque handles the rendering order so I would need some help to render the object as described above.
Problem B: At the base of the object I'm rendering a circle using GL_LINES, I've tried to set the width of the line using glLineWidth but no mater what I set the width to the lines stay the same.
Note: If you need to see what rendering code I'm using just look at the TSStatic::renderObject in tsStatic.cc.
About the author
A Torque user for seven years, been working with both 2D and 3D.
#2
03/13/2006 (6:13 pm)
I'd find that pretty useful. Have a custom geometry loader, and the exporter alows you to set a draw order for seperate meshes or materials within a single file. I'd like the feature so I can use the extensions that woudl enable me to make more interesting 3D interactive HUD's and menu's.
Torque 3D Owner Torbjorn Leksell
Narcissistic Studios