<div dir="ltr">OK, it's good to know about pf.h.projection_camera. That works for me.<div><br></div><div>I knew about off_axis_projection as well, but I had been using camera, since it allowed me to do 3 projections simultaneously (as long as they were unweighted). This functionality seems to have disappeared from ProjectionCamera, which only accepts a single field, not a list of fields. That's too bad, but definitely not a show stopper.<div>
<br></div><div style>Thanks for the help.</div><div style><br></div><div style>Mike</div><div style><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 22, 2013 at 1:58 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There's also OffAxisProjectionPlot, which wraps off_axis_projection, presenting an interface that is identical to the other plot window plotting routines.<br>

<br>
It would be great if there were a true off axis projection data object, it would be much easier to integrate OffAxisProjectionPlot with the other plot window routines.<br>
<div class="HOEnZb"><div class="h5"><br>
On Jan 22, 2013, at 1:55 PM, Matthew Turk wrote:<br>
<br>
> Hi Mike,<br>
><br>
> On Tue, Jan 22, 2013 at 4:25 PM, Michael Kuhlen <<a href="mailto:mqk@astro.berkeley.edu">mqk@astro.berkeley.edu</a>> wrote:<br>
>> Hi all<br>
>><br>
>> I'm not having any success with off-axis projections using the pf.h.camera()<br>
>> with AMRKDTree and ProjectionTransferFunction(). cam.snapshot() returns an<br>
>> all-zeros array, even in situations where ColorTransferFunction() produces<br>
>> great images.<br>
>><br>
>> This script (based on the first part of amrkdtree_downsampling.py)<br>
>> demonstrates the problem: <a href="http://paste.yt-project.org/show/3072/" target="_blank">http://paste.yt-project.org/show/3072/</a><br>
>><br>
>> Any ideas what's going wrong? Maybe something to do with preventing the<br>
>> log'ing of the field, which I  attempted to do with<br>
>> "pf.field_info['Density'].take_log=False"?<br>
><br>
> Last Summer, during the course of the threading of the volume<br>
> renderer, the camera class was split up into a couple different<br>
> things.  You should be able to get exactly what you're looking for by<br>
> using projection_camera instead of camera.  The function<br>
> off_axis_projection will also work for this purpose.<br>
><br>
> Something I think could be improved is to make the off-axis projection<br>
> functionality much more distinct from the volume rendering; this would<br>
> allow, among other things, the ability to specify a data object rather<br>
> than a kD-tree volume for the off axis projection.  I think this would<br>
> be a big improvement, since unlike the volume rendering, off-axis<br>
> projections are unordered and can thus be trivially masked.  Cameron<br>
> is working on a YTEP to the effect of improving the volume rendering<br>
> API, and this should probably be a part of that.<br>
><br>
> -Matt<br>
><br>
>><br>
>> Thanks for you help!<br>
>><br>
>> Mike<br>
>><br>
>> --<br>
>> *********************************************************************<br>
>> *                                                                   *<br>
>> *  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *<br>
>> *  email: <a href="mailto:mqk@astro.berkeley.edu">mqk@astro.berkeley.edu</a>   UC Berkeley                      *<br>
>> *  cell phone: <a href="tel:%28831%29%20588-1468" value="+18315881468">(831) 588-1468</a>      B-116 Hearst Field Annex # 3411  *<br>
>> *  skype username: mikekuhlen      Berkeley, CA 94720               *<br>
>> *                                                                   *<br>
>> *********************************************************************<br>
>><br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>*********************************************************************<br>*                                                                   *<br>*  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *<br>
*  email: <a href="mailto:mqk@astro.berkeley.edu" target="_blank">mqk@astro.berkeley.edu</a>   UC Berkeley                      *<br>*  cell phone: (831) 588-1468      B-116 Hearst Field Annex # 3411  *<br>*  skype username: mikekuhlen      Berkeley, CA 94720               *<br>
*                                                                   *<br>*********************************************************************<br>
</div>