Hi Prof. Zhao,

For this kind of rotation, you might want to change the normal vector which points from the camera position to the view point (the center). Say, for a rotation around the origin on x-y plane, you could set the normal vector to be [np.cos(theta), np.sin(theta), 0.], and for each values of theta angle a snapshot could be taken. You might also want to specify the north vector to a fixed direction, say [0., 0., 1.]

Best wishes,

--
Suoqing JI
Ph.D Student
Department of Physics
University of California, Santa Barbara
CA 93106, USA

On Nov 3, 2014, at 12:20 AM, Gongbo Zhao <gong-bo.zhao@port.ac.uk> wrote:

Thanks Suoqing. I have actually seen those scripts. But I am still struggling to figure out how to do a movie like this,


What I want was to fly through the box, identify the largest halo and rotate it. I can zoom in, move the camera to the most dense region using the sample script in the cookbook, but the rotation was not satisfactory. it must be related to the north vector and the focus point I guess, but I haven't figured out how to tune it. So I am wondering whether anyone has done the same visualization using yt? Any advice helps.

Thanks,
GB 



On 2 Nov 2014, at 17:09, Suoqing JI <suoqing@physics.ucsb.edu> wrote:

Hi Prof. Zhao,



Best wishes,
--
Suoqing JI
Ph.D Student
Department of Physics
University of California, Santa Barbara
CA 93106, USA


On Nov 2, 2014, at 1:00 AM, Gongbo Zhao <gong-bo.zhao@port.ac.uk> wrote:

Hi all,

I am trying to create a fly-through movie for my ENZO data (similar to those millennium simulation movies). Has anyone does this using yt? I understand that this probably can be done by tweaking the parameters for the camera, but am not sure how to do it exactly.

Many thanks in advance,
GB
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org