Jump to content

Color Blending


0rr

Recommended Posts

Hi Everyone,

 

My knowledge of shaders in Houdini is limited so forgive me if this is something trivial. Say I have two occluding, coloured primitives with opacity set to 1. When I render these primitives, in the 2d area where the primitives occlude each other, the colours will be additively combined. Is there a way to change this blending to an average or to a multiply operation in a shader?

 

Thanks

post-4062-0-53162400-1412694545_thumb.jp

Link to comment
Share on other sites

  • 1 month later...

Usually the opacity blending happens in Mantra, not on the shader, so I don't think you can change it directly.

 

You can make a workaround though. Simply do your own refraction and combine them as you wish.

 

Start with a raytrace vop (http://localhost:48626/nodes/vop/raytrace) and shoot a ray in the direction of the view. Get the color and combine as you wish. You will want to turn any opactiy off.

 

Really love your works (on flickr) keep it up!

 

Cheers

Dany

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...