POV-Ray : Newsgroups : povray.general : Camera Angle Server Time
6 Nov 2024 06:24:22 EST (-0500)
  Camera Angle (Message 1 to 3 of 3)  
From: Kevin Loney
Subject: Camera Angle
Date: 12 Oct 2002 21:11:19
Message: <3da8c837$1@news.povray.org>
What is the default angle for a perspective camera, I can't find anything on
this in the docs.

thanks

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg",r,1))-97;
disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigment{rgb 10}}_(r+1)
#end#end _(1)//KL


Post a reply to this message

From: Ken
Subject: Re: Camera Angle
Date: 12 Oct 2002 21:26:39
Message: <3DA8CBD6.E874B126@pacbell.net>
Kevin Loney wrote:
> 
> What is the default angle for a perspective camera, I can't find anything on
> this in the docs.

IIRC it's about 67.

-- 
Ken Tyler


Post a reply to this message

From: Slime
Subject: Re: Camera Angle
Date: 13 Oct 2002 00:38:24
Message: <3da8f8c0$1@news.povray.org>
Well, the angle is a modifier. That means it doesn't really have a default
by itself; rather, it's based off of other things that have a default.

The camera parameters (for the default perspective camera) are:

location (default <0,0,0>)
direction (default <0,0,1>)
right (default <4/3,0,0>)
up (default <0,1,0>)

The angle is something you can set that changes the direction vector
depending on the value of the right vector. When you set the angle, it uses
the following formula to alter the direction vector:

direction_length =(1/2) * right_length / tan(angle/2)

So, in order to find the so called "default" of the angle, we simply solve
that equation for angle using the default of 1 as the direction_length and
4/3 as the right_length:

1 = 1/2*4/3 /tan(angle/2)
2/3 = tan(angle/2)
atan(2/3) = angle/2
angle = atan(2/3)*2

This turns out to be 1.176005 radians, or 67.380135 degrees.

Of course, you could have just found this answer by checking the
documentation =)

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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