POV-Ray : Newsgroups : povray.general : Positioning a camera : Re: Positioning a camera Server Time
1 Aug 2024 20:07:35 EDT (-0400)
  Re: Positioning a camera  
From: Christoph Hormann
Date: 17 Apr 2005 08:05:02
Message: <d3tj4b$bej$1@chho.imagico.de>
Cesar wrote:
> 
> I honestly don't think it's a bug in my app. The vectors are, for example:
> 
> direction <0,  1, 0>
> up <0.198669, 0, 0.980067>
> right <1.30349, 0, -0.26423>
> 
> and povray complains about perpendicularity.

And does so rightly,

0.198669*1.30349 + 0.980067*(-0.26423) = 4.86e-8 != 0.0

Specifying the up and right vector the way you did it usually does not 
make sense.  You usually orient the camera with look_at or rotations and 
leave up and right as default (except aspect ratio).  See the docs, 
"3.3.1.1.5 Up and Right Vectors" for more explanation.

And no, using doubles in your program won't help since you transfer the 
numbers in decimal ascii.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 27 Feb. 2005 _____./\/^>_*_<^\/\.______


Post a reply to this message

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