MaxScript LODing

MaxScript LODing

benammiswift
Observer Observer
1,041 Views
1 Reply
Message 1 of 2

MaxScript LODing

benammiswift
Observer
Observer

Hi all

 

Recently moved to 3DS from Blender and I'm currently getting to grips with Maxscript, I have a little plugin that I add features to as I come across things that'd be useful, Stuff like setting origin to 0,0,0, resetting scale and transforms and resetting Xforms all in one fell swoop ready for export to the game I work with.

 

Something a friend has recommended I do is create a LOD script that generates my LODs and sticks to the game's naming convention and sets up parenting etc. The names are 1_1000_name where 1 is the LOD level, 1000 is the distance and then a name. 

 

How should I go about this task as I'm kind of unsure where to start? I have downloaded a few LOD scripts and had a snout around in them but I can't really make head nor tail of how they work.

 

Any help would be greatly greatly appreciated.

 

Thanks a lot

 

Ben

0 Likes
1,042 Views
1 Reply
Reply (1)
Message 2 of 2

senorpablo
Advocate
Advocate

The ProOptimizer modifier is what you'll want to create the LOD meshes. Read up on adding modifiers via maxscript and adjusting modifier parameters.

 

Renaming is as simple as: yourlodobj.name = yourbaseobj.name + "_" + (lod_level as string) + "_" + (lod_dist as string)

Parenting: yourlodobj.parent = yourbaseobj

 

0 Likes