POV-Ray : Newsgroups : povray.newusers : concerning the camera up and right : Re: concerning the camera up and right Server Time
7 Jul 2024 07:24:35 EDT (-0400)
  Re: concerning the camera up and right  
From: Alain
Date: 4 May 2010 22:34:07
Message: <4be0d91f$1@news.povray.org>

> Hi,
>    The documentation says that for a camera  right and up have default values
> related to x and y.
> Unfortunately I havent worked out what x and y you are referring to.
>
>
>

x, y, and z refer to the cartesian axis.

The default camera: (used if you don't define any camera)

camera{
perspective
location 0  // or <0,0,0> Located at the origin
look_at z   // or <0,0,1>
up y        // or <0,1,0> This is the "y"
sky y       // Usualy, up and sky are the same
right 4/3*x // or <4/3,0,0> for the usual 4:3 aspect ratio.
//This is the "x"
direction z // or <0,0,1>
// +x is to the right, +y is up and +z is forward.
}

At 1 unit in front of the camera, you see verticaly from -1*y to +1*z 
and horizontaly from -4/3*x to +4/3*x, or this square:
<-4/3, -1>,<4/3, 1>



Alain


Post a reply to this message

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