Jump to: Board index » General » Fusion

Inner Shadow

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

Florent Tisné

  • Posts: 3
  • Joined: Mon Jul 04, 2016 9:28 pm

Inner Shadow

PostMon Jul 04, 2016 9:37 pm

Hello everybody,

I am a new user of Fusion. I am looking for how to create an inner shadow!
I have create a connected polygon has a background and I want to add an inner shadow to it.
I found how to apply a drop shadow, but this is not the desired effect...

Thank you for your help,
Florent.
Offline
User avatar

michael vorberg

  • Posts: 943
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: Inner Shadow

PostSun Jul 10, 2016 11:32 am

could provide a image of the effect you want to achieve?

there a surely 100 ways of doing this in fusion but without a reference i cant imagine what you need
Offline

Florent Tisné

  • Posts: 3
  • Joined: Mon Jul 04, 2016 9:28 pm

Re: Inner Shadow

PostSun Jul 10, 2016 1:10 pm

@mikael

Screenshot of the composition in FUSION
Image

Effect of inner shadow accentuated to see the effect; o)
Image

thank you for your help,
Florent.
Offline

Vladimir LaFortune

  • Posts: 120
  • Joined: Mon Nov 17, 2014 3:37 am

Re: Inner Shadow

PostTue Jul 12, 2016 12:26 pm

Image

