[vtkusers] set image as background

David E DeMarle dave.demarle at kitware.com
Thu Feb 11 09:08:20 EST 2010


I would have two renderers, layer 0 and layer 1, both will cover the same
viewport. Put what you want to be the background on a quad or a 2D image
data in layer 0 and set layer 0's camera to show it exclusively. Then render
the scene in layer 1. Layer 1's background will not be drawn, but objects in
layer 1 will appear in front of the image from layer 0.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


On Wed, Feb 10, 2010 at 11:28 AM, Giancarlo Amati <
ilferraresebono at hotmail.it> wrote:

>  Hello Users,
>
> this is question already occurred many times, so please forgive me.
> I have an image, how can I set it as a background of my renderwindow?
>
> and the rendering my dataset as usual.
>
> Kind regards.
> Giancarlo
>
> ------------------------------
> Troppe caselle di posta? Gestiscile da Hotmail!<http://www.windowslive.it/hotmail/GestisciAltriAccount.aspx>
>
> _______________________________________________
> 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/20100211/359a8453/attachment.htm>


More information about the vtkusers mailing list