Closed GoogleCodeExporter closed 9 years ago
Original comment by cpbotha
on 25 Jul 2008 at 10:47
Might be because wxVTK is using a wxGLCanvas, while in wx2.8 one need to use a
wxWindow as parent class.
ref:
http://wxvtk.sf.net
Original comment by mathieu.malaterre
on 30 Jul 2008 at 11:22
Hi there Mathieu!
Thanks for the information. When I was diagnosing the problem, I tried simply
replacing the wxGLCanvas with a wxWindow and was rewarded with a grey Window,
iow no
3D display.
I'll try it again and also look at your wxvtk source.
Thanks again,
Charl
Original comment by cpbotha
on 30 Jul 2008 at 11:27
I've tried again with using the wxWindow as base: the window starts without
contents
(grey). As soon as I click in it, it does render, and it doesn't flicker.
Thanks for
the tip Mathieu! :)
I'm going to stick with wxPython 2.8.7.1 for now, until I have time to diagnose
and
fix the no-display-on-window-creation issues.
Original comment by cpbotha
on 31 Jul 2008 at 8:41
I've debugged some more (hard to stop): it turns out it does draw the scene
exactly
once, and that's then overpainted by the grey (probably the wxWindow client
area?)
Resizing to fullscreen also has issues.
Original comment by cpbotha
on 31 Jul 2008 at 8:49
Mind dump: I've been going through the wxVTK code. In wxVTKRWI.py, you're
doing an
extra render in OnSize, which has been disabled in wxVTK. See if this makes a
difference.
Original comment by cpbotha
on 31 Jul 2008 at 9:04
To get rid of flickering, you may want to read this:
http://dev.vladiuz.com/index.php/2008/06/flicker-free-wxdc-in-wxpython/
Original comment by Vlad.Kho...@gmail.com
on 5 May 2009 at 8:25
@Vlad.Khokholkov: Thanks for the tip, but that was not the problem in this case
(although it is related). :)
In this case, it had to do with changes in the WX allocation of the GL context
to
which VTK is rendering. It was fixed between VTK 5.2 and 5.4 (by Chris
Kruszynski)
by allocating the GL context with the WX_GL_DOUBLEBUFFER flag.
Thanks also for reminding me to close this bug!
Original comment by cpbotha
on 5 May 2009 at 9:03
Original issue reported on code.google.com by
cpbotha
on 25 Jul 2008 at 10:47