Hi Vlado, Let me write it again with the whole process described.
// My Workflow for exporting Vray Shaders that are in 3Dsmax to Maya. I first prefix all the shader names with a A001-, A002-, A003- and so on.
This way when I send over meshes as an OBJ with materials, it’s easier to replace the phong shaders that the OBJ exporter creates with Vray materials that I import with the VRay VRmat Converter.
This way I can just select Phong shader starting with A001- and replace it with A001-VrayMtl once the Vray Materials have been imported. (For as far that I know there is not an easy way to send over a mesh incl. all it’s Vray Materials?)
In 3DsMax I select all the geometry and rightclick and say export *.vrscene. This way Vray/3Dsmax writes out a *.vrscene holding all the shaders.
After this has been done, I convert all the Vray materials to standard materials in 3DsMax with a script.
This needs to be done, because the OBJ exporter is not able to export Vray Materials, If you don’t do this you will only get the meshes over, but no Shaders / Shader assignments.
And thus you will not be able to replace the phong shaders with your imported vray shaders.
(You would need to manually re-assign the vray imported shaders straight to the mesh, and that’s a really tedious thing to do)
Now in Maya I import the OBJ and get all the meshes over cleanly, and I have all the “standard” materials assigned to the correct objects.
I then go to the Vray Shelf and click the Open Vray VRmat converter. I choose the *.vrscene file and import all the materials that are in there.
I then go in the hypershade select 001-Phong and replace it by the 001-VrayMat. I do this for all the shaders.
I now delete all the Phong shaders that where created by the OBJ importer, because they have served their purpose.
Now I have clean objects with Vray Plugin Materials assigned to it. In MEL i wrote a converter that converts the Vray Plugin Node to a real VrayMtl in Maya.
The VrayPlugin Node is just a list of all the attributes, I like it to be organized the normal way. So this Solves that problem.
Until this point everything works fine, I’m getting almost all the information over from 3DsMax to Maya. I Still need to do alot of manual cleanup, with removing unnecessary nodes, but that’s oke.
But what really makes my head hurt is that a couple of attributes are not coming over.
I First thought that 3DsMax was not exporting them correctly to the *.vrscene file. But after opening it with nodepad++ I noticed that the information is exported just fine.
The problem is within the Maya Vray VRmat converter.
These are the Attributes that are not coming over:
For the Vray Material it’s the following attributes:
For me the most important:
- Reflection Glossiness
- Highlight Glossiness
- Fresnel IOR (for Reflection, the Refraction IOR is coming over just fine)
Also not coming over, but a little less important:
- Anistropy
- Rotation (Anitstropy)
- Use reflection interpolation
- Use refraction interpolation
- min max rate (for both reflect and refract)
- Normal Treshold
- Interp. Samples
- Also the Bump map is not being send over at all.
These are the once that i’m 100% sure of, that are not coming over.
If you would be able to fix the first 4 attributes from coming over correctly, I will be for ever grateful!
And you will be my Hero till the end of days… 