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.]
-- 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 firstname.lastname@example.org 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.
On 2 Nov 2014, at 17:09, Suoqing JI <email@example.com mailto:firstname.lastname@example.org> wrote:
Hi Prof. Zhao,
Yes — you might find this example useful: http://yt-project.org/doc/cookbook/complex_plots.html#cookbook-camera-moveme... http://yt-project.org/doc/cookbook/complex_plots.html#cookbook-camera-moveme...
Also, here is the description of Camera.move_to: http://yt-project.org/doc/reference/api/generated/yt.visualization.volume_re... http://yt-project.org/doc/reference/api/generated/yt.visualization.volume_re...
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 <email@example.com mailto:firstname.lastname@example.org> wrote:
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 email@example.com mailto:firstname.lastname@example.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org