Jump to: Board index » General » Fusion

360 VR Spherical DOF blur, not working as desired

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

Piotr Werewka

  • Posts: 8
  • Joined: Tue Apr 05, 2016 1:53 pm

360 VR Spherical DOF blur, not working as desired

PostWed Jan 03, 2018 2:26 pm

am i doing something wrong trying to achive DOF with 360 renders?
I found it problematic with many scenarios, that 360 output image has visible edge of projection on cube.
Any workaround? any fix to get rid of those edge lines?
pls help


Code: Select all
{
   Tools = ordered() {
      SphericalCamera1 = SphericalCamera3D {
         Inputs = {
            PlaneOfFocus = Input { Value = 0.5, },
            ["Stereo.Mode"] = Input { Value = FuID { "Mono" }, },
            ControlVis = Input { Value = 1, },
            PlaneOfFocusVis = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 148.5 } },
      },
      Renderer3D1 = Renderer3D {
         CtrlWZoom = false,
         CustomData = {
            ToolVersion = 2,
         },
         Inputs = {
            ["RendererSoftware.LightingEnabled"] = Input { Value = 1, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            SceneInput = Input {
               SourceOp = "Merge3D1",
               Source = "Output",
            },
            CameraSelector = Input { Value = FuID { "SphericalCamera1" }, },
            RendererType = Input { Value = FuID { "RendererOpenGL" }, },
            ["RendererOpenGL.Channels.Nest"] = Input { Value = 1, },
            ["RendererOpenGL.AccumulationEffects"] = Input { Value = 1, },
            ["RendererOpenGL.EnableAccumEffects"] = Input { Value = 1, },
            ["RendererOpenGL.AccumQuality"] = Input { Value = 64, },
            ["RendererOpenGL.DoFBlur"] = Input { Value = 0.278, },
            ["RendererOpenGL.LightingEnabled"] = Input { Value = 1, },
         },
         ViewInfo = OperatorInfo { Pos = { 1265, 82.5 } },
      },
      Merge3D1 = Merge3D {
         Inputs = {
            SceneInput1 = Input {
               SourceOp = "Replicate3D1",
               Source = "Data3D",
            },
            SceneInput2 = Input {
               SourceOp = "SphericalCamera1",
               Source = "Output",
            },
            SceneInput3 = Input {
               SourceOp = "PointLight1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, 82.5 } },
      },
      pRender1 = pRender {
         Inputs = {
            _MotionBlurWarning = Input { Disabled = true, },
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            OutputMode = Input { Disabled = true, },
            IntegrationMethod = Input { Value = FuID { "RK4" }, },
            ["MaterialID.MaterialID"] = Input { Value = 1, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            Input = Input {
               SourceOp = "pEmitter1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 550, 82.5 } },
      },
      Replicate3D1 = Replicate3D {
         Inputs = {
            Destination = Input {
               SourceOp = "pRender1",
               Source = "Output",
            },
            Input1 = Input {
               SourceOp = "Shape3D2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 715, 82.5 } },
      },
      pEmitter1 = pEmitter {
         ID = 1,
         Inputs = {
            Number = Input {
               SourceOp = "pEmitter1Number",
               Source = "Value",
            },
            RotationControls = Input { Value = 1, },
            AlwaysFaceCamera = Input { Value = 0, },
            Region = Input { Value = FuID { "MeshRegion" }, },
            ["ParticleStyle.SizeControls"] = Input { Value = 1, },
            ["ParticleStyle.Size"] = Input { Value = 0.5, },
            ["ParticleStyle.SizeOverLife"] = Input {
               SourceOp = "pEmitter1SizeoverLife",
               Source = "Value",
            },
            ["ParticleStyle.BlurOverLife"] = Input {
               SourceOp = "pEmitter1BluroverLife2D",
               Source = "Value",
            },
            ["MeshRegion.MeshInput"] = Input {
               SourceOp = "Shape3D1",
               Source = "Output",
            }
         },
         ViewInfo = OperatorInfo { Pos = { 275, 82.5 } },
      },
      pEmitter1Number = BezierSpline {
         SplineColor = { Red = 233, Green = 206, Blue = 78 },
         NameSet = true,
         KeyFrames = {
            [0] = { 200, RH = { 0.333333333333333, 133.333333333333 }, Flags = { Linear = true } },
            [1] = { 0, LH = { 0.666666666666667, 66.6666666666667 }, Flags = { Linear = true } }
         }
      },
      pEmitter1SizeoverLife = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.333333333333333, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.666666666666667, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
      },
      pEmitter1BluroverLife2D = LUTBezier {
         KeyColorSplines = {
            [0] = {
               [0] = { 0.5, RH = { 0.333333333333333, 0.5 }, Flags = { Linear = true } },
               [1] = { 0.5, LH = { 0.666666666666667, 0.5 }, Flags = { Linear = true } }
            }
         },
         SplineColor = { Red = 192, Green = 128, Blue = 64 },
      },
      Shape3D1 = Shape3D {
         Inputs = {
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
            Shape = Input { Value = FuID { "SurfaceSphereInputs" }, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
            ["SurfaceSphereInputs.Radius"] = Input { Value = 1.58, },
            ["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 3, }
         },
         ViewInfo = OperatorInfo { Pos = { 275, -16.5 } },
      },
      pCustom1 = pCustom {
         ID = 27,
         Inputs = {
            RedExpression = Input { Value = "if(pz<0,pz*(-1),pz)*1\n", },
            GreenExpression = Input { Value = "0", },
            BlueExpression = Input { Value = "0", },
         },
         ViewInfo = OperatorInfo { Pos = { 440, 16.5 } },
      },
      Shape3D2 = Shape3D {
         Inputs = {
            ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 4, },
            Shape = Input { Value = FuID { "SurfaceSphereInputs" }, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 3, },
            ["SurfaceSphereInputs.Radius"] = Input { Value = 0.092, },
            ["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 5, }
         },
         ViewInfo = OperatorInfo { Pos = { 715, -82.5 } },
      },
      PointLight1 = LightPoint {
         Inputs = {
            DecayType = Input { Value = 2, },
            DecayRate = Input { Value = 4, },
         },
         ViewInfo = OperatorInfo { Pos = { 1045, -115.5 } },
      }
   }
}
Offline

Piotr Werewka

  • Posts: 8
  • Joined: Tue Apr 05, 2016 1:53 pm

Re: 360 VR Spherical DOF blur, not working as desired

PostFri Jan 05, 2018 4:12 pm

anyone has some smart idea how to get rid of those edges?
Attachments
sphericalCamera_Blur_err.jpg
sphericalCamera_Blur_err.jpg (221.55 KiB) Viewed 604 times
Offline
User avatar

Chad Capeland

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

Re: 360 VR Spherical DOF blur, not working as desired

PostFri Jan 05, 2018 9:40 pm

You can't. The blur is created by planar shearing of the camera frustum. Since each of the 6 cameras have a different view direction, the camera frustums only align when they aren't warped.
Chad Capeland
Indicated, LLC
www.floweffects.com

Return to Fusion

Who is online

Users browsing this forum: No registered users and 44 guests