VrayCam Distortion in viewport not visible but rendered - which I dont want

I have to adjust my model to a photo, taken with a wide angle lens 10mm and corrcted in DXO Photolab. With a VRayCamera I used also distortion, horizontal and vertical tilt to adjust the model to the photo. The model fits to the photo quite well in the viewport. The vertical lines are vertical with no distortion. However, the VRay rendering shows a wrong perspective, which also clearly shows the distortion of vertical lines. When I render with scanline the rendering is what I see in the viewport. In the attachment you can see the white outline of the scanline render in the background (it is a crop from a much bigger image). How can I correct that? Is there some switch? Silly enough: When I hide the camera in the viewport the scanline rendering is also distorted, but that differs from the Vray rendering.
So I tried another hack: I deleted the VRay Camera and rendered the (now) “Perspective” viewport with Vray. The rendering now was without distortion but it fits not perfectly to what I see in the viewport, but far better than the distorted rendering. Any ideas for WYSIWYG in this case ?

Send the scene so we can troubleshoot.

Martin Minev from Chaos Group answered to me: “The V-Ray camera distortion is not correctly represented in the 3ds Max viewport. Since the 3ds Max viewport is developed by Autodesk, we cannot modify its appearance. We recommend using IPR for the most accurate preview.” Thank you for that. I never used lens distortion before because as architectural renderings loves straight vertical lines. Now I tried the 3dsMAX physical camera and saw: Even with its own camera the distortion is not shown in the viewport, I never thought, that such an fundamental feature, to get in the rendering what I see in the viewport in terms of perspective, could be absent in 3dsMAX. The only workaround I see here is to use the original photo without corrections, adjust the perspective to the photo, render it and make the corrections (vertical lines et.) after that.

Yes that would be the way to do it. Preferably you make your photos with a tilt shift lens similarly to how you do it in CG, some cost quite a lot of money. But if you don’t need it all the time, there are shops that rent out lenses. That way you don’t lose quality distorting afterwards and you can match perfectly.

Yes, good idea, I also use the 10-20 very seldom…