Raytrace materials - how bad can it be?

Hi all

I have some objects with raytrace materials on it (advanced transparency set) and can’t figure out how to convert it properly to vray materials (scene converter doesnt work well for this). I’m thinking of just leaving it like that. In simple tests it renders fine (with error warnings) but “looks fine”. What’s the worse that can happen on a final render with this?

you may not get render elements and things that require vray buffer to work (I haven’t used raytrace material in years so can’t be sure)

tried it with gbuffer using multimatte, seems to work! Sweet!
Let’s hope it doesnt mess up my other elements, create splotches, or make my rendertime go wack

Hi,

I’d like to ask if there’s a reason, when you use the vray scene converter, not all maps are converted to vray materials.
I’ve got some raytrace materials that got into my scene by importing older models.
When rendering (even if I used the scene converter) max crashed.
After opening up every material in the scene, I found some raytrace materials were left behind in the mask map-slots of a composite material.

Is there any way to get the scene converter clean up all materials completely?
Thank you!

Pieter
claar.be

Hello,

To get rid of raytrace maps, you can try that:

BadRaytrace = getClassInstances raytrace
for R in BadRaytrace do replaceInstances R (falloff name:R.name)

Lovely little bit of code :slight_smile:

Wauw, great!
That did the trick :wink:

thank you!
Pieter
claar.be

Hi,

Glad to read it helped you :wink:
Not sure it works with materials inside MultiSub, have you checked if it does ?

Hi Nicolas,

No, haven’t tried that yet.
I will do so when I find myself such a multisub mat, I’ll let you know.

Thanks again

Thanks, but should we replace something in this code to get it working?
I got “map” undefined when running the script on max 2014.
Thanks

Can you get me an example scene for this, either here or at vlado@chaosgroup.com ? We would love to fix that.

Best regards,
Vlado