Jump to: Board index » General » Fusion

Lighting on Ribbon3D not working as expected

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

Lighting on Ribbon3D not working as expected

PostFri Feb 16, 2024 9:39 am

Hi,

I am following an old tutorial on YouTube (see:
)
In part 5 of this series they are making a moving background with a Ribbon3D, and shining a blinn3d/background object on it.
In Fusion Studio 16 it works, and I made this clip of it: https://drive.google.com/file/d/1HbdBdNY4V-EreNIVO6bnorqRqJmLcJKl/view?usp=sharing

In Davinci Resolve I can't make it work. I copied all the nodes over, so they have the same settings everywhere (except for the MediaOut node). In DVR Fusion, the entire Ribbon gets lighted up, and the blinn doesn't seem to cast its material on the ribbon as Fusion Studio does...
Here's the render of the Davinci Resolve: https://drive.google.com/file/d/1HNOSgShxfQLq6uu20ocxwuQzJFa4iR0r/view?usp=sharing

and here's the code I used:

Code: Select all
{
   Tools = ordered() {
      Bender3D1 = Bender3D {
         Inputs = {
            SceneInput = Input {
               SourceOp = "Ribbon3D1",
               Source = "Output",
            },
            Bender = Input { Value = FuID { "Twist" }, },
            Amount = Input { Value = 0.98, },
            Axis = Input { Value = 0, },
            Center = Input {
               Value = 0.54633198034608,
               Expression = "(time+1)/500",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 88.6663, 50.3939 } },
      },
      Ribbon3D1 = Ribbon3D {
         Inputs = {
            NumberOfLines = Input { Value = 20, },
            LineThickness = Input { Value = 1.98, },
            SubdivisionLevel = Input { Value = 100, },
            RibbonWidth = Input { Value = 0.45, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { -21.3337, 50.3939 } },
      },
      Transform3D1 = Transform3D {
         Inputs = {
            SceneInput = Input {
               SourceOp = "Bender3D1",
               Source = "Output",
            },
            ["Transform3DOp.Translate.Y"] = Input { Value = -0.267, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.84, },
            ["Transform3DOp.Scale.X"] = Input { Value = 10, },
         },
         ViewInfo = OperatorInfo { Pos = { 199.333, 50.3939 } },
      },
      Duplicate3D1 = Duplicate3D {
         Inputs = {
            LastCopy = Input { Value = 5, },
            JitterTimeOffset = Input { Value = 150, },
            ["JitterTranslate.X"] = Input { Value = 0.768, },
            ["JitterTranslate.Y"] = Input { Value = 2.58, },
            ["JitterTranslate.Z"] = Input { Value = 1.072, },
            ["JitterRotate.X"] = Input { Value = 121.3, },
            ["JitterRotate.Y"] = Input { Value = 49.6, },
            ["JitterRotate.Z"] = Input { Value = 39.1, },
            SceneInput = Input {
               SourceOp = "Transform3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 308.666, 50.3939 } },
      },
      FastNoise1 = FastNoise {
         Inputs = {
            GlobalOut = Input { Value = 239, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Detail = Input { Value = 1.4, },
            XScale = Input { Value = 4, },
         },
         ViewInfo = OperatorInfo { Pos = { 412.666, -22.9392 } },
      },
      Displace3D1 = Displace3D {
         Inputs = {
            SceneInput = Input {
               SourceOp = "Duplicate3D1",
               Source = "Data3D",
            },
            Scale = Input { Value = 1, },
            Input = Input {
               SourceOp = "FastNoise1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 434, 50.9999 } },
      },
      Blinn1 = MtlBlinn {
         Inputs = {
            ["Diffuse.Color.Red"] = Input { Value = 0.677, },
            ["Diffuse.Color.Green"] = Input { Value = 0.677, },
            ["Diffuse.Color.Blue"] = Input { Value = 0.677, },
            ["Diffuse.Color.Material"] = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            ["Specular.Nest"] = Input { Value = 1, },
            ["Specular.Intensity"] = Input { Value = 0, },
            MaterialID = Input { Value = 4, },
         },
         ViewInfo = OperatorInfo { Pos = { 632, -9.60587 } },
      },
      Background1 = Background {
         Inputs = {
            GlobalOut = Input { Value = 239, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Type = Input { Value = FuID { "Gradient" }, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0.248756218905473] = { 0, 0, 0, 1 },
                     [0.303482587064677] = { 1, 1, 1, 1 },
                     [0.36318407960199] = { 0.15, 0.15, 0.15, 1 },
                     [0.691542288557214] = { 0.173, 0.173, 0.173, 1 },
                     [0.741293532338308] = { 0.874, 0.858268, 0.858268, 1 },
                     [0.791044776119403] = { 0.165, 0.165, 0.165, 1 }
                  }
               },
            },
            Offset = Input {
               Value = 1.2,
               Expression = "(time+1)/200",
            },
            Repeat = Input { Value = FuID { "Ping-Pong" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 636, -58.424 } },
      },
      ReplaceMaterial3D1 = ReplaceMaterial3D {
         Inputs = {
            SceneInput = Input {
               SourceOp = "Displace3D1",
               Source = "Output",
            },
            MaterialInput = Input {
               SourceOp = "Blinn1",
               Source = "MaterialOutput",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { 659.333, 52.1519 } },
      },
      Merge3D1_1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "Displace3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 825.351, 130.462 } },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "ReplaceMaterial3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 827.333, 50.9999 } },
      },
      Camera3D1 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.Z"] = Input { Value = 29.8974237277053, },
            AoV = Input { Value = 19.2642683071402, },
            ["Stereo.Mode"] = Input { Value = FuID { "Mono" }, },
            FilmGate = Input { Value = FuID { "BMD_URSA_4K_16x9" }, },
            ApertureW = Input { Value = 0.831496062992126, },
            ApertureH = Input { Value = 0.467716535433071, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 941.215, 89.1449 } },
      },
      Renderer3D1 = Renderer3D {
         CtrlWZoom = false,
         CustomData = {
            ToolVersion = 2,
         },
         Inputs = {
            ["RendererOpenGL.AntiAliasing.Presets.Aux.Supersampling.HighQuality.RateY"] = Input { Value = 3, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.RateY"] = Input { Value = 3, },
            GlobalOut = Input { Value = 239, },
            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" }, },
            RendererType = Input { Value = FuID { "RendererOpenGL" }, },
            ["RendererOpenGL.AntiAliasing.Channels.RGBA.HighQuality.Enable"] = Input { Value = 1, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.Rate"] = 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.Rate"] = 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, },
         },
         ViewInfo = OperatorInfo { Pos = { 1011.6, 34.7234 } },
         SubInputsData = {
            RendererOpenGL = {
               Version = 1
            }
         }
      },
      Renderer3D1_1 = Renderer3D {
         CustomData = {
            ToolVersion = 2
         },
         Inputs = {
            ["RendererOpenGL.AntiAliasing.Presets.Aux.Supersampling.HighQuality.RateY"] = Input { Value = 3, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.RateY"] = Input { Value = 3, },
            GlobalOut = Input { Value = 239, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            SceneInput = Input {
               SourceOp = "Merge3D1_1",
               Source = "Output",
            },
            RendererType = Input { Value = FuID { "RendererOpenGL" }, },
            ["RendererOpenGL.AntiAliasing.Channels.RGBA.HighQuality.Enable"] = Input { Value = 1, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.Rate"] = 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.Rate"] = 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, },
         },
         ViewInfo = OperatorInfo { Pos = { 1018.36, 130.081 } },
         SubInputsData = {
            RendererOpenGL = {
               Version = 1
            }
         }
      },
      Saver1 = Saver {
         Inputs = {
            ["QuickTimeMovies.Compression"] = Input { Value = FuID { "H.264_avc1" }, },
            ProcessWhenBlendIs00 = Input { Value = 0, },
            Clip = Input {
               Value = Clip {
                  Filename = "E:\\Downloads\\moving_background_DVR.mp4",
                  FormatID = "FusePicFormat",
                  Length = 0,
                  Saving = true,
                  TrimIn = 0,
                  ExtendFirst = 0,
                  ExtendLast = 0,
                  Loop = 1,
                  AspectMode = 0,
                  Depth = 0,
                  GlobalStart = -2000000000,
                  GlobalEnd = 0
               },
            },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Input = Input {
               SourceOp = "Renderer3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1171.14, 34.7234 } },
      },
      MediaOut1 = MediaOut {
         Inputs = {
            Index = Input { Value = "0", },
            Input = Input {
               SourceOp = "Renderer3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1174, 74.9546 } },
      }
   }
}



Is there anyone around with more experience and know-how then me who want to have a look and try to explain why this is not working for me ?

Thanks in advance :)
Paul
Offline
User avatar

Bryan Ray

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

Re: Lighting on Ribbon3D not working as expected

PostSat Feb 17, 2024 5:24 pm

Turn on these switches in the Renderer3D (that image was larger than I expected, thanks to my UHD screen. You may need to scroll down in it to see my red arrow):

renderer3d.JPG
renderer3d.JPG (52.63 KiB) Viewed 529 times


I'm not sure why they'd have been disabled moving from Fusion to Resolve. My first suspicion was that the input names had changed, but it looks like those switches are the same in Fusion 7 all the way through Resolve 18.

For good feedback the viewport, be sure to also turn on lighting and shadows there:

3d-viewport_lights.jpg
3d-viewport_lights.jpg (186.6 KiB) Viewed 529 times
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

MeesterP

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

Re: Lighting on Ribbon3D not working as expected

PostSun Feb 18, 2024 8:28 pm

When I turn on the Lighting and Shadow in the Renderer3D's the output turns black :x
Setting the lights and shadows on in the Camera3D (in the toolbar of the viewer) doesn't seem to have any effect. I even suspect I can not switch them on... it's very hard to see if it is selected yes/no (a design flaw in my opinion)

so, this example is still not working in Davinci Resolve and working just fine in Studio 16 - weird ...
Offline

birdseye

  • Posts: 361
  • Joined: Fri Jun 12, 2020 2:36 pm
  • Real Name: Iain Fisher

Re: Lighting on Ribbon3D not working as expected

PostMon Feb 19, 2024 3:31 pm

it's very hard to see if it is selected yes/no (a design flaw in my opinion)

So I'm not the only one after all.
Offline

Sander de Regt

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

Re: Lighting on Ribbon3D not working as expected

PostMon Feb 19, 2024 3:48 pm

Maybe I'm overlooking something here, but doesn't this work for you?

Code: Select all
{
    Tools = ordered() {
           PointLight1 = LightPoint {
                    Inputs = {
                            ["Transform3DOp.Translate.X"] = Input { Value = -0.302509127536199, },
                          ["Transform3DOp.Translate.Y"] = Input { Value = 0.098, },
                               ["Transform3DOp.Translate.Z"] = Input { Value = 0.679781687983367, },
                           ["ShadowLightInputs3D.ShadowsEnabled"] = Input { Value = 1, },
                          ["ShadowLightInputs3D.ShadowMapSize"] = Input { Value = 2048, },
                        },
                    ViewInfo = OperatorInfo { Pos = { 440, -16.5 } },
         },
            Displace3D1 = Displace3D {
                    Inputs = {
                            SceneInput = Input {
                                  SourceOp = "Ribbon3D1",
                                     Source = "Output",
                          },
                            Scale = Input { Value = 1, },
                         Input = Input {
                                       SourceOp = "FastNoise1",
                                    Source = "Output",
                          },
                    },
                    ViewInfo = OperatorInfo { Pos = { 440, 49.5 } },
          },
            Merge3D1 = Merge3D {
                  Inputs = {
                            SceneInput1 = Input {
                                 SourceOp = "Displace3D1",
                                   Source = "Output",
                          },
                            SceneInput2 = Input {
                                 SourceOp = "PointLight1",
                                   Source = "Output",
                          },
                            SceneInput3 = Input {
                                 SourceOp = "Camera3D1",
                                     Source = "Output",
                          },
                    },
                    ViewInfo = OperatorInfo { Pos = { 660, 49.5 } },
          },
            Ribbon3D1 = Ribbon3D {
                        Inputs = {
                            LineThickness = Input { Value = 2.134, },
                         SubdivisionLevel = Input { Value = 200, },
                            ["Start.Nest"] = Input { Value = 1, },
                          ["Start.X"] = Input { Value = -0.985, },
                            ["Start.Y"] = Input { Value = 0.283, },
                             ["Start.Z"] = Input { Value = -0.196, },
                            ["End.Nest"] = Input { Value = 1, },
                            ["Visibility.Nest"] = Input { Value = 1, },
                             ["Lighting.Nest"] = Input { Value = 1, },
                               ["ObjectID.ObjectID"] = Input { Value = 1, },
                           ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
                     },
                    ViewInfo = OperatorInfo { Pos = { 330, 49.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",
                          },
                            RendererType = Input { Value = FuID { "RendererOpenGL" }, },
                                ["RendererOpenGL.AntiAliasing.Channels.RGBA.HighQuality.Enable"] = Input { Value = 1, },
                                ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.Rate"] = 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.Rate"] = 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, },
                       },
                    ViewInfo = OperatorInfo { Pos = { 825, 49.5 } },
                  SubInputsData = {
                             RendererOpenGL = {
                                    Version = 1
                           }
                     }
             },
            FastNoise1 = FastNoise {
                      CtrlWZoom = false,
                    Inputs = {
                            Width = Input { Value = 1920, },
                              Height = Input { Value = 1080, },
                             ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
                          SeetheRate = Input { Value = 0.15, },
                     },
                    ViewInfo = OperatorInfo { Pos = { 385, 82.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.148950765963374, },
                          ["Transform3DOp.Translate.Y"] = Input { Value = 0.56617909298381, },
                            ["Transform3DOp.Translate.Z"] = Input { Value = 1.28734415462379, },
                            ["Transform3DOp.Rotate.X"] = Input { Value = -23.6000022888184, },
                              ["Transform3DOp.Rotate.Y"] = Input { Value = -6.59999847412109, },
                              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, 115.5 } },
         }
     }
}
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Bryan Ray

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

Re: Lighting on Ribbon3D not working as expected

PostTue Feb 20, 2024 3:38 am

Okay, since my blind guess didn't pan out, I guess I'll actually start up Resolve and investigate... :lol:

aaaand, it looks correct in Resolve 18.0.1b3 (also, I confirm that, having no lights in the scene, turning on Lighting makes it go black)

Best guess is a graphics driver problem. Make sure your GPU is correctly detected in the Preferences / Memory and GPU tab. If that's right, try updating or downgrading the driver. Fusion can be sensitive to driver versions, and the symptoms are random.

edit: Also, you're definitely not wrong about those icons. They're terrible, and you're not the first person to say so
Attachments
Capture.JPG
Capture.JPG (368.75 KiB) Viewed 460 times
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

MeesterP

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

Re: Lighting on Ribbon3D not working as expected

PostTue Feb 20, 2024 7:18 am

@Sander

Your example did work on both Fusion Studio 16 and Resolve 18.6.

The problem seems to be with how the Blinn works (or doesn't work rather).
Here an even simpler example to show it:

Code: Select all
{
   Tools = ordered() {
      Background1 = Background {
         Inputs = {
            GlobalOut = Input { Value = 119, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            Type = Input { Value = FuID { "Gradient" }, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0.265682656826568] = { 0, 0, 0, 1 },
                     [0.303482587064677] = { 1, 1, 1, 1 },
                     [0.346863468634686] = { 0.15, 0.15, 0.15, 1 },
                     [0.606965174129353] = { 0.173, 0.173, 0.173, 1 },
                     [0.63681592039801] = { 0.874, 0.858268, 0.858268, 1 },
                     [0.666666666666667] = { 0.165, 0.165, 0.165, 1 }
                  }
               },
            },
            Offset = Input {
               Value = 0.2775,
               Expression = "(time+1)/400",
            },
            Repeat = Input { Value = FuID { "Ping-Pong" }, },
         },
         ViewInfo = OperatorInfo { Pos = { 88.3089, -86.9952 } },
      },
      Blinn1 = MtlBlinn {
         Inputs = {
            ["Diffuse.Color.Material"] = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            ["Specular.Nest"] = Input { Value = 1, },
            ["Specular.Intensity"] = Input { Value = 0, },
            MaterialID = Input { Value = 4, },
         },
         ViewInfo = OperatorInfo { Pos = { 78.6521, -35.8568 } },
      },
      ReplaceMaterial3D1 = ReplaceMaterial3D {
         Inputs = {
            SceneInput = Input {
               SourceOp = "Ribbon3D1",
               Source = "Output",
            },
            MaterialInput = Input {
               SourceOp = "Blinn1",
               Source = "MaterialOutput",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { 111.642, 24.1868 } },
      },
      Ribbon3D1 = Ribbon3D {
         Inputs = {
            NumberOfLines = Input { Value = 20, },
            LineThickness = Input { Value = 6.631, },
            RibbonWidth = Input { Value = 0.866, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { -31.0921, 23.0348 } },
      },
      Camera3D1 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.X"] = Input { Value = -0.955327489062483, },
            ["Transform3DOp.Translate.Y"] = Input { Value = 1.30748778504562, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 7.61138311958801, },
            ["Transform3DOp.Rotate.X"] = Input { Value = 2, },
            ["Transform3DOp.Rotate.Y"] = Input { Value = -1.2, },
            ["Transform3DOp.UseTarget"] = Input { Value = 1, },
            AoV = Input { Value = 19.2642683071402, },
            ["Stereo.Mode"] = Input { Value = FuID { "Mono" }, },
            FilmGate = Input { Value = FuID { "BMD_URSA_4K_16x9" }, },
            ApertureW = Input { Value = 0.831496062992126, },
            ApertureH = Input { Value = 0.467716535433071, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 243.908, -75.9652 } },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "ReplaceMaterial3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 279.642, 23.0348 } },
      },
      Renderer3D1 = Renderer3D {
         CustomData = { ToolVersion = 2, },
         Inputs = {
            ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.RateY"] = Input { Value = 3, },
            ["RendererOpenGL.AntiAliasing.Presets.Aux.Supersampling.HighQuality.RateY"] = Input { Value = 3, },
            GlobalOut = Input { Value = 119, },
            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" }, },
            RendererType = Input { Value = FuID { "RendererOpenGL" }, },
            ["RendererOpenGL.AntiAliasing.Channels.RGBA.HighQuality.Enable"] = Input { Value = 1, },
            ["RendererOpenGL.AntiAliasing.Presets.Color.Supersampling.HighQuality.Rate"] = 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.Rate"] = 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.MaximumTextureDepth"] = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { 408.908, 23.0348 } },
         SubInputsData = {
            RendererOpenGL = {
               Version = 1
            }
         }
      }
   }
}


here the result in Fusion Studio 16, public beta 4
Fusion Studio 16.jpg
Result in Fusion Studio 16
Fusion Studio 16.jpg (139.37 KiB) Viewed 442 times


and here the results as in Davinci Resolve 18.6.5 (up-to-date free version)
Resolve 18_6.jpg
Result in Davinci Resolve 18.6.5
Resolve 18_6.jpg (120.68 KiB) Viewed 442 times

Same code in both versions...

I can't put my finger on it :roll:
Maybe you can ?
Offline

MeesterP

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

Re: Lighting on Ribbon3D not working as expected

PostTue Feb 20, 2024 7:31 am

@Bryan

My GPU is recognized fine, and the nvidia drivers are up-to-date. I'm not going to revert to older drivers for this to see if that solves the issue. I think it's up to the Davinci developers to make sure their programs are following the nvidia specs :lol:
mem_gpu.jpg
memory and gpu
mem_gpu.jpg (39.85 KiB) Viewed 442 times

Return to Fusion

Who is online

Users browsing this forum: pontmarius and 43 guests