Announcement

Collapse
No announcement yet.

volume fog lights (God rays)

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

  • volume fog lights (God rays)

    I would like to create God rays, where sunlight comes through a window. I have been able to achieve this using Vray Environment Fog in the render globals, and a Maya spotlight. This has two disadvantages,

    1) if I add any other lights to the scene they also are affected by the fog, which is undesirable. In Max you can include a list of lights that affect the volume when "Use all lights" is off. I do not see this in the Maya implementation.

    2) Sun rays are paralell, and so a directional light would be preferable over the inaccurate cone shape of a spot light. However applying fog to a directional light is very costly. In Mental ray one can reduce this my confining the fog area to a bounding box so there is not an infinite calculation. Is there a way to improve the efficiency of the shader here?

    I saw in the Max version that one can use "gizmos" but again, I do not see anything about this in the Maya Vray documentation.

    There are other fog shaders in the Vray volume section, which are all undocumented. Would any of these be preferable to use in this case? One of them I recall had an icon of a fog spotlight, but I could figure out how to use it...


  • #2
    The VRayEnvironmentFog node is a set, so you can link lights and geometric objects to it.

    Originally posted by sharktacos View Post
    1) if I add any other lights to the scene they also are affected by the fog, which is undesirable. In Max you can include a list of lights that affect the volume when "Use all lights" is off. I do not see this in the Maya implementation.
    Set the "Light mode" of the VRayEnvironmentFog node to "Override shape lights", then use the Relationship editor to link the desired lights to the VRayEnvironmentFog node.

    2) Sun rays are paralell, and so a directional light would be preferable over the inaccurate cone shape of a spot light. However applying fog to a directional light is very costly. In Mental ray one can reduce this my confining the fog area to a bounding box so there is not an infinite calculation. Is there a way to improve the efficiency of the shader here?
    Use the Relationship editor to link the bounding shape to the VRayEnvironmentFog node (you will also need to make the bounding shape itself invisible).

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

    Comment


    • #3
      How does one make a bounding shape to connect? Is there a "create vray bounding shape" menu?
      Last edited by sharktacos; 23-01-2011, 05:00 PM.

      Comment


      • #4
        You should be able to draw a cube or any other shape, but give it a transparent material. Not sure if supported, but you could try it with Volume Primitives
        Maya 2020/2022
        Win 10x64
        Vray 5

        Comment


        • #5
          Volume primitives are not supported, but you can use any polygonal object. Make sure that it is either invisible or has a transparent material, so that you can see the fog inside.

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

          Comment


          • #6
            Originally posted by vlado View Post
            The VRayEnvironmentFog node is a set, so you can link lights and geometric objects to it.

            Set the "Light mode" of the VRayEnvironmentFog node to "Override shape lights", then use the Relationship editor to link the desired lights to the VRayEnvironmentFog node.
            So I did this using a spot light and a point light. I linked the spot to connect to the VRayEnvironmentFog as described above, and the point light not to link to it. However, they both are still getting fog on them. So the linking does not seem to be doing anything.

            I see here a node called "VrayScatterFog" what does that do? Could it be used for this effect (godrays)?

            Comment


            • #7
              Hm, works for me. Can you post your scene? VRayScatterFog will not help much.

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

              Comment


              • #8
                Okay, the scene is attached.
                Attached Files

                Comment


                • #9
                  In your scene, the spot light was not linked to the environment fog. Once I did that, it worked as expected.

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

                  Comment


                  • #10
                    Ahh, okay I was linking it in the relationship editor under light linking. What I needed to do is link it in the relationship editor under set editing. Works now.

                    thanks Vlado

                    Comment


                    • #11
                      i saw this thread long time ago but didnt have time to play with fog, so i did now

                      http://www.vimeo.com/20211627

                      let me know what u think

                      cheers

                      Comment


                      • #12
                        Aaargh! It says on Vimeo that this video is waiting in line to be converted... I want to see it now!

                        Comment


                        • #13
                          The curse of Vimeo! I can never get Vimeo to load vids on my Android phone either!

                          Bookmarked though, look forward to your work Bazuka!
                          Maya 2020/2022
                          Win 10x64
                          Vray 5

                          Comment


                          • #14
                            That was really nice.
                            1 min/frame? How? I have played with envfog alot,
                            but never got clean results so fast.
                            Lasse Kilpia
                            VFX Artist
                            Post Control Helsinki

                            Comment


                            • #15
                              yea sorry vimeo video converting is a slow as hell if u dont have pro account

                              hehe cant tell u... if i tell u ill have to kill u

                              ill will post commercial i did (soon as i get green light from client) using underwater god rays
                              Last edited by bazuka; 21-02-2011, 11:00 PM.

                              Comment

                              Working...
                              X