PDA

View Full Version : command-line render and mentalray



psyonic
05-18-2006, 02:11 PM
Hey guys.
I've connected some custom mentalray shaders (dielectric material, dielectric photons) to their corresponding fields under the mental ray -> Custom shaders tab of a standard Blinn's shading group.
It all works as expected when I render my scene with the batch renderer whitin Maya, but when I render my scene with the command-line renderer by right-clicking on my file outside Maya and selecting "render" from the menu, the custom shaders are ignored completelly and my material is treated as a simple Blinn.
Anyone knows what I'm doing wrong? Any help would be greatly appreciated.

laxman
05-18-2006, 04:41 PM
You need to specify that you are using Mental Ray. You cannot do this with the right click menu. You need to go to Start->Run and then type cmd. Go to the directory of the scene and type:

render -r mr filename.mb

the -r specifies a renderer and mr sets it as mental ray. All the settings are taken from the scene file when doing a render except which renderer to use.

psyonic
05-19-2006, 01:31 AM
I thank you very much for your help. Thats some very basic stuff I should have known.

Again, TYVM. I can always count on you guys. :bow: