[yt-users] Volume rendering issues
Mike Butler
butler85 at astro.ufl.edu
Thu Oct 14 13:59:24 PDT 2010
Hello,
I am trying to make a movie of my data using the off-axis projection
recipe in the cookbook. The idea of what I am trying to do is make a 3D
movie of my data rotating around an axis. The script itself is located
at the end of the email. When 'n' is 0, the projection looks normal, but
when L should be [0.1,0.5,1.0] and for the following steps, I get images
that look like this:
http://www.astro.ufl.edu/~butler85/images/frame_0001.png which has what
looks like strange bars running across it. Thanks in advance for any
help/suggestions.
-Mike
for n in range(11):
...: pf=load("Cloud_128AMR4StarsFUV_0101")
...: tf=vr.ProjectionTransferFunction()
...: pf.field_info["Density"].take_log=False
...: c = [0.5,0.5,1.0]
...: L=[n*0.1,0.5,1.0]
...: W=0.8
...: Nvec = 512
...: vp=pf.h.volume_rendering(L,W,c,Nvec,tf,whole_box=True)
...: vp.ray_cast()
...: image=na.log10(vp.image[:,:,0])
...: iw.write_image(image,fn % (n))
More information about the yt-users
mailing list