Announcement

Collapse
No announcement yet.

How To Composite Fog (which is rendered as VrayAtmosphere)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Composite Fog (which is rendered as VrayAtmosphere)

    I have 2 lights and Environment Fog in a scene.
    When rendering the scene, I also rendered this fog as VrayAtmosphere pass.
    Then I made seperate passes for light1 and light2 (without fog active)

    When I try to composite, I can't get the same result as the main render:

    Light 1 (NoFog)
    + (Linear Dodge)
    Light 2 (NoFog)
    + (Linear Dodge)-also tried with other blending modes and none worked.
    VrayAtomosphere

    is not equal to the render when both lights and fog is on.
    Where am I making the mistake?
    How should I composite this?
    for my blog and tutorials:
    www.alfasmyrna.com

  • #2
    The atmosphere should be added; linear dodge is not exactly the same as pure addition. Also do you have any color mapping in your images? Gamma correction?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Color mapping is linear.
      Gamma on Color Mapping Rollout is 2.2

      The difference is so huge. I don't think it will be sorted out with the difference between linear dodge and add.
      Let me try to make a sample scene and I will send.
      for my blog and tutorials:
      www.alfasmyrna.com

      Comment


      • #4
        Humh

        Far away form me experience but basic thinking tells me...

        Render to png with alpha channel and just drop in ur PS ?

        I guess u would have to render mask for ur object to subtract them from fog at the end tho...
        CGI - Freelancer - Available for work

        www.dariuszmakowski.com - come and look

        Comment


        • #5
          Ok here are the passes:

          Both lights and the fog:
          Click image for larger version

Name:	BotjLights.jpg
Views:	1
Size:	7.7 KB
ID:	843855

          VrayAtmosphere Pass
          Click image for larger version

Name:	BotjLights_FogPass.jpg
Views:	1
Size:	6.6 KB
ID:	843859

          Light1 Pass
          Click image for larger version

Name:	LT2.jpg
Views:	1
Size:	14.2 KB
ID:	843856

          Light2 Pass
          Click image for larger version

Name:	LT1.jpg
Views:	1
Size:	11.1 KB
ID:	843858

          Composited Image
          Click image for larger version

Name:	Composite.jpg
Views:	1
Size:	76.7 KB
ID:	843857


          There is huge difference between the rendered image (first) and the composited image (last) one.
          for my blog and tutorials:
          www.alfasmyrna.com

          Comment


          • #6
            Nobody?

            Is this a bug?
            Or can these passes be composited just like the render?
            for my blog and tutorials:
            www.alfasmyrna.com

            Comment


            • #7
              Look at Peter Guthrie's notes on how he comped the fog for his Farnsworth house.
              Kind Regards,
              Morne

              Comment


              • #8
                Originally posted by DVP3D View Post
                Look at Peter Guthrie's notes on how he comped the fog for his Farnsworth house.
                I checked- if it is this what you mean, I couldn't find andy detailed info but in one sentence he mentions that he SCREENED the fog pass over the render.
                BUT as I already sent the passes above, the rendered image (with fog) is never equal to renderss(without fog)+fog(added as screen, linear dodge or anything)
                Please look at the renders in my previous post and you will see the problem.
                for my blog and tutorials:
                www.alfasmyrna.com

                Comment


                • #9
                  Hm, you would also need the transparency of the fog for proper compositing. Unfortunately this is not currently output as a separate render element - I'll make a note to add it. For the time being, you can get this pass by rendering the scene a second time with the objects set as matte objects.

                  Best regards,
                  Vlado
                  I only act like I know everything, Rogers.

                  Comment


                  • #10
                    As mentioned earlier, would it be possible to have a setting in the vray fog that removes it from the regular rgb output when the RE fog is added, and that the opacity\alpha of the fog is included in the fog pass automatically? this way one would not need to render the stuff out twice, and you would not have to reassemble the regular passes to get the scene without the fog on top.
                    Signing out,
                    Christian

                    Comment


                    • #11
                      It's certainly not impossible...

                      Best regards,
                      Vlado
                      I only act like I know everything, Rogers.

                      Comment


                      • #12
                        Originally posted by vlado View Post
                        Hm, you would also need the transparency of the fog for proper compositing. Unfortunately this is not currently output as a separate render element - I'll make a note to add it. For the time being, you can get this pass by rendering the scene a second time with the objects set as matte objects.

                        Best regards,
                        Vlado
                        Sorry if I am asking silly question- pls bear with me, I just have so limited knowledge about compositing.
                        You mentioned to render the transparency with objects set as matte. Isn't VrayAtmosphere Pass already this?
                        Thanks
                        for my blog and tutorials:
                        www.alfasmyrna.com

                        Comment


                        • #13
                          Originally posted by trixian View Post
                          As mentioned earlier, would it be possible to have a setting in the vray fog that removes it from the regular rgb output when the RE fog is added, and that the opacity\alpha of the fog is included in the fog pass automatically? this way one would not need to render the stuff out twice, and you would not have to reassemble the regular passes to get the scene without the fog on top.
                          Yes I agree with this. This way we will not have fog rendered both in RGB pass and the atmosphere pass twice.
                          for my blog and tutorials:
                          www.alfasmyrna.com

                          Comment


                          • #14
                            Originally posted by pixela View Post
                            Sorry if I am asking silly question- pls bear with me, I just have so limited knowledge about compositing.
                            You mentioned to render the transparency with objects set as matte. Isn't VrayAtmosphere Pass already this?
                            Not exactly - it doesn't include the transparency of the fog. If you render the objects as matte, you will be able to use the alpha channel of the resulting image.

                            Best regards,
                            Vlado
                            I only act like I know everything, Rogers.

                            Comment


                            • #15
                              I am a little confused.

                              1. LightingPass + VrayAtmospherePass (masked with Alfa of Fog-Render-With-AllObjects-MAtte
                              2. LightingPass + (Fog-Render-With-AllObjects-Matte)

                              Are these equal to each other?
                              Then we don't need to render a sepearate WvrayEnvironment Pass if we make a Fog-Render-With-AllObjects-Matte- am I right?
                              for my blog and tutorials:
                              www.alfasmyrna.com

                              Comment

                              Working...
                              X