[yt-users] volume rendering rotate

Stella Offner soffner at cfa.harvard.edu
Tue Nov 8 08:16:05 PST 2011


Hi Britton,

Thanks. I did try that and it didn't seem to fix the problem:
cam = pf.h.camera(c, L, W, Nvec, tf, fields=["log_den"], steady_north=True)
I'm also zoomed pretty far into the volume, so maybe that has something 
to do with it?

Stella


Britton Smith wrote:
> 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 <mailto: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 <mailto:yt-users at lists.spacepope.org>
>     http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>   




More information about the yt-users mailing list