[yt-users] volume rendering

Renyue Cen cen at astro.princeton.edu
Sat Mar 29 09:47:09 PDT 2014


Hi Nathan (and John),

with "yt instinfo" I got 
8dce70a9c689

I was not very clear in my previous email. Here is a somewhat clearer description:

If I just use: volume = AMRKDTree(pf,fields=["Density"],no_ghost=False)
then code does not complain about this AMRKDTree call anymore, but the subsequent call
                   cam = pf.h.camera(c, L, W, (N,N), tf, volume=volume, no_ghost=False, north_vector=Ldm,steady_north=True)
appears to take forever to run.

On the other hand, if I use (I made sure the c and WW are sensible numbers):
                    volume = AMRKDTree(pf, le=c-0.5*WW,re=c+0.5*WW, fields=["Density"], no_ghost=False)
then I don't seem to pass this statement, because a print line following it does not get executed.

Thanks very much,
Renyue


> Hi Renyue,
> 
> Which version of yt are you running?  If you installed using the install script, the output of 'yt instinfo' run on the command line should be suffieicebt to figure out exactly which version you are using.
> 
> You may have to directly import AMRKDTree from yt.visualization.volume_rendering.api, although I believe it is still imported into yt.mods in the current stable release of yt.
> 
> Nathan
> 
> On Saturday, March 29, 2014, Renyue Cen <cen at astro.princeton.edu> wrote:
> Hi folks,
> 
> Some time ago John Wise kindly gave me a yt script that uses AMRKDTree to speed up "camera" 3-d
> rendering, it worked very well and fast (takes like a few minutes to do a rendering of a galaxy with 2048x2048 pixel).
> It looks like
> 
> volume = AMRKDTree(pf,   le=le,   re=re,  fields=["Density"],   no_ghost=False)
> 
> then used in
> cam = pf.h.camera(c, L, W, (N,N), tf, volume=volume, no_ghost=False, north_vector=Ldm,steady_north=True)
> 
> It appears that yt has evolved and the "volume ..." statement no longer works.
> Is there a solution to that in the newer version?
> 
> Alternatively, is there another speedy way to do 3-d rendering?
> 
> Thanks very much,
> Renyue
> 
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140329/08d292e2/attachment.html>


More information about the yt-users mailing list