Jump to: Board index » General » Fusion

How to fix that ALPHA issue?

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline
User avatar

Bernhard Rieder

  • Posts: 70
  • Joined: Tue Aug 04, 2015 6:49 pm

How to fix that ALPHA issue?

PostThu Sep 21, 2017 7:31 pm

How to fix that ALPHA issue?
Image

How can I get rid of the edge issues when comping and changing the color?
In this example: I simple want to change the color from pink to blue.

DOWNLOAD FUSION COMP:
http://www.mediafire.com/file/asccrs459v06cj1/Edge_Issue.comp
DOWNLOAD .exr FILES:
http://www.mediafire.com/file/4j2d2us3yok7qjq/files.zip

Note:
I am not using any image filter when rendering. My anti aliasing settings (noise threshold/vray) are super high with a value of 0.001. Meaning: the edges are super crisp and the anti aliasing shouldn't cause that issue.

That's why I am assuming.. I am doing something wrong when loading the 32bit .exr as an alpha into Fusion. Please find above my Fusion Comp and the two simple .exr files ready for download.

and here are my settings when loading the .exr alpha file. I am using the RED CHANNEL for the Alpha.
Image

like always.. any little help highly appreciated!
Thank you very much!
Offline
User avatar

Adelson Munhoz

  • Posts: 239
  • Joined: Thu Mar 05, 2015 5:44 pm

Re: How to fix that ALPHA issue?

PostThu Sep 21, 2017 8:09 pm

Hi Bernhard,

You can place a Matte Control after your mask to adjust the edge pixels:

