|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |