Jump to content
Sign in to follow this  
kiko

Compositing Over Operation in VOP

Recommended Posts

Hello everyone. I'm truing to replicate composting operation Over which I believe A+B(1-a). Instead I and up multiplying each layer by opposite alpha. It is work fine with constant colors, but it doesn't work with a texture. It turn texture (A) in opposite color. What wrong with that and what I missed?

 

12m.jpg

composite_test_01.hip

Share this post


Link to post
Share on other sites

Privet,

 

It has to be 1-$a, not $a-1, that's why it looks like that :) So:

$out = $A*(1-$a) + $B*($a);

Share this post


Link to post
Share on other sites

don't forget there is Composite VOP node which does that for you

Share this post


Link to post
Share on other sites

anim, Composting node give unpredictable result for me. I cannot understand what it actually doing. 

 

magneto, I tried your suggestion but it didn't solve the problem. The texture A in this example is grey-scale and B constant red.

 

 

37m.jpg

 

Edit: Composite node basically create the same result.

Edited by kiko

Share this post


Link to post
Share on other sites

first of all make sure your a is 0-1 so clamp it before plugging in as noise can easily produce values outside of that range

then magneto's advise should work

 

or easier, for your case you can just use Mix VOP as you are literally mixing 2 colors with a mask (still clamp it though)

 

Composite VOP expects premultiplied color, so if you multiply your red color with clamped noise and plug into A then clamped noise into Aa and your texture into B it will work

 

but just use Mix VOP for this

Edited by anim

Share this post


Link to post
Share on other sites

Haha! Than you anim! It was a clam issue. Now I get this 3 nodes to work as I expected. Mix VOP is exactly what I need. 

I thought that aptitude 1 means that turbulent noise produce value from 0 to 1.

composite_test_01.hipnc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×