Thread: Merge "mask/stencil" and edge issue

Reply to Thread
Results 1 to 3 of 3
  1. #1 Merge "mask/stencil" and edge issue 
    Join Date
    Aug 2010
    Posts
    74
    Hi all,

    I've noticed something that I haven't noticed before. See attached script. Basically, if I connect both input of a merge node to a premultiplied alpha, I loose some edge details. I noticed the same thing by for example adding a multiply node, connect both the input and mask input to the alpha and bring it all down. I loose edge details. I would expect nothing would change, but I'm guessing it's some kind of premultiply issue? How would you tackle this?

    Thanks for your help.
    Attached Files
    Reply With Quote  

  2. #2  
    Join Date
    Nov 2009
    Location
    Vancouver
    Posts
    474
    Yeah, you are effectively double premultiplying. If you have a pixel that is already 0.5 and you apple the same alpha to it again you are doing 0.5 x 0.5 = 0.25. This is what I would expect to happen. You shouldn't need to mask something that is premultiplied by itself.

    One thing I did discover about mask/stencil the other day is that if clamps the RGB values to 1. I had to use multiply instead to keep my float values intact.
    Reply With Quote  

  3. #3  
    Join Date
    Aug 2010
    Posts
    74
    Thanks for your reply radders, makes sense.
    Reply With Quote  

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 0
    Last Post: November 16th, 2010, 06:09 AM
  2. Replies: 0
    Last Post: November 16th, 2010, 05:58 AM
  3. Replies: 27
    Last Post: April 22nd, 2010, 12:46 PM
  4. Replies: 0
    Last Post: November 7th, 2006, 01:09 PM
  5. Replies: 0
    Last Post: February 19th, 2003, 02:39 PM
Bookmarks
Bookmarks
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts