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 :slight_smile:

The developers are still working on that.
Also unfortunately there is no workaround at this point.

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

Great I will look for it..!

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
)

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?

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,

Thanks. Very interesting to me. I wish I know scripting…!

I wish i could to :slight_smile: