Thanks Rocco,<div><br></div><div>I have taken the same approach. But was little bit confused. The procedure (Pipeline) will remain same right? So I'll pass the polydata object to derived mapper and then write the rendering code, and set this mapper to a normal actor. Am I correct? Do I have to use normal actor or an OpenGL actor..??</div>
<div><br></div><div>Thanks</div><div><br></div><div>Regards</div><div><br><div><br><div class="gmail_quote">On Mon, May 7, 2012 at 4:34 PM, Rocco Gasteiger <span dir="ltr"><<a href="mailto:post@rocco-gasteiger.de" target="_blank">post@rocco-gasteiger.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="DE" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hello Rakesh,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Yes you can! ;-) You can use OpenGL rendering calls in the "Render"-function of a derived Mapper class. For example, you can derive your own MyPolyDataMapper from vtkOpenGLPolyDataMapper class (or vtkPolyDataMapper) to render polydata in a given vtk render window. In the "Render"-function you place your own OpenGL-Code, e.g., display lists, VBO calls, shader programs. Be sure to initialize all things properly before you call the rendering. In doing so, you can use all OpenGL possibilities because you are responsible for rendering the input dataset...not VTK anymore.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers, Rocco<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] <b>Im Auftrag von </b>rakesh patil<br>
<b>G</b></span><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">esendet:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Montag, 7. Mai 2012 10:29<br>
<b>An:</b> Hellice<br><b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br><b>Betreff:</b> Re: [vtkusers] OpenGL with VTK<u></u><u></u></span></p></div><div><div class="h5"><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">Thanks Hellice<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">In that example, VTK objects are rendered in OpenGL context. What I am looking is to use OpenGL code in VTK and render in vtk's rendering window. Is that possible..??<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Regards<u></u><u></u></p></div>
<div><p class="MsoNormal">Rakesh Patil<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Fri, May 4, 2012 at 6:53 PM, Hellice <<a href="mailto:saouli-abdelhak@hotmail.com" target="_blank">saouli-abdelhak@hotmail.com</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext</a><br>tyr to see what yoiu can get from that code example if you found more plz<br>
post it here<br><br>--<br>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/OpenGL-with-VTK-tp5685633p5685857.html" target="_blank">http://vtk.1045678.n5.nabble.com/OpenGL-with-VTK-tp5685633p5685857.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></div></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></div></div>