Jump to: Board index » General » Fusion

Newbie: Point light not casting light on Shape3D

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

Dara O'Neill

  • Posts: 41
  • Joined: Fri Jun 23, 2017 10:31 pm
  • Location: Ireland

Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 6:22 pm

Nothing I do seems to work. Image attached. I followed online tutorial to get this far.

fusion_pointlight-problem.png
fusion_pointlight-problem.png (439.82 KiB) Viewed 2267 times


Thanks
Offline
User avatar

Chad Capeland

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

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 6:44 pm

You're viewing the scene tree before the light has been merged in.
Chad Capeland
Indicated, LLC
www.floweffects.com
Offline
User avatar

Dara O'Neill

  • Posts: 41
  • Joined: Fri Jun 23, 2017 10:31 pm
  • Location: Ireland

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 8:06 pm

Thanks for the reply but I see the same shaded shape even if I click on Merge3D1 node.
Offline

Sander de Regt

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

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 8:07 pm

You must put the light into the other 3dMerge for it to work.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Dara O'Neill

  • Posts: 41
  • Joined: Fri Jun 23, 2017 10:31 pm
  • Location: Ireland

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 8:39 pm

Sander de Regt wrote:You must put the light into the other 3dMerge for it to work.


I have already connected the light to 3DMerge1.SceneInput3.
Offline

Sander de Regt

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

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 9:00 pm

Ah, I see now. Sorry for that. I confused the regular merge with the 3Dmerge.
Did you drag the 3dMerge to your viewer as well? Just clicking a tool, doesn't activate it in the view.
Last edited by Sander de Regt on Fri Jul 14, 2017 9:30 pm, edited 1 time in total.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Dara O'Neill

  • Posts: 41
  • Joined: Fri Jun 23, 2017 10:31 pm
  • Location: Ireland

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 9:07 pm

Sander de Regt wrote:Ah, I see now. Sorry for that. I confused the regulare merge with the 3Dmerge.
Did you drag the 3dMerge to your viewer as well? Just clicking a tool, doesn't activate it in the view.


Phew, thanks Sander! I knew it would be something simple and mildly embarrassing. :)

Appreciate the help.
Offline
User avatar

Dara O'Neill

  • Posts: 41
  • Joined: Fri Jun 23, 2017 10:31 pm
  • Location: Ireland

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 9:42 pm

OK sorry I spoke too soon. I changed things slightly and the light stopped working again. Picture attached...

fusion-lightproblem.jpg
fusion-lightproblem.jpg (301.33 KiB) Viewed 2217 times
Offline

Sander de Regt

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

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 9:57 pm

If you replace your texture with f.e. a Fast Noise tool or a Mandelbrot Creator, you can copy/paste your nodes into these messages, so we can follow along. Like this:

Code: Select all
{
   Tools = ordered() {
      Shape3D1 = Shape3D {
         Inputs = {
            Shape = Input { Value = FuID { "SurfaceTorusInputs" }, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
            ["SurfaceTorusInputs.ObjectID.ObjectID"] = Input { Value = 2, }
         },
         ViewInfo = OperatorInfo { Pos = { 217, 71.5 } },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "Shape3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "PointLight1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 407, 99.5 } },
      },
      PointLight1 = LightPoint {
         CtrlWZoom = false,
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input {
               SourceOp = "PointLight1XOffset",
               Source = "Value",
            },
            ["Transform3DOp.Translate.Y"] = Input { Value = 1.08294089226232, },
         },
         ViewInfo = OperatorInfo { Pos = { 212, 191.5 } },
      },
      PointLight1XOffset = BezierSpline {
         SplineColor = { Red = 250, Green = 59, Blue = 49 },
         NameSet = true,
         KeyFrames = {
            [0] = { -3.43975192932227, RH = { 33.3333333333333, -0.962959983806562 }, Flags = { Linear = true } },
            [100] = { 3.99062390722485, LH = { 66.6666666666667, 1.51383196170915 }, Flags = { Linear = true } }
         }
      }
   }
}
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Dara O'Neill

  • Posts: 41
  • Joined: Fri Jun 23, 2017 10:31 pm
  • Location: Ireland

Re: Newbie: Point light not casting light on Shape3D

PostFri Jul 14, 2017 11:29 pm

Oh SWEET, posting the screen grabs wasn't ideal. Thanks for the tip! Nodes below...

