texture map channel in material

   2955   1   1
User Avatar
Member
622 posts
Joined: 11月 2013
Offline
hello,

I ‘v an image with alpha channel. And i want use it in for example Constant Material color map. but the alpha is not appeared in final render pic. If I use it in Opacity map ,the shader use whole image not only it’s alpha channel .

Are there some method can choose which channel to be used in MAP parameter such as “$HIP/my.png:alpha” or “$HIP/my.png:red” ?

thanks!
User Avatar
Member
96 posts
Joined: 10月 2013
Offline
I was looking for an answer to this question as well. I found that you can add a vector4 to float node to the texture map node output. This gives you the rgba channels as output. The 4th output on the vector4 to float is the alpha. Plug this into nodes for opacity.

Adnan
http://www.madguru.com [madguru.com]
  • Quick Links