Game Development Community

Minimum Pixel

by Thomas Bang · in Constructor · 07/08/2008 (1:58 pm) · 3 replies

Today i tried to create some LODs for my test-interior.

From TDN:

Quote:
Minimum Pixel

The "popping" to the next level of detailed is determined by the minimum pixel size. Minimum pixel size is the minimum amount of pixels wide the shape has to be on-screen before switching to the next detail level. This is a value set in each map file separately and the more complicated and closer a shape is, the higher the minimum pixel size should be, so the number values vary depending on the actual size of the structure your making really. It usually takes a few times to tweak these values but you get a feel for it eventually.

I didnt understand this description. Can someone explain this a little bit deeper? I played with "Min Pixels" and it works. But i dont know why.

Here some values:

The interior has a size of 5x5x5 meters (constructor says that).


LODTest_0.csx Detail: 0 - Min Pixels: 20
LODTest_1.csx Detail: 1 - Min Pixels: 15
LODTest_2.csx Detail: 2 - Min Pixels: 10
LODTest_3.csx Detail: 3 - Min Pixels: 5



Greetings

Thomas

#1
07/08/2008 (2:17 pm)
When the shape is rendered, it must be at least min pixels big on screen to take the actual LOD. As you get closer, it is drawn with more pixels, and you get a lower LOD index. Going further away from your shape will make it smaller on screen - taking less pixels. For example, once your interior is less than 20 pixels wide, it switches from LOD0 to LOD1.. at 14, it switches to LOD2, and so on...
#2
07/08/2008 (2:39 pm)
Thank you. So it is independent from the current resolution? (800x600, 1280x960, ...)
#3
07/08/2008 (3:14 pm)
Yea. Basically, if it's at that size, than you wont be able to see parts, and you should switch to a model without them. No matter the resolution, you won't be able to see the details you want to swap out.

Sorry if that's confusing, I'm in a rush. =P