[vtkusers] update,interact and render in different threads
Antonio Fortino
thoniorf at gmail.com
Wed Dec 28 11:59:13 EST 2016
Hello to everyone,
I'm trying to develop a simple example that update the celldata of a
polydata in a thread while rendering in the main thread.
My final goal is to interact with the scene, and pause the updates.
To archive this i'm using a simple mutex and a boolean.
However it seams that i'm trying to access the render for two different
threads, and the mutex isn't enough, because when interacting with the
scene errors like the one below appears, and at random the program stops
with a segmentation.
vtkOpenGLPolyDataMapper (0x1b62980): failed after UpdateShader 1 OpenGL
errors detected
0 : (1282) Invalid operation
I attach the code, any help is very appreciated.
Best regards
Antonio Fortino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161228/ff5f9fa1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ThreadedColorCellsWithRGB.cxx
Type: text/x-c++src
Size: 4871 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161228/ff5f9fa1/attachment.cxx>
More information about the vtkusers
mailing list