POV-Ray : Newsgroups : povray.general : perspective user defined camera? : Re: perspective user defined camera? Server Time
1 May 2024 02:59:03 EDT (-0400)
  Re: perspective user defined camera?  
From: IGM
Date: 9 Jun 2019 03:15:01
Message: <web.5cfcb14f62f2921913ebc39b0@news.povray.org>
> According to the documentation for POV-Ray's camera:
> https://www.povray.org/documentation/3.7.0/r3_4.html#r3_4_2
> - it seems that POV-Ray performs the look_at transform by first panning and then
> tilting the camera.
> (See 3.4.2.1.1 Location and Look_At)

I had read this, but I did not draw the necessary consequences.

> The code that I posted did this in a single reorientation.
>
> If this reorientation is split up in two steps (first panning and then tilting),
> the results seem to be the same for the created user defined camera and the
> built in perspective camera.
>
> You can do this by changing the expression for the LookAtTransform in Ingo's
> ucdLookAtTransform macro, like this:
>
>     #local LookAtTransform =
>         transform {
>             Reorient_Trans(z, vLookAt*(x + z))  // Pan
>             Reorient_Trans(vLookAt*(x + z), vLookAt)  // Tilt
>         }

Thank you Tor for this fix. Now the user_defined camera transform is working
properly!

igmar


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.