<div class="gmail_quote">On Thu, Mar 8, 2012 at 11:36 AM, Rudra Poudel <span dir="ltr"><<a href="mailto:emailrudra@yahoo.com">emailrudra@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><div><font face="'times new roman', 'new york', times, serif">Hi All, </font></div><div><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div><span style="font-family:'times new roman','new york',times,serif">- 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) </span><br>
</div><div><font face="'times new roman', 'new york', times, serif">- When I display/visualize data using VTK function/class as obviously it take-over/create-new OpenGL context </font></div><div><font face="'times new roman', 'new york', times, serif">- Then I delete all VTK related functions/classes</font></div>
<div><font face="'times new roman', 'new york', times, serif">- Now when I tried to work with FBO it
does-not-work/has-invalid-state. </font></div></div></div></div></blockquote><div><br></div><div>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. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><div><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div><font face="'times new roman', 'new york', times, serif">Questions, </font></div><div><font face="'times new roman', 'new york', times, serif">1. What is the best/easiest solution to get back OpenGL Context after data display/visualization using VTK? </font></div>
</div></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">
<div><div><font face="'times new roman', 'new york', times, serif">2. Might be building VTK without OpenGL support- however this looks impossible or ...? </font></div></div></div></div></blockquote><div><br>
</div><div>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. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">Thank you so much, </font></div>
<span class="HOEnZb"><font color="#888888"><div><font face="'times new roman', 'new york', times, serif">Rudra</font></div></font></span></div></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a> <br>