[vtkusers] OpenGL with VTK

Rocco Gasteiger post at rocco-gasteiger.de
Mon May 7 07:04:48 EDT 2012


Hello Rakesh,

 

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.

 

Cheers, Rocco

 

 

 

Von: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] Im Auftrag
von rakesh patil
Gesendet: Montag, 7. Mai 2012 10:29
An: Hellice
Cc: vtkusers at vtk.org
Betreff: Re: [vtkusers] OpenGL with VTK

 

Thanks Hellice

 

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..??

 

Thanks

 

Regards

Rakesh Patil

 

On Fri, May 4, 2012 at 6:53 PM, Hellice <saouli-abdelhak at hotmail.com> wrote:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingCon
text
tyr to see what yoiu can get from that code example if you found more plz
post it here

--
View this message in context:
http://vtk.1045678.n5.nabble.com/OpenGL-with-VTK-tp5685633p5685857.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120507/c5ada869/attachment.htm>


More information about the vtkusers mailing list