Having LOD for my object?

tlc

18-03-2008 07:19:22

Currently, my 3D model have 3 levels of LOD (low, medium and high polygon counts).

Can I export them into mesh files using oFusion in 3dsmax? If so, how?

After exported them to mesh files, how do I make the LOD switch in my codes? Any sample that I can refer to?

Lioric

19-03-2008 04:13:51

If you are using the Pro version, open the "Object" panel and in the LOD section, select "Manual (Object Based)", then click on "Add Object Lod" button and pick your scene objects that will be your levels of detail, adjust the distance as needed per lod

This will create automatically the lods in your mesh file

If using the CE version, then you can link them (the lods) to your object, use the name of the object for the distance ("Object_Lod_n_100" this will be the N level of detail and will be used at distance 100) and using the oSceneLoader event system, when loading, get notifications of each loaded object, get the child objects (the lods objects), unlink them and add as lods using the name for the distance

tlc

19-03-2008 05:32:45

If you are using the Pro version, open the "Object" panel and in the LOD section, select "Manual (Object Based)", then click on "Add Object Lod" button and pick your scene objects that will be your levels of detail, adjust the distance as needed per lod

This will create automatically the lods in your mesh file


I'm using CE version.

If using the CE version, then you can link them (the lods) to your object,

How to link them?

use the name of the object for the distance ("Object_Lod_n_100" this will be the N level of detail and will be used at distance 100) and using the oSceneLoader event system, when loading, get notifications of each loaded object, get the child objects (the lods objects), unlink them and add as lods using the name for the distance

What is the function call to switch between the LOD?

Am I right to say that the distance is constantly checked during runtime between the camera and the object? So that the switching between LOD is done?

Lioric

19-03-2008 15:49:59

To link objects, click on the "Link" button on the toolbar and select the child and parent objects

In your application you dont need to set the current lod, it is handled automatically by the system (using the object distance to the current camera used in the window)