POV-Ray : Newsgroups : povray.general : Parse Warning: Camera vectors are not perpendicular. : Re: Parse Warning: Camera vectors are not perpendicular. Server Time
2 Aug 2024 00:17:46 EDT (-0400)
  Re: Parse Warning: Camera vectors are not perpendicular.  
From: Christopher James Huff
Date: 8 Mar 2005 12:06:38
Message: <cjameshuff-9CC8CB.12063708032005@news.povray.org>
In article <422db829$1@news.povray.org>,
 Sascha Ledinsky <sas### [at] userssourceforgenet> wrote:

> >   But the values in the matrix may not be accurate enough.
> 
> That's double precision (64bit)... How accurate does POV need them?

No, that's decimal ASCII text. Those are *not* the exact values your 
program computed. And the problem may still be in your computations, 
simply using double precision is no guarantee that your numbers are 
correct. Rounding error can easily accumulate and result in a 
non-orthogonal final matrix.


> Do you know how to convert orientations represented as quaternions or 
> axis-angle pairs into fixed-angle representations (for use in POV's 
> rotate <x,y,z> command)?

<http://www.mathworks.com/access/helpdesk/help/toolbox/aeroblks/quaternio
nstoeulerangles.html>

You could also compute the camera basis vectors and tweak them to be 
perpendicular inside POV. For example, find the inaccurate right and 
direction vectors, use them to compute the correct up vector, then use 
the direction and corrected up vectors to compute a working right vector.

-- 
Christopher James Huff <cja### [at] gmailcom>
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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