Turbosmooth iterations based on camera distance
Hi!
I am working on a personal short film project which requiers large and detailed scenes.
I am looking for a script to assign turbosmooth iterations based on camera distance to reduce details on far objects.
The script may have to control one turbosmooth modifier by objects or one instanced turbosmooth for all objects.
I searched the net and found nothing.
If someone could help me?
Thank you!
Comments
check on john Wainwright's
check on john Wainwright's maxscript 101 lessons, there are some stuff on LOD topic!
Thanks you Raffix, it's what
Thanks you Raffix, it's what i done.
And after many hours watching john Wainwright's maxscript 101 lessons, maxscript's help and other tutorials i have a base script to control turbosmooth's iterations based on camera distance and a little bit more.
But in building the script, i got lot of ideas for usefull addons but i have some difficulties to integret them into the script.
First, i was thinking it would be cool that the script's reference object could be any type of object than just cameras. So i add a button for picking object but i don't know how to tell to the script to use this object for the distance function...
In a second time, i wanted to had an helper like the gismo's rotation to see directly in the viewport the distance entered in the script. So i added creation of three circles into the script but i don't find the command lines to assign them a position constraint targeted to the picked object...
That's what the script looks like so far :