Announcement

Collapse
No announcement yet.

Match Fisheye lens

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

  • Match Fisheye lens

    I have this crazy photo to match, but I can't inside of MAX. What to do? Click image for larger version

Name:	img147773-edit.jpg
Views:	1
Size:	504.1 KB
ID:	881449
    Last edited by glorybound; 15-03-2015, 07:58 PM.
    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

  • #2
    I found the distortion for the V-Ray camera, which is awesome, but how do I see the background? I know how to see it in MAX, but I can't use MAX's environment and V-Ray's distortion. I spent an hour slowly moving the building into its place, but it was simply a guessing game.
    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


    • #3
      dont think thats a fisheye. more like a stitched panorama?

      Comment


      • #4
        As Nic suggests, it's more probably a cylindrical panorama. It can be done, but it's a bit of a tricky workaround.

        First you need to be using standard max camera, then override the FOV with your vray settings. Work out the angle of view in the photograph. You can use the following formula: (Pixel width of stitched panorama x FOV of lens used) / Pixel width of single image (from EXIF data) = Panoramic FOV. This value is what you input in the override FOV box. Set type to Warped Spherical (Old-style).

        You won't see any change in viewport, but you can now use VrayRT to try and align your shot. The more info you have on camera position, height etc. plus any modeled roads or buildings, the easier this part will be.

        This is a WIP of one I did a couple of years ago for a visual impact assessment using this method, where I had topographical data to help:

        Check out my models on 3dOcean

        Comment


        • #5
          Way more than I planed. Here is another photo, which seems to be equally odd to match.

          Click image for larger version

Name:	img147571-edit.jpg
Views:	1
Size:	510.8 KB
ID:	855591
          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


          • #6
            A few more ideas...

            You could render out a smaller portion of your pano. Perhaps 90degrees. Work with this, and then integrate this back into your full spherical pano.

            So your render would be square and essentially one tile from a cubic panoramic projection.

            If I needed to be accurate (if my cg objects needed accurate alignment with my back plate) then I would use pano2vr to convert the pano first to a cubic projection. Then just use one tile as my backplate in max. Note Max's built in panorama exporter produces cubic maps and then converts then to spherical.

            You could render these tiles manually if you like - front back, L, R, T, B by simply rotating your camera. But you'd need to figure out how to convert back to spherical projection at the end. Hence why I use pano2vr as it handles this easily.
            Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
            Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

            Comment


            • #7
              Re that last image - to me it looks like it's super wide angle and probably rendered out from a panorama. That's why it looks a bit unusual. Where is your CG stuff being integrated into the photo?
              Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
              Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

              Comment


              • #8
                I am trying to align, using the photo as a view port background.

                Click image for larger version

Name:	Capture.jpg
Views:	1
Size:	513.3 KB
ID:	855594
                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


                • #9
                  Again, this may be a composite panorama of several vertical shots stitched together. Either use the method I described above or else map the photo to a plane with bend modifier to form partial cylinder that fills your viewport. That should be a simpler way to straighten out distortion in the backplate.
                  Check out my models on 3dOcean

                  Comment


                  • #10
                    Sorry my bad - on first glance I thought that first image a sphere.
                    Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
                    Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

                    Comment

                    Working...
                    X