Jump to: Board index » General » Fusion

Small question about shadows

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

Alexander Lezhnin

  • Posts: 24
  • Joined: Mon Dec 07, 2015 6:28 am

Small question about shadows

PostMon Dec 07, 2015 6:39 am

Hello! Can anyone help me please? If i have a BG with painted alpha mask (arrow, for example), Image, when i put it on imagePlane and add ligth into scene, i had square shadow of all plane. Is it possible to have a shadow of arrow? I mean - consider alpha on BG element? Thanks.
Offline
User avatar

Chad Capeland

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

Re: Small question about shadows

PostTue Dec 08, 2015 1:49 am

If you use the SW renderer, it should do that by default.
Chad Capeland
Indicated, LLC
www.floweffects.com
Offline

Alexander Lezhnin

  • Posts: 24
  • Joined: Mon Dec 07, 2015 6:28 am

Re: Small question about shadows

PostTue Dec 08, 2015 5:03 am

I use SW, but it didn't . It render rectangle shadow of all plane, and didn't see alpsha on texture
Offline

Alexander Lezhnin

  • Posts: 24
  • Joined: Mon Dec 07, 2015 6:28 am

Re: Small question about shadows

PostTue Dec 08, 2015 6:53 am

Yes, I use SW render, but it give me rectangle shadow of all plane. It doesn't use alpha on texture. OGL render does same result.
Offline

Alexander Lezhnin

  • Posts: 24
  • Joined: Mon Dec 07, 2015 6:28 am

Re: Small question about shadows

PostWed Dec 09, 2015 10:44 am

Image
Offline

Stefan Kirste

  • Posts: 142
  • Joined: Wed Jul 30, 2014 8:45 am

Re: Small question about shadows

PostThu Dec 10, 2015 9:49 am

in Fu7 it works with SW Render. u are using Fu8?

