[vtkusers] QVTKRenderWindowInteractor distorted widget background problem + dot representation of spheres when rotating.
Piotr Byzia
piotr.byzia at gmail.com
Wed Sep 30 10:16:28 EDT 2009
Hi,
I'm using QVTKRenderWindowInteractor to embed VTK window within
QMainWindow (using PyQt) and encountered a strange problem (see
attachment or http://media.piotr.byzia.pl/vtk-distorted-widget.png)
under Windows XP box (VTK 5.4).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.jpeg
Type: image/jpg
Size: 48646 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090930/5694a525/attachment.jpg>
-------------- next part --------------
This happens just after widget is launched.
widget = QVTKRenderWindowInteractor(self)
widget.setGeometry(QtCore.QRect(22, 42, 400, 427))
widget.GetRenderWindow().SetSize(400,427)
ren = vtk.vtkRenderer()
ren.SetBackground(0, 0, 0) # black
==================================
Another question is related to the change in representation from
spheres to dots when rotating a set of actors (about 300 spheres). It
differs from machine to machine but it occurs on most of them.
Rotating is smooth and without switching to dots on more powerful
machines, so I guess this has something to do with the 3D acceleration?
Is it a known behavior?
On what parameters / CPU / RAM / graphics cards does it depend on
exactly?
How could I improve it with about 1500-2000 spheres-actors?
Regards,
Piotr Byzia
More information about the vtkusers
mailing list