# Unreal Reading VRay Materials ?

**URL:** <https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [June 15, 2016, 2:25pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569 "2016-06-15T14:25:24Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f7bae8e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f7bae8e6](https://forums.unrealengine.com/u/anonymous_user_f7bae8e6)\
**Post date:** [June 15, 2016, 2:25pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/1 "2016-06-15T14:25:24Z")

</div>

Hi All

I understand Unreal only reads standard Max or Maya materials and creates simple duplicates from the FBX file when importing static meshes. Many of us in the ArchViz community use VRay as our main workhorse for stills. Currently it’s an extremely laborious process to setup a project in Max and VRay for rendering stills and then try and duplicate that effort in Unreal for real time walkthroughs. It’s very important that the stills and walkthrough match up identically in terms of materials, lighting, mood, etc.

Are there any plans underway for the engine to be able to read VRay materials? Maybe for 4.13?

Cheers,  
Josh

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [June 15, 2016, 3:57pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/2 "2016-06-15T15:57:05Z")

</div>

The FBX format can’t do anything with the Vray materials, which isn’t something that Epic can change. The alternative would be to export them to the Vray material format, but it’s unlikely that they would add feature to read those materials to UE4.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f7bae8e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f7bae8e6](https://forums.unrealengine.com/u/anonymous_user_f7bae8e6)\
**Post date:** [June 16, 2016, 2:14pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/3 "2016-06-16T14:14:25Z")

</div>

Thanks for the response, darthviper107. This helps clarify.

Since .FBX/Motion Builder is an autodesk product, they wouldn’t be motivated to add functionality that moves work away from their platform.

I wonder if it would be possible one day for Unreal to read and import Vray materials directly (not via FBX). Then it would just be a matter of mapping materials in Max/Maya, but switching out the shader once imported to Unreal.

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [June 16, 2016, 3:47pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/4 "2016-06-16T15:47:30Z")

</div>

One thing you can do, if you want to change your workflow is use Substance materials which are supported in Max/Maya/UE4

---

<div class="post-metadata">

**Author:** ![heartlessphil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heartlessphil](https://forums.unrealengine.com/u/heartlessphil)\
**Post date:** [June 16, 2016, 9:49pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/5 "2016-06-16T21:49:29Z")

</div>

The thing is pretty much 98% of the assets you can buy on internet for archviz are for vray ☹

---

<div class="post-metadata">

**Author:** ![jonahhawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jonahhawk](https://forums.unrealengine.com/u/jonahhawk)\
**Post date:** [July 20, 2016, 7:51pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/6 "2016-07-20T19:51:35Z")

</div>

Along these lines, is it possible to build materials in UE automatically by reading variables from an ascii file? It is simple enough to script in 3dsMax to write all relevant variables; (diffuse color/texturemap, reflection/refraction, bump, etc.) to a text file. Could a blueprint be made to read data from such a file?

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [July 20, 2016, 10:10pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/7 "2016-07-20T22:10:19Z")

</div>

I think you possibly could, many of the copy functions in unreal engine translate into readable text, but it will want to reference texture files that are in the content browser. I was able to make a script for 3ds Max that could translate object positions so that I could place things exactly as they are in 3ds Max that way.

---

<div class="post-metadata">

**Author:** ![jonahhawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jonahhawk](https://forums.unrealengine.com/u/jonahhawk)\
**Post date:** [July 20, 2016, 11:20pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/8 "2016-07-20T23:20:20Z")

</div>

@darthviper107 I was just looking at that thread I think. I have a processing maxscript WIP that places the pivot of all objects at 0,0,0. It also unwraps and packs UVs on a separate UV channel for lightmaps. I know the unwrap is not necessary, but I can control the packing a little more efficiently than the way UE does it.

VRay has a universal, platform independent, material definition that is xml based. .vismat or .vrmat.

There is an XML parser in the API  
[https://docs.unrealengine.com/latest/INT/API/Runtime/XmlParser/index.html](https://docs.unrealengine.com/latest/INT/API/Runtime/XmlParser/index.html)

Seems like it could be done.

---

<div class="post-metadata">

**Author:** ![heartlessphil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heartlessphil](https://forums.unrealengine.com/u/heartlessphil)\
**Post date:** [July 21, 2016, 3:22am UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/9 "2016-07-21T03:22:13Z")

</div>

I know there is a very good vray to corona mtl converter plugin that was made by a community member (originally at least) so It could probably be done for ue4 if someone really wanted it.

---

<div class="post-metadata">

**Author:** ![Pilotchiao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pilotchiao](https://forums.unrealengine.com/u/Pilotchiao)\
**Post date:** [July 25, 2016, 2:44am UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/10 "2016-07-25T02:44:25Z")

</div>

may be it’s a dream… unless Vray devlopment group made it

---

<div class="post-metadata">

**Author:** ![jonahhawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jonahhawk](https://forums.unrealengine.com/u/jonahhawk)\
**Post date:** [July 25, 2016, 8:03pm UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/11 "2016-07-25T20:03:40Z")

</div>

> [@heartlessphil;568124](#):
>
> I know there is a very good vray to corona mtl converter plugin that was made by a community member (originally at least) so It could probably be done for ue4 if someone really wanted it.

Converting materials within 3dsMax via maxscript is easy. We have plenty of tools to do that sort of thing. But there is no material to which we can convert which exports all properties to UE4.  
The only material properties that survive export are diffuse map/color and bump map.

We need a BP that looks at material names in the UE project and then modifies those materials \*in the editor \*according to external data.

For instance, simply reading the opacity value of a material; if it is less than 100%, then switch the UE material blend mode to Translucent, Lighting Mode to Surface Translucency Volume, and then set Metallic, Specular, Roughness, and Refraction according to data in a text file.

---

<div class="post-metadata">

**Author:** ![heartlessphil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heartlessphil](https://forums.unrealengine.com/u/heartlessphil)\
**Post date:** [July 26, 2016, 3:10am UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/12 "2016-07-26T03:10:28Z")

</div>

Chaosgroup themselves could do it, but I don’t see why they would to be honest…

---

<div class="post-metadata">

**Author:** ![CraftMesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CraftMesh](https://forums.unrealengine.com/u/CraftMesh)\
**Post date:** [July 26, 2016, 4:51am UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/13 "2016-07-26T04:51:26Z")

</div>

> [@heartlessphil;570679](#):
>
> Chaosgroup themselves could do it, but I don’t see why they would to be honest…

If chaosgroup do it that’s suicide for them 😃 haha

---

<div class="post-metadata">

**Author:** ![duke22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@duke22](https://forums.unrealengine.com/u/duke22)\
**Post date:** [July 27, 2016, 7:07am UTC](https://forums.unrealengine.com/t/unreal-reading-vray-materials/66569/14 "2016-07-27T07:07:28Z")

</div>

It would be a trivial but time consuming thing to do, involving the FBX SDK and texture baking within 3dsMax.
