POV-Ray : Newsgroups : povray.advanced-users : Aren't these perpendicular? : Re: Aren't these perpendicular? Server Time
30 Jul 2024 06:22:57 EDT (-0400)
  Re: Aren't these perpendicular?  
From: Mark Wagner
Date: 20 Jan 2000 00:23:09
Message: <38869bbd@news.povray.org>
David Fontaine wrote in message <3886899D.DEF3CD7C@faricy.net>...
>camera { location <50,50,-50> look_at <20,0,0> up
><50-50*sqrt(2),sqrt((50*sqrt(2)+30)/2),-sqrt((50*sqrt(2)+30)/2)> }
>
>Why does it complain?


Because the 'right' vector may not be perpendicular to the other two.  Try
adding this to your camera:

right
vcross(<50-50*sqrt(2),sqrt((50*sqrt(2)+30)/2),-sqrt((50*sqrt(2)+30)/2)>,(<50
,50,-50>-<20,0,0>))

You might need to multiply the vcross by -1 to get the correct coordinate
system (Left-handed or right-handed).

Mark


Post a reply to this message

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