ScriptSpot

Script

LOD Creator

By LOKO · 2010-05-01

Votes
64
Description

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.

Attachments

Tags: script, skin, utility, 3ds max, lod, level of detail, maxscript, vertex, creator, free, mesh, loko, abhishek, subba, generate

Comments (6)

LOD naming is wrong way around?

warkarma · 2017-10-27

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!!

more than one iteration has a bug

mahmouds12 · 2017-10-26

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 ;)

Attachments

Awesome!

CPLKenDude · 2017-04-19

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.

Bug? with LOD creator in max 2014

Luos_83 · 2014-11-07

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!

check my comment

mahmouds12 · 2017-10-26

I fixed this bug in a comment

This is Great

LineEffect · 2013-07-25

I love this man
THANKS ALOT