[vtkusers] New Wiki Example: RenderPassExistingContext

Bryn Lloyd lloyd at itis.ethz.ch
Thu Jun 9 04:57:59 EDT 2011


Hi all

 

I have added an example which simulates using VTK to render into an existing
OpenGL context (with existing camera/lights, opaque objects).

 

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingCon
text

 

Motivation:

This could be useful for projects, which have an existing rendering system,
but would like to use VTK to easily render things not available in the
existing rendering system, e.g. volume rendering, streamline tracing, etc.
Or it might be useful if VTK is used already for data processing, but needed
to be converted to local data structures to render using the existing
rendering system.

 

 

Comments:

The example illustrates translucent rendering using depth peeling and volume
rendering. Maybe it could be done more elegantly. If you can see how, please
make any suggestions or corrections either directly on the Wiki Examples
page, or send me an e-mail.

 

1.       Specifically, would it be possible to not use a VTK-based camera
pass and lights pass, but instead use the pre-existing one?

 

2.       If I use only a camera pass, without a lights pass, the volume
rendering is dark, while the translucent actor is not. Why does this happen?
It seems the volume mapper clears the existing lights.?

 

Thanks

Bryn

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


More information about the vtkusers mailing list