LOD Creator

64 votes

Here's my version of LOD creation script, it uses multiRes modifier. It works on multiple geometry and retains the geo type. It retains the skin modifier too, so you can run on a skinned character as well. Feel free to use this script and lemme know if you want me to add any feature to it or if it has any bugs.

AttachmentSize
LOD_Creator.ms4.12 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
warkarma's picture

LOD naming is wrong way around?

Not sure about 3d industry, but in games LOD naming starts with:
LOD0 Highest poly count
LOD1 Lower
LOD2 Even Lower
...
LOD4 Lowest

and this script has:
LOD0 Lowest
LOD1 Higher
...

Is this a bug or I don't know something?
BTW, love the script. Thanks!!

mahmouds12's picture

check my comment

I fixed this bug in a comment

mahmouds12's picture

more than one iteration has a bug

the script produces all LODs with the same number of polygons. To fix this do as follows // OR just use the updated version in the attachment

1.open LOD_Creator_1.ms with notepad

2. search for:

for i=1 to lodCount do

(

--LOD function call

--genLOD origGeo vertPer LODCount

genLOD obj vPer i;

LOD_prog.value = 100.*i/lodCount 

)

 

3. replace it with the following:

for i=1 to lodCount do

(

newVPer= vPer * i;

--LOD function call

--genLOD origGeo vertPer LODCount

if(newVPer <=99) then

(

genLOD obj newVPer i;

LOD_prog.value = 100.*i/lodCount 

)

)

4. Save and try the edited script it should work correctly now ;)

AttachmentSize
lod_creator_1_updated.ms 4.2 KB
CPLKenDude's picture

Awesome!

This is a great tool. Had to create an account just to tell you that. Thanks for the script! I can use this for not only LODs, but geometry reduction as well.

Luos_83's picture

Bug? with LOD creator in max 2014

Hello, I am currently trying to use your script in 3dsmax 2014 and for some reason when I want the script to create 3 LOD's for a mesh it doesnt reduce the polycount of the meshes besides the first lod.

In this case: Base mesh: 887 polygons
Lod1: 703 polygons
lod2: 703 polygons
lod3: 703 polygons.

Any idea what the problem could be?
Cheers and take care!

LineEffect's picture

This is Great

I love this man
THANKS ALOT

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.