sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Distace from Camera to object in drawing.

    Scheduled Pinned Locked Moved Developers' Forum
    44 Posts 14 Posters 38.6k Views 14 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      angeli7on
      last edited by

      Hi, I got confused about this.
      I try using get_camera_distance but the result aren't DOF
      am I missing something ?

      here I attach my screen shot
      if too small I also upload here:
      http://imageshack.us/f/254/bingungdof2.jpg

      please advice, thanks alot.


      confusing dof

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        But the distance given by the tool is 703" - not '10' units in the Camera DOF dialog ?
        Try using the real equivalent distance [in the correct units for that dialog] to see what happens.
        The distance returned by the tool is the distance from the camera 'eye' up to the picked point - in your screenshot it's given in 'inches'...

        TIG

        1 Reply Last reply Reply Quote 0
        • Chris FullmerC Offline
          Chris Fullmer
          last edited by

          Yeah, so what are the expected units of that rendering dialog box? Feet? Meters? cm?

          703 inches =

          58.58 feet
          17.8562 meters
          1785.62 cm

          My best guess is that it is expecting feet or meters based on the DOF shown in the 2 screenshots. 10 is too close, but 703 is clearly waaaaaaay to far. So its gotta be something in the middle, which would probably be feet or meters.

          Lately you've been tan, suspicious for the winter.
          All my Plugins I've written

          1 Reply Last reply Reply Quote 0
          • A Offline
            angeli7on
            last edited by

            Hi TIG and Chris Fullmer, thanks for your reply.
            I think I already put the unit into inch. and I already put 703 (not just 10) in Overide_focal_dist, but the result are all sharp.
            I got 703 from get_camera_distance plugin, on the red ball.
            here I attach another screenshot with color and setting, I'm going to make the red ball to be sharp and the other ball become blurry.
            Do you have simple samples of your blurred .skp ?
            and here also my .skp file in google drive:
            https://docs.google.com/open?id=0BxjFhe9IY4QWLWUyYVFKdFNWRHM
            many thanks for your help guys.


            confusing dof

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              It's unclear if you tried what we suggested. I told you to try 58.8 in case V-Ray is expecting the input to be in feet, or put 17.8562 in case it is expecting meters. Do those two numbers then report back.

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                To elaborate again, the SketchUp pop-up is saying 703". But it appears that the V-Ray window is expecting the input to be in something other than inches, otherwise it would have worked. So other common units would be feet or meters. Since we know that object is 703" from the camera, we'll convert that to feet. It is 58.8 feet. Or maybe V-Ray is expecting meters, so convert 703" to meters and you get 17.8562 meters. That is why I'm saying try those two numbers, I'm hoping one will work. Then you will know from that point on, which unit V-Ray is expecting.

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  Have you tried adjusting the F-Stop?

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • Chris FullmerC Offline
                    Chris Fullmer
                    last edited by

                    Looks like he's got his f-stop set at 2.8. That should give a good DOF blur. And indeed in his first post, the image where he has f-stop at 2.8 and focal distance at 703, there is no visible blur, but when he changed the focal distance to 10, the entire image was blurry, indicating that the DOF is working, he just needs to set the correct distance.

                    Lately you've been tan, suspicious for the winter.
                    All my Plugins I've written

                    1 Reply Last reply Reply Quote 0
                    • Chris FullmerC Offline
                      Chris Fullmer
                      last edited by

                      I'm already changing my mind. I can see that lowering the f-stop even more might be needed Thom, good call. That should definitely be tried as well.

                      The further the object is, the harder it is to get a shallow DOF (blur). Lowering the aperture will help create even more blur. But its possible the object could be so far away that there will never be any apparent blur. You could resort to using tilt frame to force a blur. But I'm thinking at that distance, you should be able to get some blur.

                      Lately you've been tan, suspicious for the winter.
                      All my Plugins I've written

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        He used a tool to measure the distance, so it should be correct.
                        It is possible that the F-Stop in VfS isn't working 100% like a real camera does.

                        Thomas Thomassen — SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • Chris FullmerC Offline
                          Chris Fullmer
                          last edited by

                          Well, in thinking about it, he's trying to blur something that is 58 feet or 17+ meters away. I'll get out my camera later today and open it to 2.8 and shoot something at about that distance, see if it produces any blur. At that distance, there is a chance there should be no blur.

                          Lately you've been tan, suspicious for the winter.
                          All my Plugins I've written

                          1 Reply Last reply Reply Quote 0
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            As I understand it... the bigger the f-stop number the greater the depth of field about the focal-depth.
                            So a large number uses a 'pinhole' which has almost everything focused about that point, but a small number uses a 'wide-eyed' aperture which focuses on the point, with things nearer or farther away being shown blurred...
                            In real cameras the smaller the aperture size [i.e. the bigger the number] the less light gets into the 'film' and so this affects the shutter-speed in turn - so then there are three variables to juggle. But in rendering the focal-depth and f-stop interact to control the sharpness of objects that are nearer/farther away... and the 'speed' is therefore somewhat arbitrary...
                            😕

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • Chris FullmerC Offline
                              Chris Fullmer
                              last edited by

                              Yup, except I think some (most?) renderers do take into account the shutter speed and use it for brightness/exposure control.

                              @Thom, he used "a tool" to measure, but is it designed to work seamlessly with the renderer he's using? The tool returns the distance in inches, but do you know what unit V-Ray is expecting? That's why TIG and then I suggested he try some different units.

                              I'm interested to hear back if its a units thing or not so I can move on from that sticking point.

                              Lately you've been tan, suspicious for the winter.
                              All my Plugins I've written

                              1 Reply Last reply Reply Quote 0
                              • stefanqS Offline
                                stefanq
                                last edited by

                                I rendered this image couple of years ago, so in an older version of v-ray, but what I can tell for sure is that, it's a raw v-ray image with f-stop at 0.4. I remember that I had a hard time using physical camera, so I turn it off.
                                PS: I used a free plugin called "CameraDistance" , and in v-ray, the units are inches.
                                Good luck.


                                dof1.jpg

                                1 Reply Last reply Reply Quote 0
                                • stefanqS Offline
                                  stefanq
                                  last edited by

                                  It's working. I added a checker texture on the ground so that the DOF effect is clear.
                                  What you need is a lower f-stop to really see the DOF effect. For this image I used 0,2 and I made the ISO 1 for balancing the exposure.


                                  dof1.jpg

                                  1 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

                                    @chris fullmer said:

                                    @Thom, he used "a tool" to measure, but is it designed to work seamlessly with the renderer he's using? The tool returns the distance in inches, but do you know what unit V-Ray is expecting? That's why TIG and then I suggested he try some different units.

                                    VfSU expects inches for everything - because it uses SU's internal units only. But his screenshot indicated the distance was in inches - did it not?

                                    Thomas Thomassen — SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 Reply Last reply Reply Quote 0
                                    • Chris FullmerC Offline
                                      Chris Fullmer
                                      last edited by

                                      @thomthom said:

                                      VfSU expects inches for everything - because it uses SU's internal units only.

                                      Ahh, see I don't know that, not being an VFSU user. The screen shot looked like he used a tool by Al to determine the distance. But the Vfsu screen does not indicate what units it is expecting. So there was no way to know that he had input the measurement in the correct units. But if you say it is expecting inches, then yes, 703 should work.

                                      Lately you've been tan, suspicious for the winter.
                                      All my Plugins I've written

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        So, as Stefan confirms... IF the f-stop is a very small number [large iris aperture] then most things at or near the 'focal-point' [set in inches] will appear sharp, with blurriness increasing rapidly away from that point. If the f-stop is a very large number [small iris aperture] then most things will appear sharp, irrespective of the 'focal-point' [set in inches] and their relative offset from that.

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          angeli7on
                                          last edited by

                                          Hi guys,
                                          Thanks alot for the reply even I not fully understand it all ^^
                                          I tried Stefanq setting, put down the F number to 0.1 and ISO to 1.0 and finally the blur came out, and only distance 703" is sharp.
                                          However I need extremely blur to the black and blue ball, I tried the F number to 0.01, but all become wash out white.
                                          eventhough I increase the speed to 16,000 to reduce light, it still wash out white. Do you have any advice how to get the blur more ? many thanks.


                                          dof4

                                          1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            angeli7on
                                            last edited by

                                            Hi guys, finally the blur is ok with me... attached is my last setting.
                                            Now I learn one thing that vfsu is different than my DSLR, I used F/2.8 lens at 200mm and 5 meter object (ISO 100, speed 1/100) but different here in vfsu, number can vary from 0.01
                                            now I have to get used to this ^^

                                            One last question, Stefanq said that he didnt use physical camera setting, so what setting should I used without physical camera On ?
                                            Thank you Chris, TIG, Thom, & Stefan.


                                            solved dof

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement