One possibility is to listen to the EndRender event fired by the vtkRenderWindow (or vtkRenderer) and then make OpenGL calls in the callback.<br><br>Utkarsh<br><br><div class="gmail_quote">On Wed, Jun 11, 2008 at 7:35 AM, Rishabh Kapoor <<a href="mailto:kapoorrishabh@gmail.com">kapoorrishabh@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi all.</div>
<div> </div>
<div>Is there a way in vtk in which I can execute opengl commands in the vtk renderer. we have code written in opengl and now we want to use vtk . So is there a way in which we can combine the two to render the scene. I mean render both vtk and opengl commands in the same window.</div>
<div> </div>
<div>Thanks..<br clear="all"><br>-- <br>Rishabh Kapoor<br>Medical Physics Consultant<br>202 Ashok Bhavan <br>93 Nehru Place<br>New Delhi 110019 <br>Ph. +91-11-26423266, +91-11-26420136. <br>Mobile: 9910772490<br>EMail: <a href="mailto:tsgintegrations@gmail.com" target="_blank">tsgintegrations@gmail.com</a><br>
Web: <a href="http://www.tsgintegrations.com" target="_blank">www.tsgintegrations.com</a> </div>
<br>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><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>