[yt-users] cam.rotate
Sam Skillman
samskillman at gmail.com
Mon Nov 18 10:10:16 PST 2013
Hi John,
I'm a bit confused how this could be happening. Is it at all possible that
either c or Lperp are calculated differently for different timesteps? My
only other thought would be that somehow Lperp is very close to the
north_vector, and some dot products over time are building up some sort of
error.
If c isn't changing as a function of timestep, could you paste more/all of
your script just in case there's another piece that's messing around with
things?
Best,
Sam
On Mon, Nov 18, 2013 at 7:13 AM, John Regan <johnanthonyregan at gmail.com>wrote:
> Hi All,
>
> Just a quick question on rotation of the camera object. When I rotate the
> camera I notice that the
> center no longer stays at the focus. I'm running a script which zooms and
> rotates an object in a timeseries fashion.
>
> # Code snippet
> cam = pf.h.camera(c, L, W, (N,N), transfer_function=tf,
> north_vector=up,
> no_ghost=True, steady_north=True)
> #Rotate about the "Lperp" vector
> theta = rotation*filenum
> cam.rotate(theta, rot_vector=Lperp)
>
>
> This pretty much works as I want but after a while a get an output like
> the one attached with the central density no longer at the center. Is there
> a way to keep the focus at "c".
>
> Cheers,
> John
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20131118/a693ff3a/attachment.html>
More information about the yt-users
mailing list