Auto-lod
by Dan Keller · in Torque Game Engine · 02/12/2007 (1:40 pm) · 2 replies
Is it possible to get TGE to detect the detail of a scene and adjust the LOD of objects accordingly? For example, if I have a 6k poly character model, it renders at full detail with only one character visible, but lowers to 3k polys when there are two, 2k with three, etc.
About the author
Recent Threads
#2
02/12/2007 (2:26 pm)
This is really quite easy. There are floats you can set in-engine that modify the amount of LOD used on each shape. Hook into GameTSCtrl or something like that and make a counter for how many shapes are visible (dot product) within the cameras frustrum, and adjust the float accordingly.
Torque Owner AllynMcelrath
Planetside a while back implemented something like this, they asked users to give a target frame rate (in the settings UI) such as 60. Planetsides engine would then FORCE lod on object in the screen regardless of pixel size, or distance, to acheave the target frame rate. It seems to work well, also Particle effects were also hard caped in this situation ..
I'm not aware of any thing like this being done for torque, but Planetside would be a good example.