PDA

View Full Version : shaders in viewport


Djorzgul
June 16th, 2005, 08:21
respect to everyone. i just registered, and wanted to ask one thingy.
does anyone manage to find a workaround for visual representation of mr shaders i maya's viewports? it is pretty :twisted: to see everything turn greenish when mr shader is aplied...

i did some search but i found nothing...

thepilot
July 11th, 2005, 14:29
add the AEhardware template in your mr material AEtemplate
ie :

editorTemplate -beginLayout "Hardware Texturing" -collapse true;
editorTemplate -addControl "hardwareColor";
editorTemplate -addSeparator;
AEhardwareTextureTemplate $nodeName
("hardwareColor tex transparency bump");
editorTemplate -endLayout;

hardwareColor is declared in the phenom, but not used, just to set the hardware color.. the other entries (tex,...) are actually entries of the shader (must be the same name as in the .mi declaration file)..

then connect your mat in the miMaterial AND the SGsurfaceShader... that's all...

Djorzgul
July 11th, 2005, 21:05
great...
thanks..

mattMR
July 20th, 2005, 09:23
hello,

I'm very interesting by this modification, but when I tried to put this code in the AEmentalrayMaterial.mel, my shading group interface make a big bug...

I never try to make mel script, so I'm very beginner in mel...

could you give me more informations please ? I use maya 6.5 unlimited.

Thanks.

>matt.