Jump to: Board index » General » Fusion

Shadows being cast depends on light distance?

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

wfolta

  • Posts: 625
  • Joined: Fri May 15, 2020 1:12 pm
  • Real Name: Wayne Folta

Shadows being cast depends on light distance?

PostWed Dec 23, 2020 2:36 pm

I'm continuing to learn particles in Fusion Studio and have hit another puzzler. I have some Blob particles that are heading towards a sphere. (Inside the sphere is a Bounce.) I have a spotlight pointing at the sphere and it appears that the spotlight has to be a minimal distance from a particle or the particle won't cast a shadow.

I've tried changing the shadow map size, particle sizes, etc, and I notice that the shadows are a bit odd-looking (sometimes square, etc) to begin with, and buy moving the light closer fewer particles get shadows and by moving it farther more particles get shadows. This works basically the same with OpenGL or Software rendering, though OpenGL has square shadows.

I thought, because of the at-times-square shadows that it was a shadow map thing, or a particle size thing -- my particles are small -- but I've tried maxing the shadow map and changing particles to be the default size, and it doesn't seem to make a difference.

Any ideas? (This is Fusion Studio v17b6 on a Mac.)

Code: Select all
{
   Tools = ordered() {
      pEmitter1 = pEmitter {
         ID = 1,
         Inputs = {
            ["ParticleStyleNGon.NGonSides"] = Input { Value = 8, },
            Number = Input { Value = 1, },
            Lifespan = Input { Value = 200, },
            VelocityControls = Input { Value = 1, },
            Velocity = Input { Value = 0.024, },
            AngleVariance = Input { Value = 90, },
            Style = Input { Value = FuID { "ParticleStyleBlob" }, },
            ["ParticleStyle.ColorControls"] = Input { Value = 1, },
            ["ParticleStyle.Red"] = Input { Value = 0.792156862745098, },
            ["ParticleStyle.Green"] = Input { Value = 0.23921568627451, },
            ["ParticleStyle.Blue"] = Input { Value = 0, },
            ["ParticleStyle.SizeControls"] = Input { Value = 1, },
            ["ParticleStyle.Size"] = Input { Value = 0.0276, },
            ["ParticleStyle.SizeOverLife"] = Input {
               SourceOp = "pEmitter1SizeOverLife",
               Source = "Value",
            },
            ["ParticleStyle.MergeControls"] = Input { Value = 1, },
            ["ParticleStyle.BlurOverLife"] = Input {
               SourceOp = "pEmitter1BlurOverLife2D",
               Source = "Value",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 96.3333, 15.2879 } },
      },
      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,
      },
      pBounce1 = pBounce {
         ID = 9,
         Inputs = {
            ["MeshRegion.ObjectID"] = Input { Value = 2, },
            Input = Input {
               SourceOp = "pEmitter1",
               Source = "Output",
            },
            Region = Input { Value = FuID { "SphereRgn" }, },
            ["SphereRgn.Size"] = Input { Value = 1, },
            ["SphereRgn.Translate.X"] = Input { Value = 0.740919342950655, },
         },
         ViewInfo = OperatorInfo { Pos = { 226.333, 15.2424 } },
      },
      pRender1 = pRender {
         Inputs = {
            _MotionBlurWarning = Input { Disabled = true, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            OutputMode = Input { Disabled = true, },
            ["MaterialID.Nest"] = Input { Value = 1, },
            ["MaterialID.MaterialID"] = Input { Value = 2, },
            ["ObjectID.Nest"] = Input { Value = 1, },
            ["ObjectID.ObjectID"] = Input { Value = 3, },
            ["Pivot.X"] = Input { Value = -0.594, },
            Input = Input {
               SourceOp = "pBounce1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 356.334, 15.2879 } },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            PassThroughLights = Input { Value = 1, },
            SceneInput1 = Input {
               SourceOp = "Shape3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "pRender1",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "SpotLight1",
               Source = "Output",
            },
            SceneInput4 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 378.333, 71.6515 } },
      },
      Shape3D1 = Shape3D {
         Inputs = {
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
            ["Transform3DOp.Translate.X"] = Input { Value = 1.25999114746351, },
            ["Transform3DOp.PivotNest"] = Input { Value = 1, },
            Shape = Input { Value = FuID { "SurfaceSphereInputs" }, },
            ["MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0.596078431372549, },
            ["MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0.498039215686275, },
            ["MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0.294117647058824, },
            ["MtlStdInputs.Specular.Nest"] = Input { Value = 1, },
            ["MtlStdInputs.Specular.Intensity"] = Input { Value = 0.5, },
            ["MtlStdInputs.MaterialIDNest"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
            ["SurfaceSphereInputs.Lighting.Nest"] = Input { Value = 1, },
            ["SurfaceSphereInputs.Lighting.IsShadowCaster"] = Input { Value = 0, },
            ["SurfaceSphereInputs.ObjectID.Nest"] = Input { Value = 1, },
            ["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 2, }
         },
         ViewInfo = OperatorInfo { Pos = { 249.667, 71.3181 } },
      },
      Camera3D1 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.621451904608729, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.0278349478812167, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -0.919253423710141, },
            ["Transform3DOp.Rotate.X"] = Input { Value = 0.799999999999997, },
            ["Transform3DOp.Rotate.Y"] = Input { Value = -129.3, },
            PerspFarClip = Input { Value = 20, },
            AoV = Input { Value = 19.2642683071402, },
            ["Stereo.Mode"] = Input { Value = FuID { "OffAxis" }, },
            FilmGate = Input { Value = FuID { "BMD_URSA_4K_16x9" }, },
            ApertureW = Input { Value = 0.831496062992126, },
            ApertureH = Input { Value = 0.467716535433071, },
            ControlVis = Input { Value = 1, },
            PerspNearClipVis = Input { Value = 1, },
            PerspNearClipSub = Input { Value = 3, },
            PerspFarClipSub = Input { Value = 3, },
            PlaneOfFocusVis = Input { Value = 1, },
            PlaneOfFocusSub = Input { Value = 3, },
            ConvergenceDistanceVis = Input { Value = 0, },
            ConvergenceDistanceSub = Input { Value = 3, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 4, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { 279, 114.682 } },
      },
      SpotLight1 = LightSpot {
         CtrlWZoom = false,
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.805060962779359, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.258230497540393, },
            ["Transform3DOp.Rotate.Y"] = Input { Value = -73.1, },
            DecayType = Input { Value = 2, },
            ["ShadowLightInputs3D.Nest"] = Input { Value = 1, },
            ["ShadowLightInputs3D.ShadowDensity"] = Input { Value = 0.7, },
            ["ShadowLightInputs3D.SoftnessType"] = Input { Value = FuID { "Constant" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 399, 141.621 } },
      },
      Renderer3D1 = Renderer3D {
         CustomData = {
            ToolVersion = 2
         },
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            SceneInput = Input {
               SourceOp = "Merge3D1",
               Source = "Output",
            },
            ["RendererSoftware.LightingEnabled"] = Input { Value = 1, },
            ["RendererSoftware.ShadowsEnabled"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 579, 71.6515 } },
      }
   }
}
Resolve Studio 17 latest, Fusion Studio 17 latest, macOS Big Sur latest, MacBook Pro 2020 64GB RAM and Radeon Pro 5600M 8GB VRAM

Return to Fusion

Who is online

Users browsing this forum: Google [Bot], KrunoSmithy and 39 guests