Jump to content

Label on a Bottle - Problem with Alpha


Recommended Posts

Hi.

 

I have a problem that I just can't solve, so I'm hoping that someone can help me out.

It seems to be simple, but Houdini is still very new to me.

 

So, I have a model:

 

post-10515-0-82899300-1403539552_thumb.j

 

I want to apply a label to this model.

The label is a .png file with an alpha channel, so that it would only show that and nothing else.

 

Using a UV Quickshade node, this works as expected:

 

post-10515-0-21649000-1403539992_thumb.j

 

However, when using a Mantra Surface with the same texture applied as a color map, the whole model is visible:

 

post-10515-0-65809400-1403540094_thumb.j

 

My goal is simply to have different materials for the body and the label, so that I can shade them independently.

Maybe this approach is not very good in the first place...

 

Any help is much appreciated. :)

Link to comment
Share on other sites

the surface model, by default only uses the rgb of the texture (not the alpha).

Just save a black and white image with alpha and use it the opacity map (I don´t think It will use just the alpha of the original image).

 

--------

 

sorry, but on second thought, that won´t work (the rest of the geo will be transparent). I will post a file in a sec

Edited by gui
  • Like 1
Link to comment
Share on other sites

Here it is. I had to manipulate some things in the default surface shader, to add one more layer of texture.

Just look inside the shader, and you will see an yellow box with the changes.

Inside the "img" network you will find the map I used.

two_textures.hip

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...