Code: Select all
{
   Tools = ordered() {
      Difuse_Filter = Loader {
         Clips = {
            Clip {
               ID = "Clip1",
               Filename = "comp:teapot_.VRayDiffuseFilter.0000.exr",
               FormatID = "OpenEXRFormat",
               LengthSetManually = true,
               TrimIn = 0,
               TrimOut = 0,
               ExtendFirst = 0,
               ExtendLast = 0,
               Loop = 0,
               AspectMode = 0,
               Depth = 0,
               TimeCode = 0,
               GlobalStart = 0,
               GlobalEnd = 0
            }
         },
         NameSet = true,
         Inputs = {
            MakeAlphaSolid = Input { Value = 1, },
            PostMultiplyByAlpha = Input { Value = 1, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            ["Clip1.OpenEXRFormat.RedName"] = Input { Value = FuID { "R" }, },
            ["Clip1.OpenEXRFormat.GreenName"] = Input { Value = FuID { "G" }, },
            ["Clip1.OpenEXRFormat.BlueName"] = Input { Value = FuID { "B" }, },
            ["Clip1.OpenEXRFormat.AlphaName"] = Input { Value = FuID { "A" }, },
         },
         ViewInfo = OperatorInfo { Pos = { -107.962, 164.096 } },
      },
      MatteControl1 = MatteControl {
         Inputs = {
            MatteContractExpand = Input { Value = 0.188, },
            MatteGamma = Input { Value = 2.812, },
            Background = Input {
               SourceOp = "MM_Teapot",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 56.2602, 242.225 } },
      },
      CC_Teapot_Pink = ColorCorrector {
         CtrlWZoom = false,
         NameSet = true,
         Inputs = {
            WheelTintAngle1 = Input { Value = -0.408596547436145, },
            WheelTintLength1 = Input { Value = 1, },
            ColorRanges = Input {
               Value = ColorCurves {
                  Curves = {
                     {
                        Points = {
                           { 0, 1 },
                           { 0.4, 0.2 },
                           { 0.6, 0 },
                           { 1, 0 }
                        }
                     },
                     {
                        Points = {
                           { 0, 0 },
                           { 0.4, 0 },
                           { 0.6, 0.2 },
                           { 1, 1 }
                        }
                     }
                  }
               },
            },
            HistogramIgnoreTransparent = Input { Value = 1, },
            Input = Input {
               SourceOp = "Difuse_Filter",
               Source = "Output",
            },
            EffectMask = Input {
               SourceOp = "MatteControl1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 54.4344, 165.401 } },
      },
      MM_Teapot = Loader {
         Clips = {
            Clip {
               ID = "Clip1",
               Filename = "comp:teapot_.MM_001.0000.exr",
               FormatID = "OpenEXRFormat",
               LengthSetManually = true,
               TrimIn = 0,
               TrimOut = 0,
               ExtendFirst = 0,
               ExtendLast = 0,
               Loop = 0,
               AspectMode = 0,
               Depth = 0,
               TimeCode = 0,
               GlobalStart = 0,
               GlobalEnd = 0
            }
         },
         NameSet = true,
         Inputs = {
            PostMultiplyByAlpha = Input { Value = 1, },
            ["Gamut.ColorSpaceNest"] = Input { Value = 0, },
            ["Gamut.ColorType"] = Input { Value = FuID { "Space" }, },
            ["Gamut.ColorSpace"] = Input { Value = FuID { "sRGB" }, },
            ["Gamut.GammaSpaceNest"] = Input { Value = 0, },
            ["Gamut.GammaType"] = Input { Value = FuID { "Space" }, },
            ["Gamut.GammaSpace"] = Input { Value = FuID { "sRGB" }, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            ["Clip1.OpenEXRFormat.Channels"] = Input { Value = 1, },
            ["Clip1.OpenEXRFormat.RedName"] = Input { Value = FuID { "R" }, },
            ["Clip1.OpenEXRFormat.GreenName"] = Input { Value = FuID { "G" }, },
            ["Clip1.OpenEXRFormat.BlueName"] = Input { Value = FuID { "B" }, },
            ["Clip1.OpenEXRFormat.AlphaName"] = Input { Value = FuID { "R" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 56.2602, 275.225 } },
      }
   }
}


Clipboard01.jpg
Clipboard01.jpg (7.25 KiB) Viewed 353 times

Two more infos:

1 - You can share your comp just by selecting all nodes, copying and pasting here between two [code] tags (as I done here).

2 - When you share a comp that has external loaders, is a good practice to put the loaders in the same folder of the comp and change their full path by "comp:" in order to make Fusion automatically find the loaders (as I done in the above comp).
Offline
User avatar

Bernhard Rieder

  • Posts: 70
  • Joined: Tue Aug 04, 2015 6:49 pm

Re: How to fix that ALPHA issue?

PostThu Sep 21, 2017 8:21 pm

How can I load the code into Fusion?
Or open the Comp you provided with the code?

sorry.. never did that before :o

I tried to add the node you mentioned after my alpha node.
But that thing isn't doing anything.

Hmmm.. so yes.. I would need to see your comp ;)
Offline
User avatar

Adelson Munhoz

  • Posts: 239
  • Joined: Thu Mar 05, 2015 5:44 pm

Re: How to fix that ALPHA issue?

PostThu Sep 21, 2017 8:24 pm

You select all the green code above and paste in the Flow Area.

You will have to relink the loaders because they're probably not in the same path as the comp, even after you save it.
Offline
User avatar

Bernhard Rieder

  • Posts: 70
  • Joined: Tue Aug 04, 2015 6:49 pm

Re: How to fix that ALPHA issue?

PostThu Sep 21, 2017 11:43 pm

damm.. you rock! :o
Thanks a lot, I really appreciate that! :D
Offline

Sam Steti

  • Posts: 693
  • Joined: Tue Jun 17, 2014 7:29 am
  • Location: France

Re: How to fix that ALPHA issue?

PostFri Sep 22, 2017 8:40 am

Hi there,

Yep, Matte control is what you were looking for. This problem may also be solved by tweaking Fringe (gamma, size, etc...) and/or to to blur the teapot "inward".
Offline

Ivan Ivanov

  • Posts: 77
  • Joined: Tue Nov 11, 2014 11:16 am

Re: How to fix that ALPHA issue?

PostWed Nov 08, 2017 3:36 pm

Sam Steti wrote:Hi there,

Yep, Matte control is what you were looking for. This problem may also be solved by tweaking Fringe (gamma, size, etc...) and/or to to blur the teapot "inward".



Ye, but "why?" is the major question here.
And the answer is - because the alpha channel of the mask is feathering out to ~15% on the edge's semitransparent pixels due to natural soft edge application when rendering the alpha. Thus the CC tool is only doing it's thing at ~15% on those edges according to the instructions the mask input is providing to it. And in this case it's not enough, the effect of the CC needs to be applied harder than 15% on those pixels for them to become fully blue
Offline

Sam Steti

  • Posts: 693
  • Joined: Tue Jun 17, 2014 7:29 am
  • Location: France

Re: How to fix that ALPHA issue?

PostWed Nov 08, 2017 5:06 pm

Well yes...
Maybe he could add a divide node BEFORE the key and a multiply one after (just before matte control), to avoid dealing with difficult parts.
But growing in experience, the more he'll deal with mattes and keys, the more he'll search for stuff like Gregory's one : http://www.compositing.tv/Research/Tool ... storation/

Imho, for I'm into keys for a while, it's interesting to industrialize some processes.
:ugeek:

Return to Fusion

Who is online

Users browsing this forum: Bing [Bot] and 4 guests