[vtkusers] VTK in a MultiTouch Environment
Christopher Denter
dennda at the-space-station.com
Tue Oct 20 14:37:03 EDT 2009
Hello again,
after your last helpful reply we (that includes the two PyMT main
developers and me) tried to integrate VTK with PyMT somehow. We made
some progress, but now we need your help again.
First we just tried to do what you, David, pointed out: See http://paste.pocoo.org/show/146039/
Now this always fills the entire PyMT window. We only got that working
on linux and windows. Pymt uses Pyglet, which in turn uses Carbon on
OSX. (Here we could not find a proper method to extract the window ID.
See [0] for a more detailed description of this problem.)
While I could somehow live without OSX support and work around the
problem that arises from VTK's full-window filling habit (by zooming
out and drawing the UI elements with PyMT 'above' the VTK rendering),
we were unable to draw anything above the VTK renderings.
So what we tried next was to render VTK into a framebuffer object,
which would even allow us to rotate and resize the VTK rendering
inside the PyMT window and draw other GUI elements above the VTK
rendering.
Unfortunately we were unable to make VTK render into a FBO. We tried
transforming the Cone example into something like this: http://paste.pocoo.org/show/146030/
(Scroll down)
The result of that code is a segmentation fault.
So the main question is: How can we make VTK render into a FBO?
Berk, I will keep you updated if this project works out.
In the hope that you can again help me out,
Christopher
[0] http://groups.google.com/group/pyglet-users/browse_thread/thread/968f235b70efb8b7
More information about the vtkusers
mailing list