Announcement

Collapse
No announcement yet.

Vray Framebuffer offset when rendering two-point perspective

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

  • Vray Framebuffer offset when rendering two-point perspective

    Hello!

    I know that the issue of renders coming out with some offsets from the Rhino viewport and Vray framebuffer has been reported. When would the fix be released?
    Is there a temporary solution to this issue in the meantime?

    Thank you

  • #2
    The developers are still working on that.
    Also unfortunately there is no workaround at this point.
    Best regards,
    Zdravko Keremidchiev
    Technical Support Representative

    Comment


    • #3
      Originally posted by puha0941 View Post
      Hello!

      I know that the issue of renders coming out with some offsets from the Rhino viewport and Vray framebuffer has been reported. When would the fix be released?
      Is there a temporary solution to this issue in the meantime?

      Thank you

      Yes, don't use 2 point perspective,instead use lens shift there is a script floating somewhere on this forum to guess the perfect vertical shift.
      The script is called lens shift

      Comment


      • #4
        Great I will look for it..!

        Originally posted by renee81 View Post
        Yes, don't use 2 point perspective,instead use lens shift there is a script floating somewhere on this forum to guess the perfect vertical shift.
        The script is called lens shift

        Comment


        • #5
          here it is.



          -_Runscript (
          Call guess_shift()
          Sub guess_shift()
          Dim view : view = rhino.CurrentView
          If Not rhino.IsViewPerspective(view) Then
          rhino.Print "can't calculate vertical shift for orthogonal views"
          Exit Sub
          End If
          Dim cam : cam = rhino.ViewCameraTarget(view)(0)
          Dim tar : tar = rhino.ViewCameraTarget(view)(1)
          Dim cam_a : cam_a = cam
          Dim tar_a : tar_a = tar
          cam_a(2) = tar(2)
          tar_a(2) = cam(2)
          If rhino.Distance(cam, tar_a) = 0 Then Exit Sub

          Dim shift:shift = rhino.Distance(cam, cam_a) / rhino.Distance(cam, tar_a)
          If cam(2) > tar(2) Then
          shift = -shift
          End If
          rhino.Print shift
          End Sub
          )

          Comment


          • #6
            Thanks Renee.

            So, I use this script while in perspective mode, right? Would my viewport be tweaked into a 'fake' two point perspective as well? Or just the render result will be in 'fake' two point?

            Originally posted by renee81 View Post
            here it is.



            -_Runscript (
            Call guess_shift()
            Sub guess_shift()
            Dim view : view = rhino.CurrentView
            If Not rhino.IsViewPerspective(view) Then
            rhino.Print "can't calculate vertical shift for orthogonal views"
            Exit Sub
            End If
            Dim cam : cam = rhino.ViewCameraTarget(view)(0)
            Dim tar : tar = rhino.ViewCameraTarget(view)(1)
            Dim cam_a : cam_a = cam
            Dim tar_a : tar_a = tar
            cam_a(2) = tar(2)
            tar_a(2) = cam(2)
            If rhino.Distance(cam, tar_a) = 0 Then Exit Sub

            Dim shift:shift = rhino.Distance(cam, cam_a) / rhino.Distance(cam, tar_a)
            If cam(2) > tar(2) Then
            shift = -shift
            End If
            rhino.Print shift
            End Sub
            )

            Comment


            • #7
              yes use it while in perspective mode.No the viewport won't change.

              You have to write the result in the lens shift box in the camera setting,

              Comment


              • #8
                Thanks. Very interesting to me. I wish I know scripting...!

                Originally posted by renee81 View Post
                yes use it while in perspective mode.No the viewport won't change.

                You have to write the result in the lens shift box in the camera setting,

                Comment


                • #9
                  I wish i could to

                  Comment

                  Working...
                  X