Is the Interior LOD broken?
by Eric Forhan · in Torque Game Engine · 06/21/2004 (1:54 am) · 9 replies
I can get LOD to work on interiors, but the min_pixel setting seems to have no effect. The LODs just happen incrementally, rather than at my settings.
I'm not sure if this is a Torque, map2dif, or user issue.
I'm not sure if this is a Torque, map2dif, or user issue.
About the author
#2
EDIT: To have a little more 'control', I reverted to the marble blast map2dif (it's the only map2dif version I could find @ GG), and tried two interiors side-by-side in the Torque Demo. They were the same model, except the third LOD was different: one had the min_pixels setting at 100, the other at 10. I even went back and deleted the .map files (I use QuArK) and exported each LOD using the High Detail settings.
No luck. Going from a top, centered view they both would switch LOD at exactly the same time.
06/21/2004 (12:49 pm)
They seem to be happening at preset distances. It doesn't matter what I change the min_pixel setting to. IOW, setting it to 10 has the same effect as setting it to 200.EDIT: To have a little more 'control', I reverted to the marble blast map2dif (it's the only map2dif version I could find @ GG), and tried two interiors side-by-side in the Torque Demo. They were the same model, except the third LOD was different: one had the min_pixels setting at 100, the other at 10. I even went back and deleted the .map files (I use QuArK) and exported each LOD using the High Detail settings.
No luck. Going from a top, centered view they both would switch LOD at exactly the same time.
#3
My models are pretty low-poly, but I could squeeze out a few more polys if I had a bit better control over the LOD.
06/23/2004 (3:20 am)
I wonder if anyone else has noticed this?My models are pretty low-poly, but I could squeeze out a few more polys if I had a bit better control over the LOD.
#4
06/23/2004 (3:25 am)
I have the same problem with LOD's Min-Pixel setting. The "min-pixel" don't seem to have any effect, because when I make 4 different LOD map files, each with tehir respective min-pixel settings, the result map files are all identical in file size.
#5
Or did I misunderstand you?
What's important is that each LOD has fewer polygons--not so much the size of the map file.
06/23/2004 (3:34 am)
I may be misunderstanding you, but I think you have that mistaken. min_pixel is not the file size. It's supposed to be the approximate height or width of the interior seen at any given point. So, when it gets smaller than a min_pixel of 200 pixels, that LOD kicks in. It's not the size of the DIF file.Or did I misunderstand you?
What's important is that each LOD has fewer polygons--not so much the size of the map file.
#6
06/23/2004 (7:28 am)
Mysterious. Have you looked at the interior LOD selection code in InteriorInstance::calcDetailLevel(SceneState* state, const Point3F& wsPoint) around line 1009 of engine/interior/interiorInstance.cc?
#7
06/23/2004 (7:29 am)
Talk slowly Ben. I'm an artist. :)
#8
06/23/2004 (7:43 am)
Have you tried the temple interior from the old Scorched Earth mission?
#9
06/23/2004 (7:46 am)
No. Is this only in CVS?
Torque Owner Alex Swanson