<div dir="ltr">Dear Robert, <div><br></div><div>Have you tried different datasets? Also, what version of VTK you are using (and what OS?). If no one beats me to it, I will have </div><div>a look at the test data in next 1-2 days.</div>
<div><br></div><div>Thanks,</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 26, 2014 at 2:48 PM, Robert Thompson <span dir="ltr"><<a href="mailto:rthompson@physics.unlv.edu" target="_blank">rthompson@physics.unlv.edu</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">Hi everyone,<div><br></div><div>I'm having an odd issue volume rendering data with python-vtk. Everything seems to work fine when I use an isolated script, but when I try and implement the vtk calls in a function/class it produces some odd results. From what I can tell everything is happening in the same order between the two methods, but as you can see by this pic they don't come close to matching:</div>
<div><br></div><div><a href="http://i.stack.imgur.com/6vjM9.png" target="_blank">http://i.stack.imgur.com/6vjM9.png</a></div><div><br></div><div>I've uploaded a small dataset & the scripts I am using to produce the two above plots. The link below contains two scripts: n2vtk.py is the isolated rendering call (left pic), and volume.py is the script calling classes & methods from newvisualizer.py which produces the weird results (right pic).</div>
<div><br></div><div>~900kb:</div><div><a href="https://dl.dropboxusercontent.com/u/6920345/VTKquestion.tar.gz" target="_blank">https://dl.dropboxusercontent.com/u/6920345/VTKquestion.tar.gz</a></div><div><br></div><div>I've rendered point particles, spheres, and text with the method shown in newvisualizer.py before with great success so I'm not sure why the volume rendering is behaving differently. Any help would be greatly appreciated!</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>-Robert Thompson</div></font></span></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a>
</div>