[yt-users] volume rendering rotate

Britton Smith brittonsmith at gmail.com
Tue Nov 8 08:11:49 PST 2011


Hi Stella,

I think all you have to do is add the "steady_north=True" keyword arg to
the camera instantiation and you should be all set.

Britton

On Tue, Nov 8, 2011 at 10:35 AM, Stella Offner <soffner at cfa.harvard.edu>wrote:

> Hi,
>
> I'm making a volume rendering movie and I'm encountering an issue with the
> rotate function. I'm iterating over a call to cam.rotate(angle,
> rot_vector=north), with a fixed angle and north vector. However, the
>  output images rotate about that axis for a few frames and then switch
>  north vectors and rotate about a different north. I'm using a yt version I
> installed a couple weeks ago, so its pretty up to date. Do you know what
> could be going on?
>
> for j in range(1,76):                          cam.rotate((3.14*2.0/75.0),
> rot_vector=[0, 0, 1])
>          vals = cam.snapshot()
>          image_file = "%s_st%i_%i_%i_%i_box_%i.png" % (pf, star, xrot,
> yrot, zrot, ifile+j)
>          write_bitmap(vals, image_file)
>
> Thanks,
> Stella
> ______________________________**_________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/**listinfo.cgi/yt-users-**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/20111108/19a530fe/attachment.html>


More information about the yt-users mailing list