[vtkusers] python-vtk volume rendering issue

Robert Thompson rthompson at physics.unlv.edu
Sun Jan 26 14:48:39 EST 2014


Hi everyone,

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:

http://i.stack.imgur.com/6vjM9.png

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).

~900kb:
https://dl.dropboxusercontent.com/u/6920345/VTKquestion.tar.gz

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!

-Robert Thompson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140126/2b2693b8/attachment.html>


More information about the vtkusers mailing list