POV-Ray : Newsgroups : povray.newusers : rotating the camera : Re: rotating the camera Server Time
29 Jul 2024 04:24:56 EDT (-0400)
  Re: rotating the camera  
From: Trevor G Quayle
Date: 2 Aug 2006 13:45:01
Message: <web.44d0e3c34df2b2d7c150d4c10@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> shimon_a10 <shi### [at] wallacoil> wrote:
> > 1. In my question i ment that: if i want to rotate the camera around certain
> >    veactor which act as an axis (for example: rotate the camera around the
> >    line which connect the origin to the camera point).
>
>   If you just want to rotate a point (eg. the location point of the camera)
> around an arbitrary axis, you can use the vaxis_rotate() function for that:
>
> http://povray.org/documentation/view/3.6.1/229/#s02_02_01_04_05
>
>   If you want to rotate the entire camera as if it was an object, you
> can use the Axis_Rotate_Trans() function in the transforms.inc include
> file:
>
> http://povray.org/documentation/view/3.6.1/488/
>
>   In other words, you would do it like this:
>
> #include "transforms.inc"
>
> camera
> { your_camera_settings
>
>   Axis_Rotate_Trans(<1,2,3>, 30)
> }
>
> where <1,2,3> is the axis around which you want to rotate and 30 is the
> rotation amount (in degrees).
>
> --
>                                                           - Warp

I think what he's asking is to roll the camera.  In this case you want to
use the "sky" vector for the camera which tells the camera which way is up
(don't get confused by the "up" vector in the camera which is different).
this is a vector, so you can use vrotate to rotate it in your camera
statement.  See "3.3.1.1.2  The Sky Vector".

-tgq


Post a reply to this message

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