So if I want to convert all my MAX materials to Vray materials for photon mapping, what is the best way of doing this? I’ve done a search on the forum and come across a few scripts, and other examples, but I just wanted to know what others have found is the best (and cleanest) method.
The ideal script would convert everything, of course - maps, reflections, refractions, etc.
You can take a look at the vray scene converter script that comes with VRay (max5 build only, though the script will run on max 4 probably; the script is maxrootscriptsstartupvrayutils.ms). It doesn’t convert everything (reflect/refract maps etc) though it does convert multi-subobject materials; it should be easy to modify it to include stuff that you need.
some month ago i wrote a batchconverter, but discontinued it, since multisub materials, shellac and all other special mats doesn’t make it easy to write a ready to go and error free script.. also the way maxscript handles converted materials is a pain … there isn’t a put to scene function.
I still use Neil Blevins singleconverter with a little mod for vray, which gives me better controll over the process of converting materials.
On my singleimporter i use a external conversion table file.
Just dig into the code and add/write your own conversion for the vraymap.
I found it complicate to trace every way you could use the vraymap as submap of a falloff or any other map.