Jump to: Board index » General » Fusion

need help with particles, create light streak

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

Jens Noelte

  • Posts: 35
  • Joined: Mon Sep 26, 2016 5:25 pm

need help with particles, create light streak

PostMon Feb 20, 2017 7:25 pm

I'm trying to create a light streak that moves through 3d space and deforms on turns. Something like this, ff to 10sec:

I thought I'ld use particles, animate the position of the emitter and the trail created by emitted particles would follow the path. Well I can't get it done because once I move the emitter, I see no constant emission of particles just blotches per frame. I managed to fill the gaps between the blotches with pSpawn by turning up position variance. But now the beam is way too thick. How do I get the emitter to emit constantly, not just a certain number per frame? Better even, how do I get this effect done in fusion? Sample comp please!
Offline

Bob Place

  • Posts: 54
  • Joined: Thu Jan 21, 2016 10:13 pm
  • Location: Atlanta, Ga. USA

Re: need help with particles, create light streak

PostMon Feb 20, 2017 9:40 pm

I think the setting you're looking for is the sub frame accuracy on pRender

Code: Select all
{
   Tools = ordered() {
      pEmitter1 = pEmitter {
         ID = 1,
         Inputs = {
            Number = Input { Value = 100, },
            ["ParticleStyle.ColorOverLife"] = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 1, 1, 1, 1 }
                  }
               },
            },
            ["ParticleStyle.SizeOverLife"] = Input {
               SourceOp = "pEmitter1SizeoverLife",
               Source = "Value",
            },
            ["ParticleStyle.FadeControls"] = Input { Value = 1, },
            ["ParticleStyle.FadeOut"] = Input { Value = 0.7942857, },
            ["ParticleStyle.BlurOverLife"] = Input {
               SourceOp = "pEmitter1BluroverLife2D",
               Source = "Value",
            },
            ["SphereRgn.Translate.X"] = Input {
               SourceOp = "pEmitter1XOffset",
               Source = "Value",
            },
            ["SphereRgn.Translate.Y"] = Input {
               SourceOp = "pEmitter1YOffset",
               Source = "Value",
            },
            ["SphereRgn.Translate.Z"] = Input {
               SourceOp = "pEmitter1ZOffset",
               Source = "Value",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 605, 214.5 } },
      },
      pEmitter1SizeoverLife = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.3, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.7, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pEmitter1BluroverLife2D = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.3, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.7, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pEmitter1XOffset = BezierSpline {
         SplineColor = { Red = 250, Green = 59, Blue = 49 },
         NameSet = true,
         KeyFrames = {
            [0] = { -0.0128107279551574, RH = { 20.6666666666667, -0.0128107279551574 } },
            [62] = { 0.751562765177697, LH = { 41.3354003429413, 0.711774731224573 }, RH = { 81.9979996681213, 0.790067314164592 } },
            [122] = { 0.222090514887121, LH = { 102, 0.222090514887121 }, RH = { 143.333333333333, 0.222090514887121 } },
            [186] = { 0.222090514887121, LH = { 164.670151657662, -0.0180625502579652 }, RH = { 202.331700185955, 0.405969359018544 } },
            [235] = { 1.49077415855246, LH = { 218.83, 1.0721085561429 }, RH = { 245.329035897914, 1.75820842178748 } },
            [266] = { 1.68250997604628, LH = { 251.2, 4.14 } }
         }
      },
      pEmitter1YOffset = BezierSpline {
         SplineColor = { Red = 252, Green = 131, Blue = 47 },
         NameSet = true,
         KeyFrames = {
            [0] = { 0, RH = { 40.6666666666667, 0 }, Flags = { Linear = true } },
            [122] = { 0, LH = { 81.3333333333333, 0 }, RH = { 146.2, 0 }, Flags = { Linear = true } },
            [186] = { -1.09837208650337, LH = { 172, -1.65 }, RH = { 202.32141990968, -0.455275600069153 } },
            [235] = { -0.260944734491295, LH = { 218.666666666667, -0.260944734491295 }, RH = { 245.332299828529, -0.260944734491295 } },
            [266] = { -1.45696344940548, LH = { 255.666666666667, -1.45696344940548 } }
         }
      },
      pEmitter1ZOffset = BezierSpline {
         SplineColor = { Red = 254, Green = 207, Blue = 46 },
         NameSet = true,
         KeyFrames = {
            [0] = { 0, RH = { 20.6666666666667, 0 } },
            [62] = { 0, LH = { 41.3388694604781, 0.378634144454724 }, RH = { 86.4, -0.12 } },
            [122] = { -2.23576176217051, LH = { 84.6, -1.26 }, RH = { 168.4, -3.36 } },
            [186] = { -0.922054781635552, LH = { 164.666666666667, -0.922054781635552 } }
         }
      },
      pRender1 = pRender {
         CtrlWZoom = false,
         Inputs = {
            ["_MotionBlurWarning"] = Input { Disabled = true, },
            GlobalOut = Input { Value = 300, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            OutputMode = Input { Disabled = true, },
            IntegrationMethod = Input { Value = FuID { "RK4" }, },
            SubFrameCalculationAccuracy = Input { Value = 15, },
            ["MaterialID.MaterialID"] = Input { Value = 1, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            Input = Input {
               SourceOp = "pEmitter1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 770, 214.5 } },
      },
      Camera3D1 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.Y"] = Input { Value = 7.9525166230285, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 13.7959327419216, },
            ["Transform3DOp.UseTarget"] = Input { Value = 1, },
            AoV = Input { Value = 19.2642683071402, },
            ["Stereo.Mode"] = Input { Value = FuID { "Mono" }, },
            FilmGate = Input { Value = FuID { "BMD_URSA_4K_16x9" }, },
            ApertureW = Input { Value = 0.831496062992126, },
            ApertureH = Input { Value = 0.467716535433071, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 880, 280.5 } },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "pRender1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 880, 214.5 } },
      },
      Renderer3D1 = Renderer3D {
         Inputs = {
            GlobalOut = Input { Value = 300, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            SceneInput = Input {
               SourceOp = "Merge3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 990, 214.5 } },
      }
   }
}
Bob Place
Offline

Jens Noelte

  • Posts: 35
  • Joined: Mon Sep 26, 2016 5:25 pm

Re: need help with particles, create light streak

PostMon Feb 20, 2017 10:10 pm

Yes that's it! Thanks Bob!

Return to Fusion

Who is online

Users browsing this forum: No registered users and 22 guests