Game Development Community

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.

#1
03/13/2006 (5:50 pm)
Never mind my post; I discovered that the system that had these problems was unnecessary so I removed it. But if anyone feels like answering the questing feel free to do so, maybe someone else will have use of the knowledge :)
#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.