[vtkusers] invalid drawable ; Mac OSX Mavericks and vtk 6.1
Kim Rosenbohm
kim.rosenbohm at posteo.de
Tue Jul 29 03:51:30 EDT 2014
Hi.
I do this (using Windows and Qt) by deriving from QVTKWidget2,
overwriting the ShowEvent() in that class and sending a signal from
that event function.
Then, In the slot that is called, do your setup,
e.g. AddRenderer and initializing the interactors...
Hope that
helps,
Kim
Am 29.07.2014 00:03 schrieb Totte Karlsson:
> Hello,
> I
have some vtk code that works fine under windows and linux. I have
tried
> to port this code to the Mac. Originally I used vtk 5.10 and the
first
> problem I detected was a 'invalid drawable' error occurring.
>
> Googling around, many people have observed the 'invalid drawable'
problem. I
> thought it would be a problem fixed in vtk 6.1, so I
updated my code to use
> 6.1. However, I now see the problem is still
present in 6.1.
>
> I have code that allow the user to do some window
interaction, and press
> 'e', for exit, and then, 'restart' the
interaction mode. This seem to
> trigger the 'invalid drawable' error.
>
> For me this is a show stopper and I have not yet seen any solution
to this
> problem.
>
> There are suggestions on the vtk wiki to
'restructure the code' to 'make the
> window visible' prior to
rendering.
> http://www.vtk.org/Wiki/VTK/OpenGL_Errors [1]) . But there
is no explanation on
> that page what that means? Anyone knowing?
>
>
The other two bullets on that page are to no help either I am afraid.
I
> can't ignore the error by the cmake variable. There seem not to be
any need
> to detect the 'invalid drawable' condition, since I don't
know what to do at
> that point to make it valid.
>
> What seem to be
needed is to create a state of 'valid drawable'. Question is
> how to do
that.
>
> Any help appreciated. I suppose this must bite many mac
people.
>
> tk
>
> --
> View this message in context:
http://vtk.1045678.n5.nabble.com/invalid-drawable-Mac-OSX-Mavericks-and-vtk-6-1-tp5727997.html
[2]
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
_______________________________________________
> Powered by
www.kitware.com [3]
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html [4]
>
> Please keep
messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ [5]
>
> Follow this link to
subscribe/unsubscribe:
>
http://public.kitware.com/mailman/listinfo/vtkusers [6]
--
Kim
Rosenbohm, Barfüßerstr. 7, 37073 Göttingen, 0163/8723172
Links:
------
[1] http://www.vtk.org/Wiki/VTK/OpenGL_Errors
[2]
http://vtk.1045678.n5.nabble.com/invalid-drawable-Mac-OSX-Mavericks-and-vtk-6-1-tp5727997.html
[3]
http://www.kitware.com
[4]
http://www.kitware.com/opensource/opensource.html
[5]
http://www.vtk.org/Wiki/VTK_FAQ
[6]
http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140729/c7d9287a/attachment.html>
More information about the vtkusers
mailing list