Code: Select all
Composition {
   CurrentTime = 1,
   RenderRange = { 1, 1000, },
   GlobalRange = { 1, 1000, },
   CurrentID = 6,
   Version = "Fusion x64 7.01 build 1457",
   SavedOutputs = 2,
   HeldTools = 0,
   DisabledTools = 0,
   LockedTools = 0,
   AudioOffset = 0,
   AutoRenderRange = true,
   Resumable = true,
   OutputClips = {
   },
   Tools = {
      Rectangle1 = RectangleMask {
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1, }, },
            ClippingMode = Input { Value = FuID { "None", }, },
            Width = Input { Value = 1.00533807829181, },
            Height = Input { Value = 1.00949367088608, },
         },
         ViewInfo = OperatorInfo { Pos = { 258.157, 53.7432, }, },
      },
      Rectangle2 = RectangleMask {
         Inputs = {
            SoftEdge = Input { Value = 0.0361905, },
            PaintMode = Input { Value = FuID { "Subtract", }, },
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1, }, },
            ClippingMode = Input { Value = FuID { "None", }, },
            Width = Input { Value = 0.948633364750235, },
            Height = Input { Value = 0.918760469011725, },
            EffectMask = Input {
               SourceOp = "Rectangle1",
               Source = "Mask",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 258.157, 83.4733, }, },
      },
      Background1 = Background {
         Inputs = {
            GlobalIn = Input { Value = 1, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
            EffectMask = Input {
               SourceOp = "Rectangle2",
               Source = "Mask",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 258.157, 120.553, }, },
      },
      Background1_1 = Background {
         Inputs = {
            GlobalIn = Input { Value = 1, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            TopLeftRed = Input { Value = 0.557753107986739, },
            TopLeftGreen = Input { Value = 0.533129481481481, },
            TopLeftBlue = Input { Value = 0.713333333333333, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
         },
         ViewInfo = OperatorInfo { Pos = { 258.157, 295.473, }, },
      },
      Merge1 = Merge {
         CtrlWZoom = false,
         Inputs = {
            Blend = Input { Value = 0.752381, },
            Background = Input {
               SourceOp = "Background1_1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 258.157, 242.473, }, },
      },
   },
   Views = {
      {
         FrameTypeID = "ChildFrame",
         Mode = 3,
         LayoutPreset = 0,
         Left = 0,
         Top = 0,
         Width = 1578,
         Height = 729,
         Views = ordered() {
            Main = MultiView {
               Active = "Flow",
               ViewList = ordered() {
                  Flow = "FlowView",
                  Console = "ConsoleView",
                  Timeline = "TimelineView",
                  Spline = "SplineEditorView",
                  Info = "InfoView",
                  Chat = "ChatView",
               },
               Flow = FlowView {
                  Flags = {
                     AutoHideNavigator = true,
                     ForceSource = true,
                     ConnectedSnap = true,
                     AutoSnap = true,
                     ShowInstance = false,
                     RemoveRouters = true,
                  },
                  NavigatorSize = { 100, 100, },
                  Direction = "Horizontal",
                  PipeStyle = "Direct",
                  Scale = 0.840896,
                  Offset = { 192.851, 23.1106, },
               },
               Timeline = TimelineView {
                  TreeControlState = {
                  },
                  DisplayMode = "All Tools",
                  ShowCurrentTimeTools = false,
                  Filter = "Show All",
                  ShowSelectedTools = false,
                  ShowAnimatedToolsOnly = false,
                  ShowEditBoxes = false,
                  KeyFrameView = {
                     Position = { Left = 130, Bottom = 383, },
                     ScaleX = 0.75318711446196,
                     OffsetX = -48.9571624400274,
                     OffsetY = 0,
                     AutoScaling = "scroll",
                     AutoSnapTo = "frame",
                     AutoSnapToGuidelines = false,
                     GuidelinesGrabEnabled = true,
                     GuidelinesSnapTo = "none",
                  },
                  Spreadsheet = { LeftPos = 130, Visible = false, },
               },
               Spline = SplineEditorView {
                  LeftPos = 206,
                  ScaleX = 0.2,
                  ScaleY = 0.00343642611683849,
                  OffsetX = -3.59999999999999,
                  OffsetY = 0,
                  AutoScaling = "fit",
                  AutoSnapTo = "frame",
                  AutoSnapToGuidelines = true,
                  GuidelinesSnapTo = "frame",
                  ShowKeyMarkers = false,
                  IndependentHandles = false,
                  ShowNonSplineModifiers = false,
                  GuidelinesGrabEnabled = true,
                  ShowOneToolOnly = false,
                  ShowSelectedTools = false,
                  ShowAllInputs = false,
                  Filter = "Show All",
               },
            },
            Controls = MultiView {
               Active = "Tools",
               ViewList = ordered() {
                  Tools = "ControlView",
                  Modifiers = "ModifierView",
               },
            },
            Left = "PreviewContainer",
            Right = "PreviewContainer",
            Transport = "TransportView",
            Time = "TimeView",
         },
         Layout = {
            Columns = 2,
            RatioX = 1,
            RatioY = 1,
            {
               Rows = 3,
               RatioX = 0.833071690214547,
               RatioY = 0.0102899906454631,
               {
                  Columns = 2,
                  RatioX = 1,
                  RatioY = 0.586077140169332,
                  { ID = "Left", RatioX = 1, RatioY = 103.833065810594, Pop = true, },
                  { ID = "Right", RatioX = -2, Pop = true, },
                  Pop = true,
               },
               { ID = "Main", RatioY = 0.363123236124177, Pop = true, },
               { ID = "Time", SnapY = 52, Flat = true, },
            },
            {
               Rows = 2,
               PixelX = 317,
               { ID = "Controls", RatioX = 1, RatioY = 1, },
               { ID = "Transport", FixedY = -2, },
            },
         },
      },
   },
   Prefs = {
      Comp = {
         AutoSave = {
            OnRender = true,
         },
         NumberStyles = {
            ClipFrame = 1,
         },
         Paths = {
         },
         FlowView = {
            ForceSource = true,
            ShowInstanceLinks = false,
            ConnectedSnap = true,
         },
         LastFile = "C:\\Users\\Vlada\\Desktop\\HeadlessTake2",
         FrameFormat = {
            GuideRatio = 1.77777777777778,
            Name = "HDTV 1080",
            PerFeet = 1,
            Rate = 30,
            Width = 1920,
            Height = 1080,
         },
         SplineEditor = {
            AutoSnap = {
               Keys = 18,
            },
            FollowActive = true,
            AutoScaleVal = 2,
         },
         Unsorted = {
            GlobalStart = 1,
         },
         AVI = {
            Preview = {
               Handler = 541215044,
            },
         },
         Views = {
            Right = {
               SideB = {
                  PrevCtrlInactiveColor = 65280,
                  PickW = 1,
                  PickH = 1,
                  PrevCtrlActiveColor = 255,
                  Viewer = {
                     EnableLUTs = false,
                     LUTPlugin = "FusionViewLUT",
                     FitMarginY = 0,
                     FitMarginX = 0,
                     FitMarginType = 0,
                     FarZ = -1000,
                     NearZ = 0,
                  },
               },
            },
            View1 = {
               PrevCtrlInactiveColor = 0,
               PickW = 0,
               PickH = 0,
               SideB = {
                  PrevCtrlInactiveColor = 65280,
                  PickW = 1,
                  PickH = 1,
                  PrevCtrlActiveColor = 255,
                  Viewer = {
                     EnableLUTs = false,
                     LUTPlugin = "FusionViewLUT",
                     FitMarginY = 0,
                     FitMarginX = 0,
                     FitMarginType = 0,
                     FarZ = -1000,
                     NearZ = 0,
                  },
               },
               PrevCtrlActiveColor = 0,
            },
            Left = {
               SideB = {
                  PrevCtrlInactiveColor = 65280,
                  PickW = 1,
                  PickH = 1,
                  PrevCtrlActiveColor = 255,
                  Viewer = {
                     EnableLUTs = false,
                     LUTPlugin = "FusionViewLUT",
                     FitMarginY = 0,
                     FitMarginX = 0,
                     FitMarginType = 0,
                     FarZ = -1000,
                     NearZ = 0,
                  },
               },
               Viewer = {
                  ScaleMode = 1,
               },
            },
            View3D = {
               Grid = {
                  Antialiasing = true,
               },
            },
         },
         QuickTime = {
         },
         DiskCache = {
            CacheLoaders = {
               Enable = true,
            },
         },
      },
   },
}

Offline

Rumen Belev

  • Posts: 4
  • Joined: Tue Nov 17, 2015 9:29 am

Re: Inner Shadow

PostSun Jul 17, 2016 8:52 pm

Replace Untitled.png with image with alpha channel of your choice.
Play with the values for blurriness of the shadow in Blur1 and position of the shadow - Merge1 center.

Code: Select all
{
   Tools = ordered() {
      ChannelBooleans1_1 = ChannelBoolean {
         Inputs = {
            Operation = Input { Value = 10, },
            ToRed = Input { Value = 16, },
            ToGreen = Input { Value = 16, },
            ToBlue = Input { Value = 16, },
            Background = Input {
               SourceOp = "Loader1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 715, 280.5, }, },
      },
      Blur1 = Blur {
         Inputs = {
            XBlurSize = Input { Value = 25, },
            Input = Input {
               SourceOp = "ChannelBooleans1_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 880, 280.5, }, },
      },
      Loader1 = Loader {
         Clips = {
            Clip {
               ID = "Clip1",
               Filename = "C:\\Users\\Admin\\Desktop\\Skype Downloads\\Untitled.png",
               FormatID = "PNGFormat",
               StartFrame = -1,
               LengthSetManually = true,
               TrimIn = 0,
               TrimOut = 0,
               ExtendFirst = 0,
               ExtendLast = 0,
               Loop = 0,
               AspectMode = 0,
               Depth = 0,
               TimeCode = 0,
               GlobalStart = 0,
               GlobalEnd = 0,
            },
         },
         CtrlWZoom = false,
         Inputs = {
            PostMultiplyByAlpha = Input { Value = 1, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
         },
         ViewInfo = OperatorInfo { Pos = { 605, 148.5, }, },
      },
      Merge1 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "Loader1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Blur1",
               Source = "Output",
            },
            ApplyMode = Input { Value = FuID { "Multiply", }, },
            PerformDepthMerge = Input { Value = 0, },
            EffectMask = Input {
               SourceOp = "PipeRouter1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 880, 148.5, }, },
      },
      Merge2 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "Merge1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 148.5, }, },
      },
      Background1 = Background {
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            TopLeftRed = Input { Value = 1, },
            TopLeftGreen = Input { Value = 1, },
            TopLeftBlue = Input { Value = 1, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 49.5, }, },
      },
      PipeRouter1 = PipeRouter {
         Inputs = {
            Input = Input {
               SourceOp = "Loader1",
               Source = "Output",
            },
         },
         ViewInfo = PipeRouterInfo { Pos = { 880, 49.5, }, },
      },
   },
}
Offline
User avatar

RonHumer

  • Posts: 25
  • Joined: Mon Jul 02, 2018 1:29 pm
  • Real Name: Ron L Humer

Re: Inner Shadow

PostFri Dec 06, 2019 2:52 pm

Can we add Inner Shadow as a plugin within Fusion?

Return to Fusion

Who is online

Users browsing this forum: Eyn-0519 and 55 guests