|
![](/i/fill.gif) |
In article <422db829$1@news.povray.org>,
Sascha Ledinsky <sas### [at] users sourceforge net> 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] gmail com>
POV-Ray TAG: <chr### [at] tag povray org>
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |