kgoossens Posted October 25, 2009 Share Posted October 25, 2009 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. Quote Link to comment Share on other sites More sharing options...
Alanw Posted October 26, 2009 Share Posted October 26, 2009 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. Quote Link to comment Share on other sites More sharing options...
kgoossens Posted November 3, 2009 Author Share Posted November 3, 2009 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. Hi Alan, Thanks! I've attached the file. I have no idea what i'm doing wrong with it. Cheers contrastLum.hipnc Quote Link to comment Share on other sites More sharing options...
Alanw Posted November 12, 2009 Share Posted November 12, 2009 Hi Alan, Thanks! I've attached the file. I have no idea what i'm doing wrong with it. Cheers Hey, I've re-attached your file. I modified it so the saturation effect is premultiplied against your alpha channel. contrastLum.hipnc Quote Link to comment Share on other sites More sharing options...
malexander Posted November 12, 2009 Share Posted November 12, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.