Jump to: Board index » General » Fusion

Spotlight freezes in the 3D viewer

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

Jinxer

  • Posts: 59
  • Joined: Thu Sep 23, 2021 3:06 pm
  • Real Name: Sergey Zinchenko

Spotlight freezes in the 3D viewer

PostThu May 12, 2022 1:01 am

Image
The spotlight must be in the middle of the red cube. Can this be fixed?
Code: Select all
{
   Tools = ordered() {
      Shape3D1_1 = Shape3D {
         Inputs = {
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 4, },
            ["Transform3DOp.Translate.Y"] = Input { Value = -0.014, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.05, },
            ["Transform3DOp.ScaleLock"] = Input { Value = 0, },
            ["Transform3DOp.Scale.X"] = Input { Value = 5, },
            ["Transform3DOp.Scale.Y"] = Input { Value = 0.513, },
            ["Transform3DOp.Scale.Z"] = Input { Value = 0.859, },
            Shape = Input { Value = FuID { "SurfaceCubeInputs" }, },
            ["MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 6, },
            ["SurfaceCubeInputs.Width"] = Input { Value = 0.02, },
            ["SurfaceCubeInputs.ObjectID.ObjectID"] = Input { Value = 5, }
         },
         ViewInfo = OperatorInfo { Pos = { -770, -148.5 } },
      },
      Merge3D5 = Merge3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input {
               SourceOp = "Merge3D5XOffset",
               Source = "Value",
            },
            ["Transform3DOp.Translate.Y"] = Input {
               SourceOp = "Merge3D5YOffset",
               Source = "Value",
            },
            ["Transform3DOp.Translate.Z"] = Input {
               SourceOp = "Merge3D5ZOffset",
               Source = "Value",
            },
            ["Transform3DOp.Rotate.X"] = Input {
               SourceOp = "Merge3D5XRotation",
               Source = "Value",
            },
            ["Transform3DOp.Rotate.Y"] = Input {
               SourceOp = "Merge3D5YRotation",
               Source = "Value",
            },
            ["Transform3DOp.Rotate.Z"] = Input {
               SourceOp = "Merge3D5ZRotation",
               Source = "Value",
            },
            ["Transform3DOp.ScaleLock"] = Input { Value = 0, },
            ["Transform3DOp.Scale.X"] = Input { Value = 0.063, },
            ["Transform3DOp.Scale.Y"] = Input { Value = 0.031, },
            ["Transform3DOp.Scale.Z"] = Input { Value = 0.014, },
            SceneInput1 = Input {
               SourceOp = "Shape3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { -770, -115.5 } },
      },
      Merge3D5XOffset = BezierSpline {
         SplineColor = { Red = 250, Green = 59, Blue = 49 },
         KeyFrames = {
            [60] = { 0, Flags = { Linear = true } }
         }
      },
      Merge3D5YOffset = BezierSpline {
         SplineColor = { Red = 252, Green = 131, Blue = 47 },
         KeyFrames = {
            [60] = { 0, Flags = { Linear = true } }
         }
      },
      Merge3D5ZOffset = BezierSpline {
         SplineColor = { Red = 254, Green = 207, Blue = 46 },
         KeyFrames = {
            [0] = { -0.15, RH = { 20, -0.1 }, Flags = { Linear = true } },
            [60] = { 0, LH = { 40, -0.05 }, Flags = { Linear = true } }
         }
      },
      Merge3D5XRotation = BezierSpline {
         SplineColor = { Red = 255, Green = 128, Blue = 128 },
         KeyFrames = {
            [60] = { 0, Flags = { Linear = true } }
         }
      },
      Merge3D5YRotation = BezierSpline {
         SplineColor = { Red = 128, Green = 255, Blue = 128 },
         KeyFrames = {
            [0] = { 180, RH = { 20, 120 }, Flags = { Linear = true } },
            [60] = { 0, LH = { 40, 60 }, Flags = { Linear = true } }
         }
      },
      Merge3D5ZRotation = BezierSpline {
         SplineColor = { Red = 128, Green = 128, Blue = 255 },
         CtrlWZoom = false,
         KeyFrames = {
            [60] = { 0, Flags = { Linear = true } }
         }
      },
      Shape3D1 = Shape3D {
         Inputs = {
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 4, },
            Shape = Input { Value = FuID { "SurfaceCubeInputs" }, },
            ["MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0, },
            ["MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 6, },
            ["SurfaceCubeInputs.ObjectID.ObjectID"] = Input { Value = 5, }
         },
         ViewInfo = OperatorInfo { Pos = { -880, -115.5 } },
      },
      SpotLight4 = LightSpot {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Expression = "Merge3D5.Transform3DOp.Translate.X", },
            ["Transform3DOp.Translate.Y"] = Input { Expression = "Merge3D5.Transform3DOp.Translate.Y", },
            ["Transform3DOp.Translate.Z"] = Input {
               Value = -0.1275,
               Expression = "Merge3D5.Transform3DOp.Translate.Z",
            },
            ["Transform3DOp.Rotate.X"] = Input { Expression = "Merge3D5.Transform3DOp.Rotate.X", },
            ["Transform3DOp.Rotate.Y"] = Input {
               Value = 333,
               Expression = "Merge3D5.Transform3DOp.Rotate.Y+180.0",
            },
            ["Transform3DOp.Rotate.Z"] = Input { Expression = "Merge3D5.Transform3DOp.Rotate.Z", },
            DecayType = Input { Value = 1, },
            ConeAngle = Input { Value = 90, },
            ["ShadowLightInputs3D.ShadowsEnabled"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { -660, -148.5 } },
      },
      Merge3D4 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "Merge3D5",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "Camera3D2",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "SpotLight4",
               Source = "Output",
            },
            SceneInput5 = Input {
               SourceOp = "SpotLight5",
               Source = "Output",
            },
            SceneInput4 = Input {
               SourceOp = "Shape3D1_1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { -660, -115.5 } },
      },
      Camera3D2 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.174891688514023, },
            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, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 6, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 7, },
         },
         ViewInfo = OperatorInfo { Pos = { -660, -82.5 } },
      },
      SpotLight5 = LightSpot {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = 0.124, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.072, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.14, },
            ["Transform3DOp.UseTarget"] = Input { Value = 1, },
            Intensity = Input { Value = 0.173, },
            DecayType = Input { Value = 1, },
            ConeAngle = Input { Value = 90, },
            ["ShadowLightInputs3D.ShadowsEnabled"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { -770, -82.5 } },
      },
      Renderer3D2 = Renderer3D {
         CtrlWZoom = false,
         CustomData = { ToolVersion = 2, },
         Inputs = {
            GlobalOut = Input { Value = 299, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            UseFrameFormatSettings = Input { Value = 1, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            SceneInput = Input {
               SourceOp = "Merge3D4",
               Source = "Output",
            },
            ["RendererOpenGL.AntiAliasing.Channels.RGBA.HighQuality.Enable"] = Input { Value = 1, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.RateX"] = Input { Value = 3, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.RateY"] = Input { Value = 3, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Multisampling.LowQuality.SampleCount"] = Input { Value = 2, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Multisampling.HighQuality.SampleCount"] = Input { Value = 3, },
            ["RendererOpenGL.AntiAliasing.Presets.Aux.Supersampling.HighQuality.RateX"] = Input { Value = 3, },
            ["RendererOpenGL.AntiAliasing.Presets.Aux.Supersampling.HighQuality.RateY"] = Input { Value = 3, },
            ["RendererOpenGL.AntiAliasing.Presets.Aux.Multisampling.LowQuality.SampleCount"] = Input { Value = 2, },
            ["RendererOpenGL.AntiAliasing.Presets.Aux.Multisampling.HighQuality.SampleCount"] = Input { Value = 3, },
            ["RendererOpenGL.AccumQuality"] = Input { Value = 32, },
            ["RendererOpenGL.LightingEnabled"] = Input { Value = 1, },
            ["RendererOpenGL.ShadowsEnabled"] = Input { Value = 1, },
            ["RendererSoftware.LightingEnabled"] = Input { Value = 1, },
            ["RendererSoftware.ShadowsEnabled"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { -550, -115.5 } },
         SubInputsData = {
            RendererOpenGL = {
               Version = 1
            }
         }
      }
   },
   ActiveTool = "Renderer3D2"
}
Offline

Sander de Regt

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

Re: Spotlight freezes in the 3D viewer

PostThu May 12, 2022 6:35 am

Maybe I don't understand your question, but why not just use the transform settings to change the position and rotation of the spotlight?
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Jinxer

  • Posts: 59
  • Joined: Thu Sep 23, 2021 3:06 pm
  • Real Name: Sergey Zinchenko

Re: Spotlight freezes in the 3D viewer

PostThu May 12, 2022 3:55 pm

The transformation settings were set correctly. I believe this is a viewer bug. Instead of clicking play, press the left mouse button and drag from 0 to 60 frames. You will see that the spotlight in the viewer occasionally freezes.
Offline

xunile

  • Posts: 3075
  • Joined: Mon Apr 23, 2018 5:21 am
  • Real Name: Eric Eisenmann

Re: Spotlight freezes in the 3D viewer

PostThu May 12, 2022 5:15 pm

My first question would be why do you have the first cube connected to a separate Merge3D and then you have the Merge3D keyframed?
Win 10 Home | Intel i7 - 10700f 64 GB 1 TB GB SSD 2 TB SSD
RTX-3060 12 GB | Resolve Studio 18.6.6| Fusion Studio 18.6.6

Win 10 Home | Intel Core I7-7700HQ 32 GB 1 TB NVME SSD 1 TB SATA SSD
GTX-1060-6GB | Resolve 17.4.6
Offline

Jinxer

  • Posts: 59
  • Joined: Thu Sep 23, 2021 3:06 pm
  • Real Name: Sergey Zinchenko

Re: Spotlight freezes in the 3D viewer

PostThu May 12, 2022 7:00 pm

Because I'm going to connect some more shapes to Merge3D5 and animate them together with the red cube.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 73 guests