POV-Ray : Newsgroups : povray.general : perspective user defined camera? : Re: perspective user defined camera? Server Time
19 Apr 2024 16:42:50 EDT (-0400)
  Re: perspective user defined camera?  
From: Tor Olav Kristensen
Date: 27 Jan 2019 21:35:00
Message: <web.5c4e6a2962f2921970c5131a0@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
>...
> Below is some more code for you.
>...

BTW:
It would be nice if user defined cameras could be transformed directly like
other cameras. E.g. like this:

camera {
    user_defined
    location 0*z
    direction {
        function { image_width*u }
        function { image_height*v }
        function { image_width/2/tan(radians(Angle/2)) }
    }
    transform {
        LookAtTransform
        AnotherTransform
        translate pLocation
    }
}

- Then one would not have to transform the functions in order to transform the
camera.

The transformation block above does not seem to have any effect on the user
defined camera in the 3.8 version of POV-Ray that I'm using right now on my
Ubuntu PC; 3.8.0-x.freetype.unofficial (g++ 7 @ x86_64-pc-linux-gnu). I haven't
tested this on any 3.8 versions for Windows yet.

--
Tor Olav
http://subcube.com


Post a reply to this message

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