[yt-users] volume rendering

Nathan Goldbaum nathan12343 at gmail.com
Sat Mar 29 09:04:57 PDT 2014


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 <javascript:;>
> 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/8fbae712/attachment.htm>


More information about the yt-users mailing list