Jump to: Board index » General » Fusion

Zdepth for basic distance fog

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

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Zdepth for basic distance fog

PostWed Jul 01, 2015 3:13 pm

Sorry for the noob question, but I searched and tried how to make a simple distance fog over a beauty pass in fusion using a zdepth pass, without success.
In photoshop it is very straightforward, you just put the zdepth pass on top of the beauty pass in screen mode and voila.
Thank you for helping.
Offline
User avatar

Chad Capeland

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

Re: Zdepth for basic distance fog

PostWed Jul 01, 2015 3:23 pm

There's a Fog tool under Deep Pixel.

Code: Select all
{Tools = ordered() {Fog1 = Fog {},},}
Chad Capeland
Indicated, LLC
www.floweffects.com
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Zdepth for basic distance fog

PostWed Jul 01, 2015 3:31 pm

Thank you : )
I did see this tool but I couldn't make it work, I don't remember why.
May I ask you how do I use the line of code you posted (thank you for it btw :)
Offline

Ryan Bloomer

  • Posts: 765
  • Joined: Tue Jul 09, 2013 6:58 pm

Re: Zdepth for basic distance fog

PostWed Jul 01, 2015 3:47 pm

Hey Steve,

Just copy the line of code in the post and paste it into Fusion. I set up a simple scene for you if you're new to setting these up.

Code: Select all
{
   Tools = ordered() {
      Note2 = Note {
         Inputs = {
            Comments = Input { Value = "DepthPass Render\r\n\r\nDepending on values check the \"Z Near Plane\" and Z Far Plane in the \"Fog1\" tool to start influencing fog into the comp\r\n", },
         },
         ViewInfo = StickyNoteInfo {
            Pos = { 894.264, 32.7252, },
            Flags = {
               Expanded = true,
            },
            Size = { 196, 68.966, },
         },
      },
      Loader2 = Loader {
         Clips = {
            Clip {
               ID = "Clip1",
               Filename = "V:\\_3D render\\Acuity_EP8\\MaruContsturction_RB_1\\MaruConstruction_BackgroundBeauty_v3_IMGseq\\MaruConstruction_v1_Depth_v1_0000.tif",
               FormatID = "TiffFormat",
               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 = { 987.39, 80.5707, }, },
      },
      Fog1 = Fog {
         Inputs = {
            ZNearPlane = Input { Value = 85.7142857142857, },
            ZFarPlane = Input { Value = -14.4927536231884, },
            ZScale = Input { Value = 8.35, },
            FogOpacity = Input { Value = 0.2809524, },
            Input = Input {
               SourceOp = "Loader1",
               Source = "Output",
            },
            Fog = Input {
               SourceOp = "Loader2",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 1016.15, 221.817, }, },
      },
      Note1 = Note {
         Inputs = {
            Comments = Input { Value = "Beauty Pass - Replace this loader with your footage\r\n\r\n", },
         },
         ViewInfo = StickyNoteInfo {
            Pos = { 609.38, 87.7772, },
            Flags = {
               Expanded = true,
            },
            Size = { 196, 113.116, },
         },
      },
      Loader1 = Loader {
         Clips = {
            Clip {
               ID = "Clip1",
               Filename = "V:\\_3D render\\Acuity_EP8\\MaruContsturction_RB_1\\MaruConstruction_BackgroundBeauty_v3_IMGseq\\MaruConstruction_v1_BackgroundBeauty_v4_0000_0000.tif",
               FormatID = "TiffFormat",
               LengthSetManually = true,
               TrimIn = 0,
               TrimOut = 0,
               ExtendFirst = 0,
               ExtendLast = 0,
               Loop = 1,
               AspectMode = 0,
               Depth = 0,
               TimeCode = 0,
               GlobalStart = 0,
               GlobalEnd = 0,
            },
         },
         Inputs = {
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
         },
         ViewInfo = OperatorInfo { Pos = { 647.24, 123.107, }, },
      },
   },
}


Good luck.
Last edited by Ryan Bloomer on Wed Jul 01, 2015 8:00 pm, edited 1 time in total.
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Zdepth for basic distance fog

PostWed Jul 01, 2015 4:01 pm

Thank you very much ! : ))
Offline
User avatar

michael vorberg

  • Posts: 943
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: Zdepth for basic distance fog

PostWed Jul 01, 2015 8:31 pm

other options:

use a merge to put your Zdepth pass over your beauty (use the "apply mode" screen or "normal" with the alpha gain set to 0)

or you could use the zPass as mask in a grading node (colorcorrect or brightness/contrast)
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Zdepth for basic distance fog

PostWed Jul 01, 2015 8:44 pm

Well, I tried to do a merge as you described with screen mode (like I would have done in ps), but it didn't work. Maybe it was the gain option that I wasn't aware of.
Thank you for your reply.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 69 guests