POV-Ray : Newsgroups : povray.binaries.utilities : About Juha's solution for camera positionning(long I'm afraid) : Re: About Juha's solution for camera positionning(long I'm afraid) Server Time
1 Jul 2024 05:55:20 EDT (-0400)
  Re: About Juha's solution for camera positionning(long I'm afraid)  
From: Nieminen Juha
Date: 27 Aug 1999 07:44:27
Message: <37c67a1b@news.povray.org>
Jean Montambeault <jrm### [at] videotronca> wrote:
:>>  camera
:>>  { location -z*Distance
:>>  look_at 0
:>>  rotate CameraRotation
:>>  translate ObjectCenter
:>>  }

:     That rotation with Camera_Rotation that you're suggesting... Okay,
: let's try it : first you carefully set a Distance : fine until now.
: Second you rotate along the azimuth, something like "rotate y*Azimuth"
: (note that you won't be able to use one single vector as the rotation
: would happen about the X axis first, then the Y axis... and you want
: more control than that) : hey ! everything is fine, the distance about
: the origin is the same and we're on the side of the object that we
: want. Yeah ! But now, how do you go about getting some altitude
: (positive or negative) ?

  Easyly. You first rotate around the X axis to the the altitude and then
around the Y axis to get the direction where we are looking from. Like this:
  camera
  { location -z*Distance
    look_at 0
    rotate x*Latitude rotate y*Longitude
    translate ObjectCenter
  }


-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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