PDA

View Full Version : how turn mia_mats alpha to black


Libor
07-29-2011, 03:47 PM
Hi,
does anybody know how to do this?

Ive got a mia_mat with cutout map for rendering leaves on a tree and I need custom pass which makes leaves like a matte out surfaceshader (results black in rgb and alpha channels) - I want to use mia but it outputs white according to cutout map and theres no way for my how to change matting behavior like in standard maya shader like lambert etc.

Is there any way? (I tried to connect mias result to surface shader and tried to change his matte settings to black but nothing happened > still white alpha)

Thanks to anyone!
L.

SpaceSonic
07-30-2011, 11:02 AM
Maybe you can try the mip shaders instead of surface shader to get the alpha you want?
http://vimeo.com/11475643 on how connecting them

If they aren't already enabled type this in your script editor:
optionVar -intValue “MIP_SHD_EXPOSE” 1;

CGTalk Moderation
07-30-2011, 11:02 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.