|Version 1 (modified by martin, 9 years ago)|
A step-by-step OsgLODeditor example
Assume we want to create a LOD node from 3 input files that we have previously created:
Click load level 0 and select the file with the highest level of detail, in this case HighRes.osg
Click load level 1 and select the file with the second highest level of detail, in this case MediumRes.osg
Click load level 2 and select the file with the lowest level of detail, in this case LowRes.osg
Edit the transition between highres.osg and mediumres.osg:
- Click edit transition 0-1; the 3D viewport will now alternate between level 0 (HighRes.osg) and level 1 (MediumRes.osg) a couple of times per second.
- Drag the slider on the bottom of the screen; this controls the distance from the camera to the objects.You can rotate the camera around the scene by dragging (left mouse button) within the 3D viewport.
- When you have found a camera distance where the visual difference between the two levels is hardly noticable, click Store current distance as LOD boundary. This will bring you back to the "standard" view, which is the scene as a LOD node. You can drag the slider on the bottom of the scene to see whether the transition you just set is satisfactory, or whether you need to edit it again.
Click edit transition 1-2 to edit the transition between MediumRes.osg and LowRes.osg, just as you did in step 4.
- Click edit transition 2-3 to edit the transition between lowres.osg and nothing (all LOD have an upper boundary beyond which they become invisible), like in step 4 and 5.
When satisfied with the resulting LOD structure, choose Save scene from the file menu and save your LOD node to a file.
- step1.png (22.5 kB) - added by martin 9 years ago.
- step2.png (42.1 kB) - added by martin 9 years ago.
- step3.png (42.5 kB) - added by martin 9 years ago.
- step4.png (48.2 kB) - added by martin 9 years ago.
- step5.png (22.8 kB) - added by martin 9 years ago.
- step6.png (16.6 kB) - added by martin 9 years ago.
- step7.png (28.8 kB) - added by martin 9 years ago.