<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi folks,</div><div><br></div><div>I'm doing some simple volume rendering, with the end goal to make a movie looking at the central object from a bunch of different angles (just going around in a circle).  When I do the script below, some of the images are rotated 90 degrees from the others -- that is, the correct viewing direction, but just rotated clockwise 90 degrees.  Any thoughts why that would be happening?</div><div><br></div><div>Cheers,</div><div><br></div><div>Andrew</div><div><br></div><div>tf=ColorTransferFunction((mi,ma))</div><div>tf.add_layers(6,w=0.02)</div><div>v,c=pf.h.find_max("Density")</div><div>W = 0.01/pf['pc']</div><div>Nvec=512</div><div>for i in range(200):</div><div>   dy=4.*math.pi/199.</div><div>   theta = i * dy</div><div>   yval = math.cos(theta)</div><div>   xval = math.sin(theta)</div><div>   L=[xval,yval,0.]</div><div>   vp=pf.h.volume_rendering(L,W,c,Nvec,tf,whole_box=True)</div><div>   vp.ray_cast()</div><div>   write_bitmap(vp.image,"VolTest_%03d.png" % i)</div><div><br></div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>*************************************************************<br>**  Andrew J. Davis             <a href="mailto:andrew.davis@yale.edu">andrew.davis@yale.edu</a>      **<br>**  Dept. of Astronomy          203-432-5119                      **<br>**  Yale University             <a href="http://www.astro.yale.edu/adavis">www.astro.yale.edu/adavis</a>   **<br>*************************************************************</div></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>