Announcement

Collapse
No announcement yet.

Easily determining position of HDRI light source in scene

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

  • Easily determining position of HDRI light source in scene

    Hi Guys,
    when using an HDRI to light my scene, is there an easy way to determine where in the scene the main light source is coming from?

    Cheers.

    -- DJ

  • #2
    You can put the hdr on the viewport background (alt+B), and rotate it from the material editor till it fits your purposes. Then just instance it to vray environment slot(s).
    My Youtube VFX Channel - http://www.youtube.com/panthon
    Sonata in motion - My first VFX short film made with VRAY. http://vimeo.com/1645673
    Sunset Day - My upcoming VFX short: http://www.vimeo.com/2578420

    Comment


    • #3
      the way i personally would do it is make sure you have show calc phase for both the IR and LC ticked, and especailly with the LC you get a pretty good idea of where the light is coming from within seconds of the LC calculation.

      Comment


      • #4
        I've found if I use Vray HDRI map type, with spherical HDRI maps, that the map in the material editor slot is like 80 degrees rotated from how it is actually mapped into the environment. As such it can be difficult to tell where the sun is coming from. This is not the case if you use assign the HDRi using the bitmap Splutterfish option.

        My workaround is simple, I just assign the HDRI to the max environment, and enable viewing the environment map in the background. Then just spin the view around until you can see where the sun is. Then just rotate the map until its coming from the desired direction.

        If this sounds familiar, its how Chris Nichols did it in his Gnomon exteriors DVD.
        "Why can't I build a dirigible with my mind?"

        Comment


        • #5
          Originally posted by Clifton Santiago
          I've found if I use Vray HDRI map type, with spherical HDRI maps, that the map in the material editor slot is like 80 degrees rotated from how it is actually mapped into the environment. As such it can be difficult to tell where the sun is coming from. This is not the case if you use assign the HDRi using the bitmap Splutterfish option.

          My workaround is simple, I just assign the HDRI to the max environment, and enable viewing the environment map in the background. Then just spin the view around until you can see where the sun is. Then just rotate the map until its coming from the desired direction.

          If this sounds familiar, its how Chris Nichols did it in his Gnomon exteriors DVD.
          basically how I do it as well.
          ____________________________________

          "Sometimes life leaves a hundred dollar bill on your dresser, and you don't realize until later that it's because it fu**ed you."

          Comment


          • #6
            I recently discovered this, my sun is dead centre within a hdri image but in material editor its -90 degrees out. has anyone figured out why this is?

            Comment


            • #7
              Originally posted by JamesCutler View Post
              I recently discovered this, my sun is dead centre within a hdri image but in material editor its -90 degrees out. has anyone figured out why this is?
              Very likely the orientation of the camera in the material editor is not exactly the same as the camera in your scene, so it's natural that it will see a different portion of the HDRI.

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

              Comment


              • #8
                Is there a way to match them up? So you can start from a known position.

                Comment


                • #9
                  Yep! That's how I do it, too.

                  http://www.whitebirchstudios.com/blo...category_id=10
                  Bobby Parker
                  www.bobby-parker.com
                  e-mail: info@bobby-parker.com
                  phone: 2188206812

                  My current hardware setup:
                  • Ryzen 9 5900x CPU
                  • 128gb Vengeance RGB Pro RAM
                  • NVIDIA GeForce RTX 4090 X2
                  • ​Windows 11 Pro

                  Comment


                  • #10
                    Originally posted by Clifton Santiago View Post
                    I've found if I use Vray HDRI map type, with spherical HDRI maps, that the map in the material editor slot is like 80 degrees rotated from how it is actually mapped into the environment. As such it can be difficult to tell where the sun is coming from. This is not the case if you use assign the HDRi using the bitmap Splutterfish option.

                    My workaround is simple, I just assign the HDRI to the max environment, and enable viewing the environment map in the background. Then just spin the view around until you can see where the sun is. Then just rotate the map until its coming from the desired direction.

                    If this sounds familiar, its how Chris Nichols did it in his Gnomon exteriors DVD.
                    I don't think I follow, you put the hdri as an environment map and enable it in the viewport. Then you spin around in perspective view until the sun is in view in the viewport. I get that bit, but what do you mean by "Then just rotate the map until its coming from the desired direction."

                    Rotate the map in the material editor? How do you know when its at the right rotation, you can only see the front of a material ball in the material editor.

                    Comment


                    • #11
                      Pull a camera, pointing towards the sun. You can place a sun system to get the sun in an accurate location and rotate the HDRi until lit matches.
                      Bobby Parker
                      www.bobby-parker.com
                      e-mail: info@bobby-parker.com
                      phone: 2188206812

                      My current hardware setup:
                      • Ryzen 9 5900x CPU
                      • 128gb Vengeance RGB Pro RAM
                      • NVIDIA GeForce RTX 4090 X2
                      • ​Windows 11 Pro

                      Comment


                      • #12
                        maybe im just being thick here, but when you say pull a camera pointing towards the sun, you mean the sun that's in the hdri that is the environment background? That still doesn't explain why you would rotate the hdri in the material editor as well.

                        "My workaround is simple, I just assign the HDRI to the max environment, and enable viewing the environment map in the background. Then just spin the view around until you can see where the sun is. Then just rotate the map until its coming from the desired direction."

                        what if you wish to change the location of the sun? ie if the hdri map had the sun behind a building and you wanted it in front.

                        I want to be able to do the following:

                        Load in a hdri and put on a vray dome light. Then add a VraySun and position it where the sun is on the hdri. To do this i would need to see the sun within the hdri in the viewport. So i can either spin the camera to see it or rotate the hdri via the material editor.

                        Then if desired i want to be able to spin the hdri map and at the same time the VraySun spins with it. I can do this by wiring parameters, but its the initial aligning the VraySun up with the sun within the hdri that i dont fully understand.

                        Comment


                        • #13
                          take a look at the video I reordered... I posted it a couple thread up.
                          Bobby Parker
                          www.bobby-parker.com
                          e-mail: info@bobby-parker.com
                          phone: 2188206812

                          My current hardware setup:
                          • Ryzen 9 5900x CPU
                          • 128gb Vengeance RGB Pro RAM
                          • NVIDIA GeForce RTX 4090 X2
                          • ​Windows 11 Pro

                          Comment


                          • #14
                            In your videos, the HDRI is already in the viewport and the sun spot is in view. What if, you dropped the hdri in the viewport and the sun spot wasnt in view? How would you know where the sun spot is? You would have to look for it through a camera, no? Then you can add a VraySun, look where the camera is pointing to and then place the VraySun there.

                            Which gets me to the start of your video. But my confusion is with what people have said in regards to finding that sun spot if its not initially in view.

                            Comment


                            • #15
                              I rotate the HDRI untilI see it. I darken the HDRI so I can see the hotpot better.
                              Bobby Parker
                              www.bobby-parker.com
                              e-mail: info@bobby-parker.com
                              phone: 2188206812

                              My current hardware setup:
                              • Ryzen 9 5900x CPU
                              • 128gb Vengeance RGB Pro RAM
                              • NVIDIA GeForce RTX 4090 X2
                              • ​Windows 11 Pro

                              Comment

                              Working...
                              X