<div dir="ltr">Hi Nathan,<div><br></div><div>Thanks for your response. I tried a variety of render options and was unable to produce a 'correct' plot.  </div><div><br></div><div>First, as a sanity check I tried a simple volume rendering just to see if that would work, the important calls were:</div>


<div><br></div><div><div>mi,ma = data.quantities["Extrema"]("Density")[0]</div><div>tf = ColorTransferFunction((np.log10(mi)+1,np.log10(ma)))</div><div>tf.add_layers(5,w=0.02,colormap="spectral")</div>


<div>cam = pf.h.camera(c,L,W,N,tf,no_ghost=False)</div><div>den = cam.snapshot()</div></div><div><br></div><div>where c is centered on some particle, L is is angular momentum vector of said particle, W =[1.5e15,1.5e15,1.5e15] and N is 512. This works and gives a nice volume render.</div>


<div><br></div><div>Next I tried:</div><div><br></div><div><div>tf = ProjectionTransferFunction()</div><div>cam = pf.h.camera(c,L,W,N,tf,fields=[field],log_fields, [use_log],no_ghost=False)</div><div>den = cam.snapshot()</div>


</div><div><br></div><div>Which is the same as above except with a different transfer function. This gives a blank/black projection image. I also retried both off_axis_projection and OffAxisProjectionPlot. Both give blank images, as expected. </div>


<div><br></div><div>I am working on a test problem to see if I can reproduce this problem. If I get one working I will send it along. </div><div><br></div><div>Please let me know if there is some other info that may be of importance and if there is something else you want me to try.</div>

<div><br></div><div>-Will</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 31, 2013 at 10:57 AM, 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"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">

Hi William,</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">

Both OffAxisProjectionPlot and off_axis_projection are just wrappers around yt's volume renderer using the ProjectionTransferFunction.</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">

<br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I’m not sure why you’re not getting good data with narrow depths, but you might try again by directly calling the volume renderer.  In any case, if you see the same thing it would give us more clues to figure out what is going wrong.</div>

<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">

Also, if you have a test dataset that exhibits this behavior and you wouldn’t mind sharing, that would also be useful for us to debug this.</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">

<br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">-Nathan </div><div><div class="h5"> <div></div> <br><p style="color:#a0a0a8">On October 31, 2013 at 10:52:29 AM, William Gray (<a href="mailto://graywilliamj@gmail.com" target="_blank">graywilliamj@gmail.com</a>) wrote:</p>

 </div></div><blockquote type="cite"><span><div><div><div><div class="h5">






<div dir="ltr">Hello yt-users,
<div><br></div>
<div>I am having an issue in creating off axis projection plots
with short depths in yt. I am looking for disks around particles
which necessitates using the off axis projection functionality.
What I want to do is create a projection where the depth is the
same as or similar to the width of the plot. However, I am finding
that unless the depth is orders of magnitude larger than the width
I will always create a blank plot (for example, the width is ~100
au, the depth to get a plot has to be ~1000xwidth, I want a plot
where the width and depth are ~100 au). I have tried using both
off_axis_projection and the OffAxisProjection methods with similar
(bad) results. </div>
<div><br></div>
<div>As a comparison, I ran a low resolution FLASH simulation that
did not seem to have this problem. I also know that such a plot was
possible with ORION2 data in the recent past (spring of this year)
since a colleague was able produce such a plot. That same script
now also fails.</div>
<div><br></div>
<div>Does anyone know of a way around this problem? Has there been
any recent changes that broke volume rendering for chombo/orion2
data? </div>
<div><br></div>
<div>Thanks,</div>
<div>William Gray</div>
</div></div></div>


_______________________________________________
<br>yt-users mailing list
<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></span></blockquote></div></blockquote></div><br></div>