Jump to: Board index » General » Fusion

Lightning Effects

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

John Avenoso

  • Posts: 155
  • Joined: Wed Nov 26, 2014 11:55 pm

Lightning Effects

PostMon Jan 19, 2015 1:23 am

Can someone direct me to a tutorial to create lightning effects similar to Hitfilm? I thought I seen one in the past but I can't seen to locate it anymore.
Windows 10 Pro 10.017763 Build 17763
i7-6800K w/Corsair H80i V2 Water Cooler
Nvidia EVGA RTX 2070
Ram 32.0 GB
BMPCC DJI Pocket 2
Davinci Resolve Studio 18
Offline
User avatar

Eric Westphal

  • Posts: 214
  • Joined: Thu Nov 20, 2014 1:59 pm

Re: Lightning Effects

PostMon Jan 19, 2015 7:22 am

Hi John.

Here's something really Q&D to get you started...:-)

Code: Select all
{
   Tools = ordered() {
      Rectangle1 = RectangleMask {
         Inputs = {
            SoftEdge = Input { Value = 0.04, },
            MaskWidth = Input { Value = 2048, },
            MaskHeight = Input { Value = 1556, },
            PixelAspect = Input { Value = { 1, 1, }, },
            ClippingMode = Input { Value = FuID { "None", }, },
            Width = Input { Value = 0.829411764705882, },
            Height = Input { Value = 1.13871477849061, },
         },
         ViewInfo = OperatorInfo { Pos = { 165, 82.5, }, },
      },
      FastNoise1 = FastNoise {
         Inputs = {
            Width = Input { Value = 1280, },
            Height = Input { Value = 720, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            XScale = Input { Value = 11.047619, },
            SeetheRate = Input { Value = 1, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
            EffectMask = Input {
               SourceOp = "Rectangle1",
               Source = "Mask",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 165, 115.5, }, },
      },
      FastNoise2 = FastNoise {
         CtrlWZoom = false,
         Inputs = {
            Width = Input { Value = 1280, },
            Height = Input { Value = 720, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            XScale = Input { Value = 5.5238095, },
            SeetheRate = Input { Value = 1, },
            Type = Input { Value = 1, },
            Color2Red = Input { Value = 0.2334782745704, },
            Color2Green = Input { Value = 0.833034731599259, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0.288321167883212] = { 0.316739841316322, 0.806175882829889, 1, 0.121428571428571, },
                     [0.5583941605839] = { 0.316739841316322, 0.806175882829889, 1, 1, },
                  },
               },
            },
         },
         ViewInfo = OperatorInfo { Pos = { -220, 148.5, }, },
      },
      Ribbon3D1 = Ribbon3D {
         Inputs = {
            NumberOfLines = Input { Value = 1, },
            LineThickness = Input { Value = 5, },
            ["Start.Nest"] = Input { Value = 1, },
            ["Start.X"] = Input {
               SourceOp = "Shake1",
               Source = "X",
            },
            ["Start.Y"] = Input {
               SourceOp = "Shake1",
               Source = "Y",
            },
            ["End.Nest"] = Input { Value = 1, },
            ["End.X"] = Input {
               SourceOp = "Shake2",
               Source = "X",
            },
            ["End.Y"] = Input {
               SourceOp = "Shake1",
               Source = "Y",
            },
            ["End.Z"] = Input { Value = -1.08204405314354, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            MaterialInput = Input {
               SourceOp = "FastNoise2",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { -55, 148.5, }, },
      },
      Shake1 = Shake {
         CtrlWZoom = false,
         Inputs = {
            RandomSeed = Input { Value = 13140, },
            Smoothness = Input { Value = 4, },
            LockXY = Input { Value = 0, },
            XMinimum = Input { Value = -1, },
            XMaximum = Input { Value = 0, },
         },
      },
      Shake2 = Shake {
         CtrlWZoom = false,
         Inputs = {
            RandomSeed = Input { Value = 18826, },
            Smoothness = Input { Value = 4, },
            LockXY = Input { Value = 0, },
         },
      },
      Displace3D1 = Displace3D {
         Inputs = {
            SceneInput = Input {
               SourceOp = "Ribbon3D1",
               Source = "Output",
            },
            Channel = Input { Value = 6, },
            Scale = Input { Value = 0.3714286, },
            Input = Input {
               SourceOp = "FastNoise1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 165, 148.5, }, },
      },
      SoftGlow1 = SoftGlow {
         Inputs = {
            Gain = Input { Value = 20, },
            XGlowSize = Input { Value = 40, },
            Input = Input {
               SourceOp = "Renderer3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 385, 181.5, }, },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "Displace3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 165, 181.5, }, },
      },
      Renderer3D1 = Renderer3D {
         Inputs = {
            Width = Input { Value = 1280, },
            Height = Input { Value = 720, },
            Depth = Input { Value = 3, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            SceneInput = Input {
               SourceOp = "Merge3D1",
               Source = "Output",
            },
            RendererType = Input { Value = FuID { "RendererOpenGL", }, },
            ["RendererOpenGL.TransparencySorting"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 275, 181.5, }, },
      },
      Camera3D1 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.295690886668124, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 1.4532493, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 1.80122458353298, },
            ["Transform3DOp.Rotate.X"] = Input { Value = -18.2000007629395, },
            ["Transform3DOp.Rotate.Y"] = Input { Value = -5, },
            FLength = Input { Value = 18.2123442718302, },
            ["Stereo.Mode"] = Input { Value = FuID { "OffAxis", }, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { -55, 181.5, }, },
      },
   },
}


Cheers.

Eric.
my hovercraft is full of eels.
Offline
User avatar

Stefan Ihringer

  • Posts: 257
  • Joined: Mon Nov 10, 2014 10:40 pm

Re: Lightning Effects

PostMon Jan 19, 2015 9:18 am

I once wrote a fuse for the rough basic shape of a lightning. Maybe it's still on archive.org's vfxpedia cache. If not I might dig it out.

Hey BMD! when will the content from vfxpedia be back?
blog and Fusion stuff: http://comp-fu.com/2012/06/fusion-script-macro-collection/
Offline

John Avenoso

  • Posts: 155
  • Joined: Wed Nov 26, 2014 11:55 pm

Re: Lightning Effects

PostTue Jan 20, 2015 5:09 pm

Thanks All
Windows 10 Pro 10.017763 Build 17763
i7-6800K w/Corsair H80i V2 Water Cooler
Nvidia EVGA RTX 2070
Ram 32.0 GB
BMPCC DJI Pocket 2
Davinci Resolve Studio 18
Offline
User avatar

Simon Dayan

  • Posts: 158
  • Joined: Tue Feb 04, 2014 10:39 am
  • Location: West Hollywood, Los Angeles,CA

Re: Lightning Effects

PostWed Jan 21, 2015 8:18 am

Code: Select all
{
   Tools = ordered() {
      Shape3D1_1 = Shape3D {
         Inputs = {
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            ["SurfaceCylinderInputs.Radius"] = Input { Value = 0.0952381, },
            ["SurfaceCylinderInputs.Height"] = Input { Value = 0.7619048, },
            ["SurfaceCylinderInputs.SubdivisionLevelBase"] = Input { Value = 10, },
            ["SurfaceCylinderInputs.SubdivisionLevelHeight"] = Input { Value = 10, },
            ["SurfaceCylinderInputs.ObjectID.ObjectID"] = Input { Value = 3, },
            ["SurfaceCubeInputs.ObjectID.ObjectID"] = Input { Value = 4, },
            ["Transform3DOp.Translate.X"] = Input { Value = -0.462488086934499, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.420787936896517, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.689509917408589, },
            Shape = Input { Value = FuID { "SurfaceSphereInputs", }, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
            ["SurfaceSphereInputs.Radius"] = Input { Value = 0.1, },
            ["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 5, },
         },
         ViewInfo = OperatorInfo { Pos = { 538, 164, }, },
      },
      Camera3D2 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = 1.0480886, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.393610921189962, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 2.38534284010852, },
            ["Transform3DOp.Rotate.X"] = Input { Value = -9, },
            ["Transform3DOp.Rotate.Y"] = Input { Value = 30.2000007629395, },
            FLength = Input { Value = 18.2123442718302, },
            ["Stereo.Mode"] = Input { Value = FuID { "Mono", }, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 6, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { 585, 268, }, },
      },
      Shape3D1_2 = Shape3D {
         Inputs = {
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            ["SurfaceCylinderInputs.Radius"] = Input { Value = 0.0952381, },
            ["SurfaceCylinderInputs.Height"] = Input { Value = 0.7619048, },
            ["SurfaceCylinderInputs.SubdivisionLevelBase"] = Input { Value = 10, },
            ["SurfaceCylinderInputs.SubdivisionLevelHeight"] = Input { Value = 10, },
            ["SurfaceCylinderInputs.ObjectID.ObjectID"] = Input { Value = 3, },
            ["SurfaceCubeInputs.ObjectID.ObjectID"] = Input { Value = 4, },
            ["Transform3DOp.Translate.X"] = Input { Value = 0.600455236687122, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.135776229642471, },
            Shape = Input { Value = FuID { "SurfaceSphereInputs", }, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
            ["SurfaceSphereInputs.Radius"] = Input { Value = 0.1, },
            ["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 5, },
         },
         ViewInfo = OperatorInfo { Pos = { 585, 235, }, },
      },
      Shape3D1 = Shape3D {
         Inputs = {
            Shape = Input { Value = FuID { "SurfaceSphereInputs", }, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            ["SurfaceCylinderInputs.Radius"] = Input { Value = 0.0952381, },
            ["SurfaceCylinderInputs.Height"] = Input { Value = 0.7619048, },
            ["SurfaceCylinderInputs.SubdivisionLevelBase"] = Input { Value = 10, },
            ["SurfaceCylinderInputs.SubdivisionLevelHeight"] = Input { Value = 10, },
            ["SurfaceCylinderInputs.ObjectID.ObjectID"] = Input { Value = 3, },
            ["SurfaceCubeInputs.ObjectID.ObjectID"] = Input { Value = 4, },
            ["SurfaceSphereInputs.Radius"] = Input { Value = 0.1, },
            ["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 5, },
         },
         ViewInfo = OperatorInfo { Pos = { 673, 125, }, },
      },
      Camera3D1 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = 6.37462854249624, },
            AoV = Input { Value = 24.3265863475745, },
            ["Stereo.Mode"] = Input { Value = FuID { "Mono", }, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 751, 81, }, },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.778650005094123, },
            SceneInput1 = Input {
               SourceOp = "Camera3D2",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "SpotLight1",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "Shape3D1_1",
               Source = "Output",
            },
            SceneInput4 = Input {
               SourceOp = "Shape3D1",
               Source = "Output",
            },
            SceneInput5 = Input {
               SourceOp = "Shape3D1_2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 805, 212, }, },
      },
      SpotLight1 = LightSpot {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = 3.323942015731, },
            Green = Input { Value = 0.374386874823453, },
            Blue = Input { Value = 0, },
            Intensity = Input {
               SourceOp = "Probe1",
               Source = "Result",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 898, 117, }, },
      },
      Probe1 = Probe {
         CtrlWZoom = false,
         Inputs = {
            ImageToProbe = Input {
               SourceOp = "GradientAnim",
               Source = "Output",
            },
         },
      },
      Renderer3D1 = Renderer3D {
         Inputs = {
            GlobalOut = Input { Value = 100, },
            Width = Input { Value = 1280, },
            Height = Input { Value = 720, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            SceneInput = Input {
               SourceOp = "Merge3D1",
               Source = "Output",
            },
            RendererType = Input { Value = FuID { "RendererOpenGL", }, },
            ["RendererOpenGL.LightingEnabled"] = Input { Value = 1, },
            ["RendererOpenGL.ShadowsEnabled"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 1027, 200, }, },
      },
      SoftGlow1 = SoftGlow {
         Inputs = {
            Gain = Input { Value = 3.3333333, },
            XGlowSize = Input { Value = 48.0952381, },
            Input = Input {
               SourceOp = "Renderer3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1137, 200, }, },
      },
      Merge1 = Merge {
         Inputs = {
            Background = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            Foreground = Input {
               SourceOp = "SoftGlow1",
               Source = "Output",
            },
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 1270, 199, }, },
      },
      Background1 = Background {
         CtrlWZoom = false,
         Inputs = {
            GlobalOut = Input { Value = 100, },
            Width = Input { Value = 1280, },
            Height = Input { Value = 720, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1270, 258, }, },
      },
      GradientAnim = Background {
         NameSet = true,
         Inputs = {
            GlobalOut = Input { Value = 100, },
            Width = Input { Value = 1280, },
            Height = Input { Value = 720, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            Type = Input { Value = FuID { "Gradient", }, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [0.397810218978102] = { 0.0592105263157895, 0.0592105263157895, 0.0592105263157895, 1, },
                     [0.5] = { 1, 1, 1, 1, },
                     [0.605839416058394] = { 0.127976546607634, 0.127976546607634, 0.127976546607634, 1, },
                     [1] = { 0.0328467153284672, 0.0328467153284672, 0.0328467153284672, 1, },
                  },
               },
            },
            Offset = Input {
               SourceOp = "Background1Offset",
               Source = "Value",
            },
            Repeat = Input { Value = FuID { "Ping-Pong", }, },
         },
         ViewInfo = OperatorInfo { Pos = { 1281, 79, }, },
      },
      Background1Offset = BezierSpline {
         SplineColor = { Red = 234, Green = 92, Blue = 75, },
         NameSet = true,
         KeyFrames = {
            [0] = { -0.4471154, RH = { 3.33333333333333, -0.153846166666667, }, Flags = { Linear = true, }, },
            [10] = { 0.4326923, LH = { 6.66666666666667, 0.139423066666667, }, RH = { 13.3333333333333, 0.145833333333333, }, Flags = { Linear = true, }, },
            [20] = { -0.4278846, LH = { 16.6666666666667, -0.141025633333333, }, RH = { 23.3333333333333, -0.147435866666667, }, Flags = { Linear = true, }, },
            [30] = { 0.4134616, LH = { 26.6666666666667, 0.133012866666667, }, RH = { 33.3, 0.134230846, }, Flags = { Linear = true, }, },
            [40] = { -0.4326922, LH = { 36.7, -0.153461446, }, RH = { 43.3, -0.148701823, }, Flags = { Linear = true, }, },
            [50] = { 0.4278847, LH = { 46.7, 0.143894323, }, RH = { 53.3, 0.131201995, }, Flags = { Linear = true, }, },
            [60] = { -0.4711538, LH = { 56.7, -0.174471095, }, RH = { 63.3333333333333, -0.1714743, }, Flags = { Linear = true, }, },
            [70] = { 0.4278847, LH = { 66.6666666666667, 0.1282052, }, RH = { 73.3, 0.143894323, }, Flags = { Linear = true, }, },
            [80] = { -0.4326922, LH = { 76.7, -0.148701823, }, RH = { 83.3, -0.148701823, }, Flags = { Linear = true, }, },
            [90] = { 0.4278847, LH = { 86.7, 0.143894323, }, RH = { 93.3, 0.137548159, }, Flags = { Linear = true, }, },
            [100] = { -0.451923, LH = { 96.7, -0.161586459, }, Flags = { Linear = true, }, },
         },
      },
   },
}
Offline
User avatar

michael vorberg

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

Re: Lightning Effects

PostWed Jan 21, 2015 8:10 pm

the lightning fuse can still be found here:
http://web.archive.org/web/201107020123 ... arty_Fuses

Return to Fusion

Who is online

Users browsing this forum: No registered users and 71 guests