POV-Ray : Newsgroups : povray.general : Crash! Bang! : Re: Crash! Bang! Server Time
8 Aug 2024 20:24:55 EDT (-0400)
  Re: Crash! Bang!  
From: Pete
Date: 29 Nov 2000 19:19:34
Message: <545.368T834T11483647PeterC@nym.alias.net>
Another solution is to not use the look_at keyword
and instead use a direction statement in the camera
block and then rotate/translate the camera as needed.
This also allows more control of the camera.

camera {
  location 0            // leave at 0 so rotation works as expected
  direction <0, 0, 1>   // look along the Z axis in the + direction
  right <640/480, 0, 0> // change depending on output image dimensions
  up <0, 1, 0>
  rotate WHATEVER
  translate WHEREEVER
}


Of course, right, up, and direction must be mutally perpendicular.


Post a reply to this message

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