Jump to: Board index » General » Fusion

3D lighting distance blur?

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

Sparcy

  • Posts: 15
  • Joined: Mon Jun 24, 2019 6:23 pm
  • Real Name: Marc Thompson

3D lighting distance blur?

PostSat May 27, 2023 10:13 pm

Hi all,

Just watched a film I recorded last Christmas and saw this ident/bumper in the ad breaks: https://theident.gallery/five-2020-xmas.php

Got me wondering if I could recreate it in Fusion. So far I've got a spotlight shining out of a cut out shape, however I'm struggling to think how to get the light to do that nice blur effect as it gets further from the hole? I think I'm treating it too literally as a light and a cutout. Maybe the "light" should really be a shape or something?

This is just a learning project for me, so I'm not looking for a step-by-step tutorial, just a few ideas for things to experiment with and improve my skills.

Any suggestions or pointers gratefully recieved :-)

Thanks
Offline
User avatar

Bryan Ray

  • Posts: 2478
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: 3D lighting distance blur?

PostSun May 28, 2023 4:31 pm

In your spotlight's shadow controls, set the Softness to Variable.

Code: Select all
{
   Tools = ordered() {
      ChannelBooleans1 = ChannelBoolean {
         Inputs = {
            Operation = Input { Value = 10, },
            Background = Input {
               SourceOp = "Text1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { -770, -313.5 } },
      },
      Text1 = TextPlus {
         Inputs = {
            Width = Input { Value = 512, },
            Height = Input { Value = 512, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            LayoutRotation = Input { Value = 1, },
            TransformRotation = Input { Value = 1, },
            Softness1 = Input { Value = 1, },
            StyledText = Input { Value = "FUSION", },
            Font = Input { Value = "Open Sans", },
            Style = Input { Value = "Bold", },
            Size = Input { Value = 0.3425, },
            VerticalJustificationNew = Input { Value = 3, },
            HorizontalJustificationNew = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { -880, -313.5 } },
      },
      SpotLight1 = LightSpot {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.0204062907566249, },
            ["Transform3DOp.Translate.Y"] = Input { Value = -0.283419102493666, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 1.22347998007425, },
            ["Transform3DOp.Rotate.X"] = Input { Value = 2.6, },
            ConeAngle = Input { Value = 72.28, },
            ["ShadowLightInputs3D.Nest"] = Input { Value = 1, },
            ["ShadowLightInputs3D.ShadowsEnabled"] = Input { Value = 1, },
            ["ShadowLightInputs3D.ShadowDensity"] = Input { Value = 1, },
            ["ShadowLightInputs3D.ShadowMapSize"] = Input { Value = 2048, },
            ["ShadowLightInputs3D.SoftnessType"] = Input { Value = FuID { "Variable" }, },
         },
         ViewInfo = OperatorInfo { Pos = { -660, -379.5 } },
      },
      Shape3D1 = Shape3D {
         Inputs = {
            ["Transform3DOp.Translate.Y"] = Input { Value = -0.737665600749345, },
            MaterialInput = Input {
               SourceOp = "ChannelBooleans1",
               Source = "Output",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, }
         },
         ViewInfo = OperatorInfo { Pos = { -605, -313.5 } },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "Shape3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "SpotLight1",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "Shape3D1_1",
               Source = "Output",
            },
            SceneInput4 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { -495, -313.5 } },
      },
      Shape3D1_1 = Shape3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = 0.0445660672326102, },
            ["Transform3DOp.Translate.Y"] = Input { Value = -0.812082143046583, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.71111234240506, },
            ["Transform3DOp.Rotate.X"] = Input { Value = -90, },
            ["Transform3DOp.Scale.X"] = Input { Value = 5, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, }
         },
         ViewInfo = OperatorInfo { Pos = { -605, -247.5 } },
      },
      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",
            },
            CameraSelector = Input { Value = FuID { "Camera3D1" }, },
            ["RendererSoftware.LightingEnabled"] = Input { Value = 1, },
            ["RendererSoftware.ShadowsEnabled"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { -385, -313.5 } },
      },
      Camera3D1 = Camera3D {
         NameSet = true,
         CustomData = {
            Settings = {
               [1] = {
                  Tools = ordered() {
                     Camera3D1 = Camera3D {
                        Inputs = {
                           ApertureW = Input { Value = 0.831496062992126 },
                           AoV = Input { Value = 19.2642683071402 },
                           ["Stereo.Mode"] = Input { Value = FuID { "OffAxis" } },
                           ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1 },
                           ApertureH = Input { Value = 0.467716535433071 },
                           FilmGate = Input { Value = FuID { "BMD_URSA_4K_16x9" } },
                           ["MtlStdInputs.MaterialID"] = Input { Value = 1 }
                        },
                        Name = "Camera3D1",
                        CtrlWZoom = false,
                        NameSet = true,
                        ViewInfo = OperatorInfo { Pos = { 550, 214.5 } },
                        CustomData = {
                        }
                     }
                  }
               },
               [6] = {
                  Tools = ordered() {
                     Camera3D1 = Camera3D {
                        Inputs = {
                           FLength = Input { Value = 49.0568334445481 },
                           ["Transform3DOp.Translate.Z"] = Input { Expression = "self.ImageInput.Metadata.Translate.Z" },
                           ImagePlaneEnabled = Input { Value = 0 },
                           AoV = Input {
                              Value = 19.2642683071402,
                              Expression = "self.ImageInput.Metadata.RSCameraFOV or self.ImageInput.Metadata['rs/camera/fov']"
                           },
                           AovType = Input { Value = 1 },
                           ["Transform3DOp.Rotate.Y"] = Input { Expression = "self.ImageInput.Metadata.Rotate.Y" },
                           ApertureH = Input { Value = 0.9 },
                           FilmGate = Input { Value = FuID { "HD" } },
                           ["Transform3DOp.Rotate.X"] = Input { Expression = "self.ImageInput.Metadata.Rotate.X" },
                           ["Transform3DOp.Translate.X"] = Input { Expression = "self.ImageInput.Metadata.Translate.X" },
                           PlaneOfFocus = Input { Expression = "self.ImageInput.Metadata.RSCameraDOFFocusDistance or self.ImageInput.Metadata['rs/camera/DOFFocusDistance']" },
                           FilmBack = Input { Value = 1 },
                           ["Transform3DOp.Rotate.RotOrder"] = Input { Value = FuID { "ZXY" } },
                           ["MtlStdInputs.MaterialID"] = Input { Value = 1 },
                           ["Stereo.Mode"] = Input { Value = FuID { "OffAxis" } },
                           ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1 },
                           ["Transform3DOp.Translate.Y"] = Input { Expression = "self.ImageInput.Metadata.Translate.Y" },
                           ApertureW = Input { Value = 1.6 },
                           ["Transform3DOp.Rotate.Z"] = Input { Expression = "self.ImageInput.Metadata.Rotate.Z" }
                        },
                        CtrlWZoom = false,
                        NameSet = true,
                        ViewInfo = OperatorInfo { Pos = { 387, 145 } },
                        CustomData = {
                        }
                     }
                  }
               }
            }
         },
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.660450201817945, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.118763460779184, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -1.03095181512949, },
            ["Transform3DOp.Rotate.X"] = Input { Value = -36.0000038146973, },
            ["Transform3DOp.Rotate.Y"] = Input { Value = -142.200003814697, },
            FLength = Input { Value = 18.2123442718302, },
            ["Stereo.Mode"] = Input { Value = FuID { "OffAxis" }, },
            FilmGate = Input { Value = FuID { "BMD_URSA_4K_16x9" }, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { -605, -214.5 } },
      }
   }
}
Attachments
soft-shadows.jpg
soft-shadows.jpg (93.44 KiB) Viewed 534 times
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

Sparcy

  • Posts: 15
  • Joined: Mon Jun 24, 2019 6:23 pm
  • Real Name: Marc Thompson

Re: 3D lighting distance blur?

PostWed May 31, 2023 9:48 pm

Thanks Bryan.

Everytime I think I've got Fusion a little bit figured out, something like this pops up!

Takes a true connoisseur such as yourself to really get to the detail of it! ;)

Return to Fusion

Who is online

Users browsing this forum: Hideki Inoue and 27 guests