How to mix 2 textures with a mask?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  07 July 2013
How to mix 2 textures with a mask?

Here is what I want to do:

I have 3 textures. 2 colour maps and one black and white map that will act as a mask. I want to use MIA_Material_X

How can I mix these 3 textures and put that into the diffuse channel of material_x (this is how softimage is) or it will be a completely different process. I tried to use layerd textures but it doesn't seem taking my black and white map as the mask when I put that into alpha.

Ahh.. This is driving me crazy.
  07 July 2013
For layered textures , it's all about layers' order and its' composition mode.

Mask : this one should be on top of everything and since it's pure black and white - be in Multiply mode

Textures : depending on what you're trying to achieve its' order and comp. modes might be different ,
just for instance , i've placed one with alpha over another one.

Another approach could to blend your textures in layered texture node , connect it's output to...let's say clear ramp and use plug your mask in it's Color Gain channel...

Here is screenshot of nodes' network and just in case .ma scene.
  07 July 2013
I got it to work by following your demo scene. The checker board outalpha goes to one of the channels' alpha. But when I use the psd file out alpha (the psd file does have an alpha) into layer alpha it won't work. However if I extract one of the RGB channel, then it will work but its inverted, black is showing, white is transparent. What did I do wrong?
  07 July 2013
Just don't use psds' for it^^ , you can use tga.

Connect your texture node to the mib_color_alpha input ( so that MR could extract alpha channel from your texture ) , then if you want to plug it to the layered texture alpha , ( which is scalar ) plug mib_color_alpha output to the luminance node.

There you'll have it...
  07 July 2013
use a blend node with the two color maps and the mask to control the blend attribute
  07 July 2013
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:33 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.