[vtkusers] Getting back OpenGL Context after data display/visualization using VTK
Aashish Chaudhary
aashish.chaudhary at kitware.com
Thu Mar 8 12:29:42 EST 2012
On Thu, Mar 8, 2012 at 11:36 AM, Rudra Poudel <emailrudra at yahoo.com> wrote:
> Hi All,
>
> - My application has Frame Buffer Object (FBO) for off-screen rendering (
> I used GLUT to init OpenGL Context- i.e. trick of invisible GLUT window)
> - When I display/visualize data using VTK function/class as obviously it
> take-over/create-new OpenGL context
> - Then I delete all VTK related functions/classes
> - Now when I tried to work with FBO it does-not-work/has-invalid-state.
>
Since the FBO is created in different context you cannot use it in your
glut context unless you created a shared FBO. It is bit tricky but doable.
>
> Questions,
> 1. What is the best/easiest solution to get back OpenGL Context after data
> display/visualization using VTK?
>
> 2. Might be building VTK without OpenGL support- however this looks
> impossible or ...?
>
If you are using VTK for data filtering, sources then you can build your
app where rendering is done only by your code obviously widget's wont work
then.
>
> Thank you so much,
> Rudra
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120308/9cf68c93/attachment.htm>
More information about the vtkusers
mailing list