Jump to: Board index » General » Fusion

Particles In Fusion

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

justArandomIdiot

  • Posts: 1
  • Joined: Sun Jul 25, 2021 8:36 am
  • Real Name: Burhan Masood

Particles In Fusion

PostSun Jul 25, 2021 8:46 am

so I want to have set number of particles moving around the screen randomly - and I'm using pTurbulence for that. Problem is I don't want them going off the screen. I want to confine them to a region and they're supposed to just turbulence around in just that region - but i cannot for the life of me seem to figure out how.
Any help would be greatly appreciated!
Offline

Okke Verbart

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

Re: Particles In Fusion

PostWed Jul 28, 2021 5:41 pm

Hey - yeh, for sure. You can use the pBounce for that. Quick example comp below:

Code: Select all
{
   Tools = ordered() {
      pTurbulence1 = pTurbulence {
         ID = 36,
         CtrlWZoom = false,
         Inputs = {
            XStrength = Input { Value = 0.4, },
            YStrength = Input { Value = 0.4, },
            ZStrength = Input { Value = 0.4, },
            StrengthOverLifeLUT = Input {
               SourceOp = "pTurbulence1StrengthoverLifeLUT",
               Source = "Value",
            },
            Input = Input {
               SourceOp = "pEmitter1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 239, 36 } },
      },
      pTurbulence1StrengthoverLifeLUT = 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,
      },
      pEmitter1 = pEmitter {
         ID = 31,
         Inputs = {
            Number = Input {
               SourceOp = "pEmitter1Number",
               Source = "Value",
            },
            Lifespan = Input { Value = 300, },
            Style = Input { Value = FuID { "ParticleStyleBlob" }, },
            ["ParticleStyle.SizeControls"] = Input { Value = 1, },
            ["ParticleStyle.Size"] = Input { Value = 0.2, },
            ["ParticleStyle.SizeOverLife"] = Input {
               SourceOp = "pEmitter1SizeoverLife",
               Source = "Value",
            },
            ["ParticleStyle.BlurOverLife"] = Input {
               SourceOp = "pEmitter1BluroverLife2D",
               Source = "Value",
            },
            ["SphereRgn.Size"] = Input { Value = 0.65, },
            ["RectRgn.Width"] = Input { Value = 0.897, },
            ["RectRgn.Height"] = Input { Value = 0.432, }
         },
         ViewInfo = OperatorInfo { Pos = { 88, 34 } },
      },
      pEmitter1Number = BezierSpline {
         SplineColor = { Red = 233, Green = 206, Blue = 78 },
         NameSet = true,
         KeyFrames = {
            [0] = { 100, RH = { 0.333333333333333, 66.6666666666667 }, Flags = { Linear = true } },
            [1] = { 0, LH = { 0.666666666666667, 33.3333333333333 }, Flags = { Linear = true } }
         }
      },
      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,
      },
      pBounce1 = pBounce {
         ID = 35,
         Inputs = {
            Input = Input {
               SourceOp = "pTurbulence1",
               Source = "Output",
            },
            Region = Input { Value = FuID { "CubeRgn" }, },
            ["RectRgn.Width"] = Input { Value = 0.859, },
            ["RectRgn.Height"] = Input { Value = 0.496, },
            ["BitmapRgn.Channel"] = Input { Value = 4, },
            ["BitmapRgn.Low"] = Input { Value = 0.361, },
            ["CubeRgn.Width"] = Input { Value = 1.5, },
            ["CubeRgn.Height"] = Input { Value = 1.5, },
            ["CubeRgn.Depth"] = Input { Value = 1.5, }
         },
         ViewInfo = OperatorInfo { Pos = { 393, 30 } },
      },
      pRender1 = pRender {
         Inputs = {
            _MotionBlurWarning = Input { Disabled = true, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            IntegrationMethod = Input { Value = FuID { "RK4" }, },
            ["MaterialID.MaterialID"] = Input { Value = 1, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            Input = Input {
               SourceOp = "pBounce1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 604, 32 } },
      }
   }
}
www.ablackbirdcalledsue.com

Return to Fusion

Who is online

Users browsing this forum: No registered users and 34 guests