Jump to content

VOP COP alpha gets altered??


kgoossens

Recommended Posts

Hi Everybody,

I'm trying to create a contrastLum (ala shake). For that I've created a vopcop but the problem is that the alpha gets altered.

I have no idea why this happens. I have not touched (as far as i know) the alpha channel.

A screen grab is attached.

Cheers.

post-1245-125646622275_thumb.png

Link to comment
Share on other sites

Hi Everybody,

I'm trying to create a contrastLum (ala shake). For that I've created a vopcop but the problem is that the alpha gets altered.

I have no idea why this happens. I have not touched (as far as i know) the alpha channel.

A screen grab is attached.

Cheers.

Would you mind attaching a HIP? The default butterfly.pic should be fine for testing.

Multiplying by A (not C4) between fit1 and floattovec2 looks like it may fix your problem.

Link to comment
Share on other sites

  • 2 weeks later...

The reason this is overwriting alpha is because you're writing to Cr, Cg, Cb and C4. These represent the channels in the current plane being cooked. Color and Alpha are separate planes, so when Alpha is cooked, it gets assigned to Cr. On the other hand, R,G,B,A are always hardwired to the color plane and alpha for convenience.

If you'd like your effect to only work on Color, and no other planes, rewire your output from Cr,Cg,Cb to R,G,B. If you'd like it to operate on color and other deep raster planes, but not alpha, you'll have to compare the plane name (global input pname) to "A" and avoid the operation in that case.

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