Code: Select all
{
   Tools = ordered() {
      Blinn1 = MtlBlinn {
         Inputs = {
            ["Diffuse.Color.Material"] = Input {
               SourceOp = "Background1",
               Source = "Output",
            },
            MaterialID = Input { Value = 3, },
         },
         ViewInfo = OperatorInfo { Pos = { 495, 49.5, }, },
      },
      Background1 = Background {
         Inputs = {
            GlobalOut = Input { Value = 200, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            Depth = Input { Value = 2, },
            ["Gamut.GammaSpace"] = Input { Value = FuID { "sRGB", }, },
            TopLeftRed = Input { Value = 0.701169501531402, },
            TopLeftGreen = Input { Value = 0.00775102739766061, },
            TopLeftBlue = Input { Value = 0.00775102739766061, },
            Gradient = Input {
               Value = Gradient {
                  Colors = {
                     [0] = { 0, 0, 0, 1, },
                     [1] = { 1, 1, 1, 1, },
                  },
               },
            },
            EffectMask = Input {
               SourceOp = "Polygon1",
               Source = "Mask",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 385, 49.5, }, },
      },
      Polygon1 = PolylineMask {
         DrawMode = "InsertAndModify",
         DrawMode2 = "InsertAndModify",
         Inputs = {
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1, }, },
            ClippingMode = Input { Value = FuID { "None", }, },
            Polyline = Input {
               SourceOp = "Polygon1Polyline",
               Source = "Value",
            },
            Polyline2 = Input {
               Value = Polyline {
               },
               Disabled = true,
            },
         },
         ViewInfo = OperatorInfo { Pos = { 275, 49.5, }, },
      },
      Polygon1Polyline = BezierSpline {
         SplineColor = { Red = 173, Green = 255, Blue = 47, },
         NameSet = true,
         KeyFrames = {
            [0] = { 0, Flags = { Linear = true, LockedY = true, }, Value = Polyline {
                  Closed = true,
                  Points = {
                     { Linear = true, X = -0.0802816897630692, Y = -0.237499997019768, LX = 0.02394366171211, LY = 0.0408333316445351, RX = -0.0211267606893056, RY = 0.0383333323399226, },
                     { Linear = true, X = -0.143661975860596, Y = -0.122500002384186, LX = 0.0211267606893056, LY = -0.0383333323399226, RX = 0.0154929590896821, RY = 0.0050000007947286, },
                     { Linear = true, X = -0.0971831008791924, Y = -0.107500001788139, LX = -0.0154929590896821, LY = -0.0050000007947286, RX = 0.00328638573907351, RY = 0.109166667262713, },
                     { Linear = true, X = -0.0873239412903786, Y = 0.219999998807907, LX = -0.00328638573907351, LY = -0.109166667262713, RX = 0.0136150226836473, RY = 0.00500000039736429, },
                     { Linear = true, X = -0.0464788749814034, Y = 0.234999999403954, LX = -0.0136150226836473, LY = -0.00500000039736429, RX = -0.00469483510009559, RY = -0.114166666467985, },
                     { Linear = true, X = -0.0605633817613125, Y = -0.107500001788139, LX = 0.00469483510009559, LY = 0.114166666467985, RX = 0.0173708925119868, RY = -0.00249999940395355, },
                     { Linear = true, X = -0.00845070462673903, Y = -0.115000002086163, LX = -0.0173708925119868, LY = 0.00249999940395355, RX = -0.02394366171211, RY = -0.0408333316445351, },
                  },
               }, },
         },
      },
      ImagePlane3D1 = ImagePlane3D {
         CtrlWZoom = false,
         Inputs = {
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.061352, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 0.0517241, },
            ["Transform3DOp.Rotate.X"] = Input { Value = -90, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            MaterialInput = Input {
               SourceOp = "Blinn1",
               Source = "MaterialOutput",
            },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 605, 82.5, }, },
      },
      Camera3D1 = Camera3D {
         Inputs = {
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.241636541265464, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 1.0254488871495, },
            ["Transform3DOp.UseTarget"] = Input { Value = 1, },
            AoV = Input { Value = 24.3265863475745, },
            ["Stereo.Mode"] = Input { Value = FuID { "OffAxis", }, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 770, -16.5, }, },
      },
      Merge3D2 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "Shape3D1",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "ImagePlane3D1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 715, 115.5, }, },
      },
      Shape3D1 = Shape3D {
         Inputs = {
            ["Transform3DOp.Rotate.X"] = Input { Value = -90, },
            ["MtlStdInputs.UseTwoSidedLighting"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 495, 115.5, }, },
      },
      Merge3D2_1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "Merge3D2",
               Source = "Output",
            },
            SceneInput2 = Input {
               SourceOp = "Camera3D1",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "SpotLight1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 825, 115.5, }, },
      },
      SpotLight1 = LightSpot {
         Inputs = {
            ["Transform3DOp.Translate.Y"] = Input { Value = 0.355922926146001, },
            ["Transform3DOp.Translate.Z"] = Input { Value = 1.3638594, },
            ["Transform3DOp.UseTarget"] = Input { Value = 1, },
            ConeAngle = Input { Value = 26.1885246, },
            PenumbraAngle = Input { Value = 3.5245902, },
            Dropoff = Input { Value = 2.3278689, },
            ["ShadowLightInputs3D.Nest"] = Input { Value = 1, },
            ["ShadowLightInputs3D.ShadowMapSize"] = Input { Value = 1400, },
            ["ShadowLightInputs3D.ShadowMapProxy"] = Input { Value = 0.3, },
            ["ShadowLightInputs3D.SoftnessType"] = Input { Value = FuID { "Constant", }, },
            ["ShadowLightInputs3D.ConstantSoftness"] = Input { Value = 0.005, },
         },
         ViewInfo = OperatorInfo { Pos = { 770, 181.5, }, },
      },
      Renderer3D1 = Renderer3D {
         Inputs = {
            ["RendererOpenGL.LightingEnabled"] = Input { Value = 1, },
            ["RendererOpenGL.ShadowsEnabled"] = Input { Value = 1, },
            GlobalOut = Input { Value = 200, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.GammaSpace"] = Input { Value = FuID { "sRGB", }, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
            SceneInput = Input {
               SourceOp = "Merge3D2_1",
               Source = "Output",
            },
            ["RendererSoftware.LightingEnabled"] = Input { Value = 1, },
            ["RendererSoftware.ShadowsEnabled"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 115.5, }, },
      },
   },
}
Offline

Alexander Lezhnin

  • Posts: 24
  • Joined: Mon Dec 07, 2015 6:28 am

Re: Small question about shadows

PostThu Dec 10, 2015 7:11 pm

Thanks a lot! Now I understand where problem was. A small chekBox in spotLight settings "Force All Materials Non-Transmissive" was my problem ))) Thanks once again.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 15 guests