Import Datasmith and keep Unreal Engine Materials

Hi @pf_breton

I have a library of VRay Archviz assets that I regularly import into Unreal Engine for rendering. I’ve created Unreal Engine versions of the materials to ensure they look accurate both in 3dsmax and Unreal. When importing, I want to bring in these materials without overwriting the existing UE materials. Is there a recommended workflow to achieve this?

Thank you!

You want to assign your custom UE material on the imported geometries?
You can use dataprep and a material substitution function and table to do the replacement.

Hi Flavien,

Let me try to explain. Suppose the materials are part of a UE template. For example, I have a material in 3dsmax called “VrayConcrete” that includes complex node setups like ambient occlusion, blend nodes, triplanar mapping, etc. Naturally, this material’s composition won’t carry over into Unreal Engine due to compatibility limitations.

However, let’s say I already have a visually equivalent material in Unreal Engine with the same name, “VrayConcrete.” Is there a way for Unreal to recognize the material name during import and automatically use the UE version instead?

Thanks!

This should do what you’re asking. You’ll have to do your datasmith reimports through Dataprep each time though (I believe, been a while since I’ve used it)

1 Like

Thanks @ThomasCoote, I never used that before. I am not sure what it is. But let’s say If I have a 100’s of material that I would like to keep intact inside the U Engine, will this work?

Yes you would have to list all you material from your original model and have a 1 to 1 map in UE
Use the substitute material by table for that.

Thanks!