Jump to content
Sign in to follow this  
Zachary

Trying to understand MulitMaterial Files.

Recommended Posts

Hi There,

I'm currently trying to create a multi material rvmat file for a model but struggling to get my head around it.

What i have done is start again from scratch with a test model. I made a small cube in 3dsmax and applied a texture to each side (box_Green, box_blue etc) and then exported the model as a 3ds file, preserving uv co-ordinates. I then imported this into Oxygen 2.

What i would usually do is update all paths that are asking for box_blue.tga and box_Green.tga to "ca\addonname\data\boxblue.paa" but this is of course not how the multimaterial file works.

I've created the RVMAt from Mondkalb's tutorial, and updated my first few fields relating to the 'color' of the mask to the appropiate color of the box material

i.e stage 2 = green box texture

I then select the entire model, and remove any material file refernce, and point to my rvmat file. It sits in the folder with the rest of the convered paa files.

I then go to O2 and open the Uv editor, and can see my nicely positioned UV in a small box for the model, i create a new later (UVSet 1) and flatten the box, so its unwrapped and ready to 'fold' back up again.

I export this to EMF and then into InfranView, then to Photoshop, i color the document with red, green, blue and black. I save this back out to a tga, then export to .paa file and place back into the folder with the other rvmat file, hoping that it will see this reference in the rvmat, look up the uv set and then assign the required texture to each color

class Stage4

{

texture="ca\testasset\data\box_mask.paa";

texGen="4";

};

The result is a black box, no texture of any kind, even tried swapping the UV sets over so 1 becomes 0 and vice versa but still not seeing any texture.

I hope i've included everything, but if someone could help me, that would be just perfect. Maybe i just miss something out?

Thank you

Share this post


Link to post
Share on other sites

Thank you for your reply. Hmm yes, i came across this before, but the 3ds Max Macro script that it mentions cannot be found, i did manage to find a link elsewhere but then it gave me a 404 error.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×