|
![](/i/fill.gif) |
Jean Montambeault <jrm### [at] videotron ca> 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
|
![](/i/fill.gif) |