sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    {REQ} lens shift image exporter

    Scheduled Pinned Locked Moved Plugins
    14 Posts 7 Posters 3.8k Views
    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.
    • M Offline
      manamana
      last edited by

      If this is hard to follow I apologize and will try to clarify as needed.

      Some Architecture and photography people here may be familiar with the concept of a shift lens; basically a lens with an oversize image circle, allowing the photographer to place the film or image sensor in a specific part of the image circle.

      This has a few practical applications; primarily to allow photographers to shoot with a level camera (keeping building verticals straight), while still framing above the horizon. See this link, and scroll down to "The Rising and Falling Front":

      302 Found

      favicon

      (www.luminous-landscape.com)

      Vray for sketchup simulates this effect through the "lens shift" control in the physical camera settings, but I find I don't make use of it because I almost always work on my renderings in photoshop, and part of that involves overlaying the renderings with sketchup hidden line output, which then doesn't line up with the render if I use the shift settings in Vray.

      So I'd just like to chime in and say I would love to see a plugin that allows me get 'shifted' 2D output straight from sketchup that will overlay accurately with 'shifted' Vray output. If it can copy the shift/image size/ field of view settings from Vray, even better.

      Thom - maybe the next addition to vray tools? (which I love)

      Thanks for reading,
      C.

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

        Don't believe that functionality is available in SketchUp...

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

        1 Reply Last reply Reply Quote 0
        • M Offline
          manamana
          last edited by

          @thomthom said:

          Don't believe that functionality is available in SketchUp...

          hmmm. was wondering how limiting the SU camera controls were.

          Here's an idea:

          Since this pretty much the same as rendering out a larger image (larger both in FOV and pixels) and then cropping it down to the FOV/ pixel dimensions of the vray camera settings, I'm wondering if it's possible to do some math on the vray camera settings and then script setting up a viewport / 2d export for that equivalent larger image. Provided that doesn't wind up with Sketchup trying to save out a ridiculously large image (it shouldn't, unless the vray settings are already pretty huge), the only thing left would be the appropriate cropping.

          is it possible to rubyscript cropping an image after it's been exported? If not that isn't too hard to just do in photoshop.

          I'll do some testing this weekend and see if I can describe the necessary math for figuring out that larger image.

          1 Reply Last reply Reply Quote 0
          • jason_marantoJ Offline
            jason_maranto
            last edited by

            Sketchup's native 2-point perspective is basically the same result as shift lens functions in many cases.

            Best,
            Jason

            I create video tutorial series about several 2D & 3D graphics programs.

            1 Reply Last reply Reply Quote 0
            • M Offline
              manamana
              last edited by

              @jason_maranto said:

              Sketchup's native 2-point perspective is basically the same result as shift lens functions in many cases.

              Best,
              Jason

              maybe for some uses, but Vray doesn't render 2 point perspectives with the physical camera on - set one up, frame things above the horizon, and hit render. In the rendering things are framed with the horizon in the center.

              Also - generally with a shift lens on an actual camera you don't want to make the verticals perfectly vertical - a very slight tilt reads more natural, so in practice you only correct MOST of the convergence with the shift functionality. Using 2pt perspective would eliminate that as a strategy.

              1 Reply Last reply Reply Quote 0
              • M Offline
                manamana
                last edited by

                I've been playing with this a little. Might be more complicated than I thought.

                The real problem is that "lens shift" in Vray doesn't work like a shift lens in real life - which in my opinion is silly.

                With a shift lens in real life, you keep the camera mostly level and shift the lens up to frame the subject.

                with "lens shift" in Vray, you TILT the camera up to frame the subject, and then the "lens shift" value seems to have the effect of both tilting down and then shifting up to replicate the original tilted framing. I suppose that's easier for most people to understand, but it does make syncing output more of a puzzle.

                Does anyone know what the "lens shift" value actually represents? Inches? percent?

                If I knew exactly what that value did to the camera, it might be possible to translate it to an equivalent, near-level camera setting and resolution for SU output.

                1 Reply Last reply Reply Quote 0
                • romboutR Offline
                  rombout
                  last edited by

                  did any one found a solution for this problem yet...
                  i was thinking about a line procedural render, but getting just the outlines is a bit hard perhaps

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

                    Well, where does the problem really lie? In SketchUp or in V-Ray? Sketchup has rudimentary shift capability with the 2 pt perspective. It would be cool if we could do more, but it is not possible through the ruby camera methods. It might be possible through a convoluted process of cutting up the model and warping it all, which would then only be accurate from one camera location, and it would destroy the model.

                    Or is it a V-Ray issue, do they just need to offer more useful controls?

                    Or is it really both softwares need to update their capabilities?

                    Chris

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

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      manamana
                      last edited by

                      Well, It looks to me like the Vray folks made a decision about how the "lens shift" value works that makes it easier for most folks to understand and frame shots from the sketchup viewport.

                      That's perfectly understandable, even if it seems completely daft (not to mention horridly imprecise) to someone who knows and expects the usual functionality of lens shift on an actual camera.

                      I believe that if we knew exactly what the vray "lens shift" value was doing to the camera, it is probably possible to work backwards to produce the appropriate sketchup output, more specifically one that could be cropped to match.

                      ...and I'm off to the vray forums to ask about that value.

                      Edit: as for what I'd like to see, I think there's multiple ways to get there, from either ASGVis or google. Easiest would be a "shift only" option for lens shift in Vray, which would not distort things as the value currently does and the value would then work like a real shift lens.

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

                        @manamana said:

                        ...and I'm off to the vray forums to ask about that value.

                        Edit: as for what I'd like to see, I think there's multiple ways to get there, from either ASGVis or google. Easiest would be a "shift only" option for lens shift in Vray, which would not distort things as the value currently does and the value would then work like a real shift lens.

                        Remember that it's not ASGVis that makes V-Ray. ChaosGroup are the ones that develop V-Ray. ASGVis just makes the plugins that bridge V-Ray and SketchUp/Rhino.

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

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          manamana
                          last edited by

                          Ah. Always wondered what that relationship was - Thanks.

                          I dug around the chaosgroup forums and found a few folks asking the same questions, also with no answers. How the hell does no one have a clue what that value does? But it also looks like the 3dsMax users have a Vray "film shift" which does pretty much what I'd like it to. Maybe it's just a matter of waiting for that to be implemented.

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

                            Yea, the ASGVis guys have trouble some time finding proper description of all the features they expose via their bridging plugins.

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

                            1 Reply Last reply Reply Quote 0
                            • brodieB Offline
                              brodie
                              last edited by

                              Definitely sounds like a Vray issue, or maybe a Vray plugin issue to me. I'm very limited in my vray knowledge and event then only through 3ds max, not SU, however I can describe how Maxwell does it which works quite well.

                              1st, Maxwell had shift/tilt capability that matches a real camera, unlike what you're describing with Vray I believe.

                              2nd, the plugin can pretty much match any SU camera (it couldn't always do this but with newer version of the renderer and a new plugin developer it's improved a lot). So it can do both parallel projection renderings and 2point perspective renderings. The later will adjust the camera appropriately, giving the correct amount of tilt/shift to match the SU camera (supposedly there's a limit to this but it must be pretty extreme as I've never encountered issues).

                              3rd, there are also tilt/shift values you can input. It won't change the SU camera, but will interpret those values upon export. Presumably, that would be the best method for achieving the 'almost' vertical lines you mentioned earlier.

                              -Brodie

                              steelblue http://www.steelbluellc.com

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

                                Really something that is missing for exterior architecture.
                                I cant understand the interest of Lens shift in VFSU when it behaves the way it does. I cant even admit theres no workaround to do what we are after...it is a so obvious tool! đź’š đź’š

                                Agir comme un homme de pensée, et penser comme un homme d'action...

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

                                Advertisement