mrdoob/three.js — Issue #893: Petition to add VRayMtl support to 3D Max exporter
Author: rogercodina
Created: 2011-12-12 10:54:13+00:00
State: open

After some checkings, I found out that my export problems described here in issue 823 (https://github.com/mrdoob/three.js/issues/823) are finally related to `VRay library` usage on my models.

So I would like to ask Three.js developers if they have planned to add support for `VRay materials`?

In the other hand, does anyone know if I can modify models in 3DS Max to use normal materials instead of VRay one's?

I guess that this would change the function `ExportMaterials` in `ThreeJSExporter.ms` like this:

if classof mat != VRayMtl then
(
DumpColor mat.diffuse "colorDiffuse"
DumpColor mat.ambient "colorAmbient"
DumpColor mat.specular "colorSpecular"

//etc
)
else
(
DumpColor mat.diffuse "colorDiffuse"
//ambient and specular are not in mat object on VRayMtl

//etc
)

VRayMtl properties: http://www.cgplusplus.com/online-reference/vray-properties/source/vraymtl-properties.html
Another interisting link: http://www.jamesshaw.co.nz/blog/?p=137

Thx!