[vtkusers] more on GtkGLExtVTKRenderWindowInteractor
Mathieu Malaterre
Mathieu.Malaterre at creatis.insa-lyon.fr
Mon Oct 20 07:41:05 EDT 2003
Jed Haile wrote:
> Hi,
>
> I'm still working on the rendering problem with
> GtkGLExtVTKRenderWindowInteractor.py on Mac OSX. I have found that if I
> comment out:
> self._RenderWindow.SetWindowInfo(win_id)
>
> This forces the rendering to happen in its own window, and everything is
> correct. Otherwise, as I described previously, objects appear to be
> rendered inside out, and do not change size when the model is rotated,
> and there are other problems with perspective. It seems the problem is
> somehow related to the window being embedded in gtk. Any ideas why?
>
> Thanks,
> Jed
Jed,
First of all I am not an expert in MacOSX. But I have been working on a
similar problem. I have written a wxWindow-VTK bridge:
http://www.creatis.insa-lyon.fr/~malaterre/wxVTK/
And recently, I decided to -blindly- add support for MacOSX. With the
help of a wxWindow-Mac developper I tried hacking my code to support
Mac. Download the archive, you'll find a file
src/wxVTKRenderWindowInteractor.cxx
look for method: wxVTKRenderWindowInteractor::GetHandle()
it should help you.
Basically what I do is:
- create a window through wxWindow
- get the handle to that window (GetHandle() method)
- ask VTK to render in the particular window (instead of creating
another one).
HTH
mathieu
More information about the vtkusers
mailing list