Jump to: Board index » General » Fusion

Roughen Edges?

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

Kays Alatrakchi

  • Posts: 1291
  • Joined: Thu Jun 26, 2014 8:22 am
  • Location: Los Angeles, CA

Roughen Edges?

PostWed May 02, 2018 1:46 am

Is there a Fusion equivalent of AE's Roughen Edges? I looked through the nodes but couldn't really find anything that would basically take a mask and add noise etc just to the edges of the selection.
>>Kays Alatrakchi
Filmmaker based in Los Angeles, CA
http://moviesbykays.com

Resolve 18.1.4, Mac OS X 12.6.3 (Monterey), iMac Pro 64Gb RAM, Decklink Mini 4K, LG C9

Mac Book Air M1, Mac OS X 12.6 (Monterey), 16Gb RAM
Offline

Okke Verbart

  • Posts: 290
  • Joined: Tue Jan 17, 2017 8:40 pm

Re: Roughen Edges?

PostWed May 02, 2018 6:39 am

One quick way of doing it would be to use a filter to get the outline of the object/text, use erode/dilate to thicken it a bit and then use a FastNoise to affect the result. Then merge it back with the original. Not quite as good as Roughen Edges, but with a bit of tweaking you may get something that suits your purposes. I'll have a little think about other methods.

See code below for a simple example

Code: Select all
{
   Tools = ordered() {
      Filter1 = Filter {
         Inputs = {
            FilterType = Input { Value = 3, },
            Input = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 715, 82.5 } },
      },
      Text1 = TextPlus {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Size = Input { Value = 0.3013, },
            Font = Input { Value = "Open Sans", },
            StyledText = Input { Value = "ROUGHEN", },
            Style = Input { Value = "Bold", },
            ManualFontKerningPlacement = Input {
               Value = StyledText {
                  Array = {
                  },
                  Value = ""
               },
            },
         },
         ViewInfo = OperatorInfo { Pos = { 605, 148.5 } },
      },
      ErodeDilate1 = ErodeDilate {
         Inputs = {
            XAmount = Input { Value = 0.00239, },
            Input = Input {
               SourceOp = "Filter1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 825, 82.5 } },
      },
      Merge1 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "BrightnessContrast1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
            Operator = Input { Value = FuID { "Held Out" }, },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 935, 148.5 } },
      },
      BrightnessContrast1 = BrightnessContrast {
         Inputs = {
            Alpha = Input { Value = 1, },
            Gain = Input { Value = 0, },
            Input = Input {
               SourceOp = "ErodeDilate1",
               Source = "Output",
            },
            EffectMask = Input {
               SourceOp = "FastNoise1",
               Source = "Output",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 935, 82.5 } },
      },
      FastNoise1 = FastNoise {
         CtrlWZoom = false,
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Discontinuous = Input { Value = 1, },
            Detail = Input { Value = 3.59, },
            Contrast = Input { Value = 5.513, },
            Brightness = Input { Value = -4, },
            XScale = Input { Value = 63.08, },
         },
         ViewInfo = OperatorInfo { Pos = { 935, -49.5 } },
      }
   }
}
www.ablackbirdcalledsue.com
Offline

Okke Verbart

  • Posts: 290
  • Joined: Tue Jan 17, 2017 8:40 pm

Re: Roughen Edges?

PostWed May 02, 2018 6:48 am

Slightly improved --> added a displace for some further grit and changed the merge

Code: Select all
{
   Tools = ordered() {
      Filter1 = Filter {
         Inputs = {
            FilterType = Input { Value = 3, },
            Input = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 715, 82.5 } },
      },
      ErodeDilate1 = ErodeDilate {
         Inputs = {
            XAmount = Input { Value = 0.00239, },
            Input = Input {
               SourceOp = "Filter1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 825, 82.5 } },
      },
      BrightnessContrast1 = BrightnessContrast {
         CtrlWZoom = false,
         Inputs = {
            Alpha = Input { Value = 1, },
            Gain = Input { Value = 0, },
            Input = Input {
               SourceOp = "ErodeDilate1",
               Source = "Output",
            },
            EffectMask = Input {
               SourceOp = "FastNoise1",
               Source = "Output",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 935, 82.5 } },
      },
      FastNoise1 = FastNoise {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Detail = Input { Value = 10, },
            Contrast = Input { Value = 9, },
            Brightness = Input { Value = 1.214, },
            XScale = Input { Value = 85, },
         },
         ViewInfo = OperatorInfo { Pos = { 935, -49.5 } },
      },
      Displace1 = Displace {
         Inputs = {
            RefractionStrength = Input { Value = -0.085, },
            LightPower = Input { Value = 0.026, },
            Input = Input {
               SourceOp = "BrightnessContrast1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "FastNoise2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 148.5 } },
      },
      FastNoise2 = FastNoise {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Contrast = Input { Value = 5, },
            Brightness = Input { Value = -1, },
            LockXY = Input { Value = 0, },
            XScale = Input { Value = 80, },
            YScale = Input { Value = 4.36, },
            Angle = Input { Value = 39.5, },
         },
         ViewInfo = OperatorInfo { Pos = { 1155, 49.5 } },
      },
      Merge1 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "Displace1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 935, 247.5 } },
      },
      Text1 = TextPlus {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Size = Input { Value = 0.3013, },
            Font = Input { Value = "Open Sans", },
            StyledText = Input { Value = "ROUGHEN", },
            Style = Input { Value = "Bold", },
            ManualFontKerningPlacement = Input {
               Value = StyledText {
                  Array = {
                  },
                  Value = ""
               },
            },
         },
         ViewInfo = OperatorInfo { Pos = { 605, 247.5 } },
      }
   }
}
www.ablackbirdcalledsue.com
Offline

Frank Feijen

  • Posts: 167
  • Joined: Tue Dec 13, 2016 10:04 am
  • Location: Vilvoorde, Belgium

Re: Roughen Edges?

Offline

Kays Alatrakchi

  • Posts: 1291
  • Joined: Thu Jun 26, 2014 8:22 am
  • Location: Los Angeles, CA

Re: Roughen Edges?

PostWed May 02, 2018 5:11 pm

Awesome, thank you!
>>Kays Alatrakchi
Filmmaker based in Los Angeles, CA
http://moviesbykays.com

Resolve 18.1.4, Mac OS X 12.6.3 (Monterey), iMac Pro 64Gb RAM, Decklink Mini 4K, LG C9

Mac Book Air M1, Mac OS X 12.6 (Monterey), 16Gb RAM

Return to Fusion

Who is online

Users browsing this forum: No registered users and 52 guests