[vtkusers] Suse 10.1 wx + vtk flickering
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Jul 18 09:44:05 EDT 2006
Toon,
What exactly do you mean by :
> Ps.: the flickering doesn't occur when I use a vtkRenderWindow.
Could you confirm that flickering occurs directly with both
wxVTKRenderWindowInteractor.py and wxVTKRenderWindow.py (they contains a
main function).
In the past I remember having different issues with flickering, in no
particular order you have to play with:
- wxCLIP_CHILDREN
- wxNO_FULLREPAINT_ON_RESIZE
and with GTK you have to make sure to use a wxGLCanvas instead of the
regular wxWindow.
HTH
Mathieu
Ref:
http://wxvtk.sourceforge.net/
Toon Huysmans wrote:
> Hello users,
>
> Sorry for this repost, but it is a fairly annoying problem. Am I the
> only one experiencing this problem? Any ideas or comments are very much
> appreciated!
>
> Greetings,
>
> Toon.
>
> -----Oorspronkelijk bericht-----
> Van: vtkusers-bounces+denhuys=hotmail.com at vtk.org
> [mailto:vtkusers-bounces+denhuys=hotmail.com at vtk.org] Namens Toon
> Huysmans
> Verzonden: vrijdag 14 juli 2006 16:06
> Aan: vtkusers at vtk.org
> Onderwerp: [vtkusers] Suse 10.1 wx + vtk flickering
>
> Hello vtk users,
>
> I have a small application, written in python, that uses vtk and
> wxWidgets to visualize vtkpolydata. The application runs fine under
> windows xp, using the python enthought edition 2.4.3. (vtk 5.0.0 and wx
> 2.6.1.0). But when I run the same program under Suse linux 10.1, with
> the inculded python libs (vtk 5.1.0 and wx 2.6.2.1), I experience
> flickering when interacting with the renderwindow.
>
> Here is a small app to reproduce the problem:
>
> ---------------------------------------------------------
> #! /usr/bin/env python
>
> import sys
>
> from vtk import *
> from vtk.wx.wxVTKRenderWindowInteractor import *
> import wx
>
> app = wx.PySimpleApp()
> frame = wx.Frame(None,wx.ID_ANY, "test")
>
> # set up the renderwindow and renderer
> renderWidget = wxVTKRenderWindowInteractor(frame, -1)
>
> # the renderer
> renderer = vtkRenderer()
> renderWidget.GetRenderWindow().AddRenderer(renderer)
>
> # the surface
> obj = vtkConeSource()
> obj.SetResolution(50)
>
> objMapper = vtkPolyDataMapper()
> objMapper.SetInput(obj.GetOutput())
>
> objActor = vtkActor()
> objActor.SetMapper(objMapper)
>
> renderer.AddActor(objActor)
>
> app.MainLoop()
> ---------------------------------------------------------
>
> What is going wrong?
> I have read several posts about this topic from a couple of years ago
> but didn't get any wiser.
>
> Ps.: the flickering doesn't occur when I use a vtkRenderWindow.
>
> Regards,
>
> Toon Huysmans
>
>
> Postal Address:
> Vision Lab, Department of Physics
> University of Antwerp (CDE)
> Universiteitsplein 1 (N1.19)
> B-2610 Antwerp, Belgium
> Tel: +32 (0) 3 820 24 72
> Fax: +32 (0) 3 820 22 45
> Email: toon.huysmans at ua.ac.be
> Web: http://webhost.ua.ac.be/visielab/staff/tohu/
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list