Code: Select all
{
   Tools = ordered() {
      Merge3D1 = Merge3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.937881476542904, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.745664470193785, },
            ["Transform3DOp.Translate.Z"] = Input { Value = -0.700590631762487, },
            SceneInput1 = Input {
               SourceOp = "Shape3D1",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "PointLight1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1244, 320 } },
      },
      Merge1 = Merge {
         Inputs = {
            PerformDepthMerge = Input { Value = 0, },
         },
         ViewInfo = OperatorInfo { Pos = { 1038, 177 } },
      },
      Shape3D1 = Shape3D {
         Inputs = {
            ["Transform3DOp.Rotate.X"] = Input { Value = -132.34287960493, },
            ["Transform3DOp.Rotate.Y"] = Input { Value = -465.925405316936, },
            ["Transform3DOp.Rotate.Z"] = Input { Value = 581.946178361074, },
            Shape = Input { Value = FuID { "SurfaceTorusInputs" }, },
            MaterialInput = Input {
               SourceOp = "MaterialMerge1",
               Source = "MaterialOutput",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
            ["SurfaceCubeInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            ["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 3, },
            ["SurfaceCylinderInputs.ObjectID.ObjectID"] = Input { Value = 4, },
            ["SurfaceConeInputs.ObjectID.ObjectID"] = Input { Value = 5, },
            ["SurfaceTorusInputs.ObjectID.ObjectID"] = Input { Value = 6, }
         },
         ViewInfo = OperatorInfo { Pos = { 949, 335 } },
      },
      PointLight1 = LightPoint {
         CustomData = {
            Settings = {
               [1] = {
                  Tools = ordered() {
                     PointLight1 = LightPoint {
                        CtrlWZoom = false,
                        CustomData = {
                        },
                        Inputs = {
                           ["Transform3DOp.Translate.X"] = Input { Value = 0.0832761894830257, },
                           ["Transform3DOp.Translate.Y"] = Input { Value = -0.564499668670321, },
                           ["Transform3DOp.Translate.Z"] = Input { Value = -0.127730474020587, },
                        },
                        ViewInfo = OperatorInfo { Pos = { 1555, 185 } },
                        Name = "PointLight1"
                     }
                  }
               },
               [2] = {
                  Tools = ordered() {
                     PointLight1 = LightPoint {
                        CtrlWZoom = false,
                        CustomData = {
                        },
                        Inputs = {
                           ["Transform3DOp.Translate.X"] = Input { Value = 0.0832761894830257, },
                           ["Transform3DOp.Translate.Y"] = Input { Value = -0.564499668670321, },
                           ["Transform3DOp.Translate.Z"] = Input { Value = -0.127730474020587, },
                        },
                        ViewInfo = OperatorInfo { Pos = { 1555, 185 } },
                     }
                  }
               },
               [3] = {
                  Tools = ordered() {
                     PointLight1 = LightPoint {
                        CtrlWZoom = false,
                        CustomData = {
                        },
                        Inputs = {
                           ["Transform3DOp.Translate.X"] = Input { Value = 0.0832761894830257, },
                           ["Transform3DOp.Translate.Y"] = Input { Value = -0.564499668670321, },
                           ["Transform3DOp.Translate.Z"] = Input { Value = -0.127730474020587, },
                        },
                        ViewInfo = OperatorInfo { Pos = { 1555, 185 } },
                     }
                  }
               },
               [4] = {
                  Tools = ordered() {
                     PointLight1 = LightPoint {
                        CtrlWZoom = false,
                        CustomData = {
                        },
                        Inputs = {
                           ["Transform3DOp.Translate.X"] = Input { Value = 0.0832761894830257, },
                           ["Transform3DOp.Translate.Y"] = Input { Value = -0.564499668670321, },
                           ["Transform3DOp.Translate.Z"] = Input { Value = -0.127730474020587, },
                        },
                        ViewInfo = OperatorInfo { Pos = { 1555, 185 } },
                     }
                  }
               },
            }
         },
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -2.67807621353948, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.24449586391973, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.301635444145442, },
         },
         ViewInfo = OperatorInfo { Pos = { 1252, 130 } },
      },
      MaterialMerge1 = MtlMerge3D {
         Inputs = {
            BackgroundMaterial = Input {
               SourceOp = "Loader2",
               Source = "Output",
            },
            MaterialID = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { 854, 243 } },
      },
      Loader2 = Loader {
         Clips = {
            Clip {
               ID = "Clip1",
               Filename = "D:\\Pictures\\stock-vector-donut-glazed-with-caramel-sprinkles-tile-pattern-texture-background-vector-illustration-283021397.jpg",
               FormatID = "JpegFormat",
               StartFrame = 283021397,
               LengthSetManually = true,
               TrimIn = 0,
               TrimOut = 0,
               ExtendFirst = 0,
               ExtendLast = 0,
               Loop = 0,
               AspectMode = 0,
               Depth = 0,
               TimeCode = 0,
               GlobalStart = 0,
               GlobalEnd = 0
            }
         },
         CtrlWZoom = false,
         Inputs = {
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 999, 38 } },
      }
   }
}
Offline
User avatar

Chad Capeland

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

Re: Newbie: Point light not casting light on Shape3D

PostSat Jul 15, 2017 12:31 am

You don't have a lighting model. You need something like Blinn or Phong or Lambert to give the mesh some interaction with the light.
Chad Capeland
Indicated, LLC
www.floweffects.com
Offline
User avatar

Dara O'Neill

  • Posts: 41
  • Joined: Fri Jun 23, 2017 10:31 pm
  • Location: Ireland

Re: Newbie: Point light not casting light on Shape3D

PostSat Jul 15, 2017 10:18 am

OK thanks Chad, I thought there might be something wrong with my setup but obviously just need to keep learning and practicing. Thanks for all the help here guys.
Offline
User avatar

Chad Capeland

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

Re: Newbie: Point light not casting light on Shape3D

PostSat Jul 15, 2017 1:15 pm

Fusion defaults to making things with no assigned lighting model "100% lit", meaning it returns the value of the input texture, as opposed to how many other applications will multiply the texture by the lighting received, which would be zero. This makes sense when you consider that in most use cases, you don't want lighting, you just want the footage or graphics to be the colors they are and you are just using the 3D to facilitate camera moves or masking.
Chad Capeland
Indicated, LLC
www.floweffects.com

Return to Fusion

Who is online

Users browsing this forum: Tim Hitchen and 20 guests