Mental Ray On Cross Platform

hi!

Has anyone tried working or creating a file in windows which has got a shading node like bumpCombiner or dirmap etc., and then working on the same file in linux or OSX.

If so, Have you faced any problems? like recognizing the bumpCombiner of windows in the other operating systems..

I need some advice on this.

All shadetrs must be recompiled on the target platform... But yeas if you jsut can get yoru habds one a mac ccompiled version, linux one and a windows one then it works fine, asuming its not ussing something thats platform sepcific wich ist isntn.

the file found in

http://www.tomcowland.com/mentalray/bumpCombiner\_v1.3b.zip

contains the source so you can prettymuch compile it for anty platform you like.

But yeah each platform must be compioled separately jsut liek any maya plugin would too.

Hi!

Yeah! I did recompile and i have a bumpcombiner.so file for the linux version and bumpcombiner.dll for windows.

But when i open a maya file in linux created in windows, which has bumpcombiner in it. I get a error message saying "Warning: line 1: Unrecognized node type for node 'bumpCombiner1'; preserving node information during this session."

The same message comes if i open a maya file(linux) in windows.

I'm really not able to figure out why this problem is occuring.

please suggest.

Yes thats beacuse you have not assigned the shader a node id and them maya goes ahead and generates one for you, now thsi generation is machine specific because it depends on what other ids have been loaded.

this is a feature in newer mayas, to avoid mb conflicts.

That meants tht MB files find it impossible identify wich node your using (they dont contain ascii names of the nodetype but rather just teh numaric id), MA files dont but even they can have some problems if youve named the nodes differently (they use whatever name you declare to define type).

So you should usew MA (maya ascii) files instead of MB (maya binary wich is the default saved format), OR genarate a id and add it the the mi decrtlaration. (infact i prefeer to use ma files allways for everything as ist much more convinient)

in the decalre block usualy after the first parenthesis:

#: nodeid 1234567

Note theis id should be unique (and same on all machines) and theres some rules on how to generate it... ive even seen some autogeneration plugs for this.

Hi!

Thanks a lot! Now i tried using the ascii file on both linux and windows. Its working perfectly.

But i have a doubt, though ma file is much better to use. Its file size will be comparitively more than a mb file. Is there a way to or some workaround to get this sorted out in an mb file only.

i checked the nodeid for the shader(.mi file) in both windows and linux, its the same. I still would like to understand more in detail why this problem occurs.

Seasons greetings to all.

zip up the ma file. ANyway the nodeid should be working fien UNLESS, its a id taht conflicts with a exsiting one in wich case it gets regenerated and wont work.

Whan you start mr for may be sure to read the thing echoed into your script editor it may give you some clue. Also not taht the vernumbers etc need to be the exact same in both mayas.

ok!!! Thanks a lot.

ciao.