Jump to: Board index » General » Fusion

pCustom weird behavior

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

MeesterP

  • Posts: 22
  • Joined: Mon Feb 05, 2024 8:01 am
  • Real Name: Paul Meesters

pCustom weird behavior

PostThu Feb 08, 2024 8:00 pm

Hi,

When I use a pEmitter and a pCustom with the value "id" in the "Position x" field, the particles are NOT plotted in a straight line, as I would expect.
This can be fixed by setting the values for "Position y" and "Position z" to the value zero...

Is this intended behavior ? In several tutorials on YouTube I see them do the same, getting a straigth line or column of particles without having to enter zeroes in the two other fields.

Maybe I am missing some things in settings, configuration or somewhere else ?

Anybody know ?

here are some screenshots:
https://drive.google.com/file/d/1L0WViDpXcVTrkPi5hpcld_nnVl67lKEE/view?usp=sharing
https://drive.google.com/file/d/1pi05EJK5V6HN4K6VxL_voKpAXE6hxUMk/view?usp=sharing

Thanks,
Paul
Offline

Sander de Regt

  • Posts: 3591
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: pCustom weird behavior

PostThu Feb 08, 2024 8:05 pm

What kind of emitter are you using and what size is it? Maybe the other tutorials start with smaller emitters, so that py and pz are already zero without having to set them as such?
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

MeesterP

  • Posts: 22
  • Joined: Mon Feb 05, 2024 8:01 am
  • Real Name: Paul Meesters

Re: pCustom weird behavior

PostThu Feb 08, 2024 8:28 pm

It's just a regular pEmitter, all with default values, except for the style, which is set to blob (and increased size)

here's the code ot the two tools:

Code: Select all
{
   Tools = ordered() {
      pEmitter1 = pEmitter {
         ID = 29,
         CtrlWZoom = false,
         Inputs = {
            Style = Input { Value = FuID { "ParticleStyleBlob" }, },
            Region = Input { Value = FuID { "AllRgn" }, },
            ["BezierRgn.Polyline"] = Input {
               Value = Polyline {
               },
            },
            ["ParticleStyle.SizeControls"] = Input { Value = 1, },
            ["ParticleStyle.Size"] = Input { Value = 0.2362, },
            ["ParticleStyle.SizeOverLife"] = Input {
               SourceOp = "pEmitter1SizeOverLife",
               Source = "Value",
            },
            ["ParticleStyle.BlurOverLife"] = Input {
               SourceOp = "pEmitter1BlurOverLife2D",
               Source = "Value",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 200, 23.1212 } },
      },
      pEmitter1SizeOverLife = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.333333333333333, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.666666666666667, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pEmitter1BlurOverLife2D = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.333333333333333, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.666666666666667, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         NameSet = true,
      },
      pCustom1 = pCustom {
         ID = 32,
         Inputs = {
            PositionXExpression = Input { Value = "id", },
            Input = Input {
               SourceOp = "pEmitter1",
               Source = "Output",
            },
            CommentsNest = Input { Value = 0, },
            FrameRenderScriptNest = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 310, 23.1212 } },
      }
   }
}
Offline

Sander de Regt

  • Posts: 3591
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: pCustom weird behavior

PostThu Feb 08, 2024 8:32 pm

I don't think the default region from a pEmitter is 'All' - usually it's Sphere. So as soon as I change it to that and make the sphere really tiny, I get this result:

Code: Select all
{
   Tools = ordered() {
      pCustom1 = pCustom {
         ID = 4,
         Inputs = {
            PositionXExpression = Input { Value = "id", },
            Input = Input {
               SourceOp = "pEmitter1",
               Source = "Output",
            },
            CommentsNest = Input { Value = 0, },
            FrameRenderScriptNest = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 440, -16.5 } },
      },
      pEmitter1 = pEmitter {
         ID = 1,
         CtrlWZoom = false,
         Inputs = {
            ["BezierRgn.Polyline"] = Input {
               Value = Polyline {
               },
            },
            Style = Input { Value = FuID { "ParticleStyleBlob" }, },
            ["SphereRgn.Size"] = Input { Value = 0.001, },
            ["ParticleStyle.SizeControls"] = Input { Value = 1, },
            ["ParticleStyle.Size"] = Input { Value = 0.2362, },
            ["ParticleStyle.SizeOverLife"] = Input {
               SourceOp = "pEmitter1SizeOverLife",
               Source = "Value",
            },
            ["ParticleStyle.BlurOverLife"] = Input {
               SourceOp = "pEmitter1BlurOverLife2D",
               Source = "Value",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 330, -16.5 } },
      },
      pEmitter1SizeOverLife = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.333333333333333, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.666666666666667, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         CtrlWZoom = false,
      },
      pEmitter1BlurOverLife2D = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.333333333333333, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.666666666666667, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
         CtrlWZoom = false,
      },
      pRender1 = pRender {
         Inputs = {
            _MotionBlurWarning = Input { Disabled = true, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            ["MaterialID.MaterialID"] = Input { Value = 1, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            Input = Input {
               SourceOp = "pCustom1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 660, -16.5 } },
      }
   }
}
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

MeesterP

  • Posts: 22
  • Joined: Mon Feb 05, 2024 8:01 am
  • Real Name: Paul Meesters

Re: pCustom weird behavior

PostThu Feb 08, 2024 8:53 pm

My bad - I changed that too :roll:
changing it to Sphere reduces the variance, but still shows a wobbling line:

Image



Edit:
Ah - Ok. I see it now :)
The size of the emitter must be very small indeed. You set it at 0.001 where I had it at the default 0.1
tiny details matter big time :lol:
Last edited by MeesterP on Thu Feb 08, 2024 8:57 pm, edited 1 time in total.
Offline

Sander de Regt

  • Posts: 3591
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: pCustom weird behavior

PostThu Feb 08, 2024 8:56 pm

Did you copy/paste my settings? The particles line up exactly at the grid points there.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

MeesterP

  • Posts: 22
  • Joined: Mon Feb 05, 2024 8:01 am
  • Real Name: Paul Meesters

Re: pCustom weird behavior

PostThu Feb 08, 2024 9:01 pm

Sander,
Yeah - I got it now :P
Thanks, this will make me question each and every value everywhere. It all seems to matter.

Still weird though that setting a variable in 1 axis change the other two axis's too. That should not happen in my experience. (zero experience in Fusion though)
Offline

Okke Verbart

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

Re: pCustom weird behavior

PostThu Feb 08, 2024 9:04 pm

a tiny emitter indeed resolves the issue. However...the great thing about the pCustom is that you can just position the particles wherever you want. Often I don't care about the emitter shape....I just position them with px, py, pz etc.
www.ablackbirdcalledsue.com
Offline
User avatar

Chad Capeland

  • Posts: 3025
  • Joined: Mon Nov 10, 2014 9:40 pm

Re: pCustom weird behavior

PostThu Feb 08, 2024 11:03 pm

MeesterP wrote:Still weird though that setting a variable in 1 axis change the other two axis's too. That should not happen in my experience. (zero experience in Fusion though)


It's not, though. The py and pz are unchanged. That's where the pEm put them at that time.
Chad Capeland
Indicated, LLC
www.floweffects.com

Return to Fusion

Who is online

Users browsing this forum: No registered users and 36 guests