POV-Ray : Newsgroups : povray.newusers : distance of the viewing plane to the camera : Re: distance of the viewing plane to the camera Server Time
29 Jul 2024 12:19:12 EDT (-0400)
  Re: distance of the viewing plane to the camera  
From: Roman Reiner
Date: 24 Dec 2005 16:15:00
Message: <web.43adb90e26cbcc409c3c716e0@news.povray.org>
Hi hermans

Although i'm not sure i would guess that the distance of the viewing plane
is given by the length of the direction vector (compare to the illustration
at the docs 3.3.1.1). so to get what you want you should have to declare
direction as d*vnormalize(dicection_vector) where d is the distance of the
viewing plane to the cameras location.
AFAIK the right vector playes only a role with ortographic cameras where it
determines (with the up vector) the size of the image. it also has
consequences on the aspect ration of the image. it should have no effect on
the distance of the viewsing plane

Hope that helped
Regards Roman

hermans <sas### [at] telenetbe> wrote:
> For illustrating some properties of perspective I want to place the
> viewing plane at a given distance from the camera. I think this has to
> do with the direction vector, but also with the right vector.
> If I put a perspective camera at a point <a,b,c> viewing in the
> direction <0,0,1> how can I determine the combination of the right and
> the direction vector to obtain the viewing plane, parallel to the
> (X,Z)-plane at a distance d from the camera in the direction determined
> by <0,0,1>?


Post a reply to this message

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