[vtkusers] VTK and QML
Olivier COMAS
ocomas at apelem.com
Wed Feb 3 04:30:41 EST 2016
Hi Max,
I don't know about Android. I was replying about the OpenGL2 render
backend and QML as asked by Att. If the option
Module_vtkRenderingExternal is not available for Android maybe someone
at Kitware can explain why and suggest workarounds. In the header of
vtkExternalOpenGLRenderWindow we have the following:
"This class extends vtkGenericOpenGLRenderWindow to allow sharing the
same OpenGL context by various visualization applications. Basically,
this class prevents VTK from creating a new OpenGL context. Thus, it
requires that an OpenGL context be initialized before Render is called."
It clearly states that it prevents VTK from creating a new OpenGL
context. Which is probably not the case with the other classes and it
makes things more complicated with Qt. There is probably a way to make
things work but I don't know how.
Good luck.
O.
Le 03/02/2016 10:22, Max-Heinrich Laves a écrit :
> Hi Oliver,
>
> just after pressing 'send', I realised you are comaso on GitHub ;-)
>
> When building VTK for x86, you can enable the external rendering
> module with 'Module_vtkRenderingExternal=ON' which gives access to
> vtkExternalOpenGLRenderWindow class. Unfortunately, this option is not
> available when building for Android, so subclassing
> vtkGenericOpenGLRenderWindow seems to be necessary. Or am I wrong?
>
> Thanks,
> Max
>
> 2016-02-03 10:07 GMT+01:00 Olivier COMAS <ocomas at apelem.com
> <mailto:ocomas at apelem.com>>:
>
> Hi Max,
>
> I'm comaso on GitHub ;-)
>
> There's probably nothing wrong with your own fork, I just meant
> that the original repository had comments discussing the OpenGL2
> render backend. Let me know if you had troubles understanding how
> I made it work. I was reporting my progress while I was working on
> it so you have to put the pieces together by reading all comments.
>
> Cheers,
>
> Olivier
>
>
> Le 03/02/2016 09:39, Max-Heinrich Laves a écrit :
>> Hi Oliver,
>>
>> sorry, that was my own fork on Github. I'll have a look at the
>> comments by comaso. He/she seems to have it running with OpenGL2
>> render backend.
>>
>> Thanks!
>> Max
>>
>> 2016-02-03 9:34 GMT+01:00 Olivier COMAS <ocomas at apelem.com
>> <mailto:ocomas at apelem.com>>:
>>
>> Hi guys,
>>
>> Look at this page instead:
>> https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6. The
>> one Max gave was forked from it. Not sure what are the
>> differences but look at the comments below the link I just
>> provided. There is some discussion about the OpenGL2 render
>> backend. I managed to make it work and I put in the comments
>> how I did it (comaso).
>>
>> Hope this helps.
>>
>> Olivier
>>
>>
>> Le 03/02/2016 08:38, Max-Heinrich Laves a écrit :
>>> Hi Att,
>>> I was and am still looking for the same, especially VTK+QML
>>> on Android. The only thing I found was
>>> https://gist.github.com/the-max0r/35fb43ac43c6e18666c5
>>> Unfortunately, when compiled with v7.0.0 (release) and
>>> OpenGL2 as render backend, the code segfaults at
>>> glBlendFuncSeparate in vtkOpenGLRenderWindow.cxx at line
>>> 373. With VTK 6.3.0 or 7.0 with OpenGL as render backend,
>>> the code runs as expected. But OpenGL2 is needed when
>>> compiled for Android.
>>>
>>> Max
>>>
>>> 2016-02-03 2:01 GMT+01:00 Lays Rodrigues
>>> <laysrodriguessilva at gmail.com
>>> <mailto:laysrodriguessilva at gmail.com>>:
>>>
>>> Hi guys,
>>> There's a way to bind VTK and QML?
>>> I really would like to use VTK on an app that I'm
>>> working for, but don't find any information about this
>>> kind of bind.
>>> Any tips about it?
>>>
>>> Att
>>>
>>> --
>>> --
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com <http://www.kitware.com>
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Search the list archives at:
>>> http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Powered bywww.kitware.com <http://www.kitware.com>
>>>
>>> Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Search the list archives at:http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com <http://www.kitware.com>
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at:
>> http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>>
>>
>> _______________________________________________
>> Powered bywww.kitware.com <http://www.kitware.com>
>>
>> Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at:http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
> _______________________________________________
> Powered by www.kitware.com <http://www.kitware.com>
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160203/5db71c56/attachment.html>
More information about the vtkusers
mailing list