<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Prof. Zhao,<div class=""><br class=""></div><div class="">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.]</div><div class=""><br class=""></div><div class="">Best wishes,</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Suoqing JI</div><div class="">Ph.D Student</div><div class="">Department of Physics</div><div class="">University of California, Santa Barbara</div><div class="">CA 93106, USA</div></div></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Nov 3, 2014, at 12:20 AM, Gongbo Zhao <<a href="mailto:gong-bo.zhao@port.ac.uk" class="">gong-bo.zhao@port.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div class="">Thanks Suoqing. I have actually seen those scripts. But I am still struggling to figure out how to do a movie like this,</div><div class=""><br class=""></div><div class=""><a href="http://www.mpa-garching.mpg.de/galform/data_vis/millennium_flythru.avi" class="">http://www.mpa-garching.mpg.de/galform/data_vis/millennium_flythru.avi</a></div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">GB </div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class=""><div class="">On 2 Nov 2014, at 17:09, Suoqing JI <<a href="mailto:suoqing@physics.ucsb.edu" class="">suoqing@physics.ucsb.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Prof. Zhao,<div class=""><br class=""></div><div class="">Yes — you might find this example useful: <a href="http://yt-project.org/doc/cookbook/complex_plots.html#cookbook-camera-movement" class="">http://yt-project.org/doc/cookbook/complex_plots.html#cookbook-camera-movement</a></div><div class=""><br class=""></div><div class="">Also, here is the description of Camera.move_to: <a href="http://yt-project.org/doc/reference/api/generated/yt.visualization.volume_rendering.camera.Camera.move_to.html" class="">http://yt-project.org/doc/reference/api/generated/yt.visualization.volume_rendering.camera.Camera.move_to.html</a></div><div class=""><br class=""></div><div class="">Best wishes,</div><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div class="">--</div><div class="">Suoqing JI</div><div class="">Ph.D Student</div><div class="">Department of Physics</div><div class="">University of California, Santa Barbara</div><div class="">CA 93106, USA</div></div></div></div></div>
</div><div class=""><br class="webkit-block-placeholder"></div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 2, 2014, at 1:00 AM, Gongbo Zhao <<a href="mailto:gong-bo.zhao@port.ac.uk" class="">gong-bo.zhao@port.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi all,<br class=""><br class="">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. <br class=""><br class="">Many thanks in advance,<br class="">GB<br class="">_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div></body></html>