POV-Ray : Newsgroups : povray.general : About camera reference frame Server Time: 30 Mar 2020 14:38:13 GMT
  About camera reference frame (Message 1 to 4 of 4)  
From: Francescodario Cuzzocrea
Subject: About camera reference frame
Date: 13 Feb 2020 13:40:00
Message: <web.5e45510429aa81a5376b2b10@news.povray.org>
Hello !!

Today I was thinkering about camera reference frames and I had a little bit of
confusion.
Which three vectors define the frame of reference of the camera? I took as
granted that the z direction  was the one exiting from the camera, so the result
of the difference between the vectors "look_at" and "location". But in this way
the "right" and "up" directions (both defined or as default) are not
perpendicular to the z direction. So what is it? Are the right and up directions
(and the cross product of them) the reference frame of the camera (so the z
direction is not perpendicular to the image plane) or is it otherwise and the
right and up direction are not defining the camera reference frame?


Thanks in advance !!!!


Post a reply to this message

From: jr
Subject: Re: About camera reference frame
Date: 13 Feb 2020 14:35:00
Message: <web.5e455e25f196bd6c451952ca0@news.povray.org>
hi,

"Francescodario Cuzzocrea" <fra### [at] mailpolimiit> wrote:
> Today I was thinkering about camera reference frames and I had a little bit of
> confusion.
> Which three vectors define the frame of reference of the camera? ...

<http://wiki.povray.org/content/Reference:Camera#Placing_the_Camera>


regards, jr.


Post a reply to this message

From: Alain Martel
Subject: Re: About camera reference frame
Date: 14 Feb 2020 00:00:39
Message: <5e45e327$1@news.povray.org>
Le 2020-02-13 à 08:37, Francescodario Cuzzocrea a écrit :
> 
> Hello !!
> 
> Today I was thinkering about camera reference frames and I had a little bit of
> confusion.
> Which three vectors define the frame of reference of the camera? I took as
> granted that the z direction  was the one exiting from the camera, so the result
> of the difference between the vectors "look_at" and "location". But in this way
> the "right" and "up" directions (both defined or as default) are not
> perpendicular to the z direction. So what is it? Are the right and up directions
> (and the cross product of them) the reference frame of the camera (so the z
> direction is not perpendicular to the image plane) or is it otherwise and the
> right and up direction are not defining the camera reference frame?
> 
> 
> Thanks in advance !!!!
> 
> 
In the default camera, up is +y and right is along the x axis, making 
them all perpendicular.

The frame of reference is the rectangle of size right by up situated at 
distance direction from the camera's location, unless you use the angle 
parameter. In that case, the size of the frame is adjusted as needed to 
ensure that right is correct relative to angle.


Post a reply to this message

From: Bald Eagle
Subject: Re: About camera reference frame
Date: 14 Feb 2020 02:05:01
Message: <web.5e45ffd8f196bd6c4eec112d0@news.povray.org>
"Francescodario Cuzzocrea" <fra### [at] mailpolimiit> wrote:
> Hello !!
>
> Today I was thinkering about camera reference frames and I had a little bit of
> confusion.
> Which three vectors define the frame of reference of the camera? I took as
> granted that the z direction  was the one exiting from the camera, so the result
> of the difference between the vectors "look_at" and "location". But in this way
> the "right" and "up" directions (both defined or as default) are not
> perpendicular to the z direction. So what is it? Are the right and up directions
> (and the cross product of them) the reference frame of the camera (so the z
> direction is not perpendicular to the image plane) or is it otherwise and the
> right and up direction are not defining the camera reference frame?
>
>
> Thanks in advance !!!!

http://news.povray.org/povray.binaries.images/thread/%3Cweb.5d881ea3763463c54eec112d0%40news.povray.org%3E/

http://news.povray.org/povray.binaries.images/thread/%3Cweb.5880b8311652a4dcc437ac910%40news.povray.org%3E/

The camera defaults are pretty straightforward, it's only once you start moving
things around that it can get tricky.

I would also take a look at the screen.inc file - as that has a lot of
definitions and transformations in it that can be instructive.

and links in this thread:
http://news.povray.org/povray.general/thread/%3Cweb.5b9ed475f76fb4baa47873e10%40news.povray.org%3E/?mtop=424446

and maybe you may find _something_ of use here:

http://news.povray.org/povray.binaries.images/thread/%3C5baddad1%40news.povray.org%3E/?mtop=424795


Post a reply to this message

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