Game Development Community

Detail nodes go up? Or down?

by Tyler Slabinski · in Artist Corner · 11/23/2009 (7:02 pm) · 5 replies

This question is for LoDs. I haven't used any yet, but I know I will need to very soon due to the fact that the iPhone has the processing power of my solar calculator (exaggeration).

Anyway, if there are 2 LoD nodes, Detail32, and Detail64. How do they work? I know it has to do with how many pixels are on the screen, but I am not sure if the LoDs are going up or going down.

If the object was bigger then 64 pixels onscreen, I know it would render the Detail64 version, and I know that if it was smaller than 32 pixels big it would render the Detail32 version, but what if the object was between those? Which one would render? Detail32, or Detail64?

#1
11/23/2009 (7:34 pm)
A detail level's pixel size is the minimum size for that detail level to render. For example, if an object had these detail levels: 200, 100, 50, it would render as follows:

1. when the pixel size is >200: detail size 200 will render
2. when pixel size is 100-200: detail size 100 will render
3. when pixel size is 50-100: detail size 50 will render
4. when pixel size is <50: nothing will be rendered
#2
11/23/2009 (7:37 pm)
Here's a paraphrase of an explanation of it to me:

Given detail levels of 200, 100, and 50:

1) Detail200 renders when the height of the object is 200px or larger.
2) Detail100 renders when the height of the object is 100px-200px in size.
3) Detail50 renders when the height of the object is 50px-100px in size.
4) Below 50px in size, nothing should render.

If you create a Detail0, it will always render regardless of size. I've seen many Detail2 meshes, which makes sense.

Hope that helps.
#3
11/23/2009 (7:38 pm)
LOL, Chris beat me to posting his information ;P
#4
11/23/2009 (8:12 pm)
@Tyler
Using Blender you might find that #4 isn't true, and you'll need to throw in a final detail# with no mesh/object to get "nothing" to render.
#5
11/23/2009 (8:32 pm)
Wow, thanks. Didn't know how it worked...