helvinlui at gmail.com
Wed Jul 8 19:10:37 EDT 2009
On Jul 8, 9:23 pm, Phil Thompson <p... at riverbankcomputing.com> wrote:
> On Wed, 08 Jul 2009 11:11:51 +0200, "Diez B. Roggisch"
> <de... at nospam.web.de>
> > Helvin wrote:
> >> Hi experts!
> >> I'm developing a GUI for a software using PyQT, and need 3D
> >> visualization. Should I use PyOpenGL or VTK?
> >> I understand that the PyQt package comes with a opengl module. What
> >> else would I need? I think I need to download opengl. but how? where?
> >> I have VTK and pyVTK installed, but I don't know how to use it in my
> >> code, as when I run it, an error says it can't find the vtk module.
> > VTK won't mix with Qt. And I don't think you need to download opengl - it
> > either comes with your system (or gfx-drivers), or not. I'm not sure if
> > actually wraps the OpenGL api itself, AFAIK it doesn't, so you need
> > PyOpenGL I guess.
> VTK has explicit support for both Qt (ie. via C++) and PyQt.
Thanks for the fast replies! I will look into how to use VTK now.
Where would I find VTK's explicit support for PyQt?
Because I have installed VTK (using its installer) and pyVTK (using
its setup.py file), but how do I actually use it in my code? According
I have tried 'import vtk', but python can't find the vtk module.
Thanks a million!
More information about the Python-list