[vtkusers] Questions related to multiple renderers and layers.
Vidyadhar
vidyadhar at lucidindia.com
Mon Jan 7 07:20:05 EST 2008
Hi,
It is not enough to just add more renderers to render window. As you have
seen these will appear only if you set different viewports for them. To have
something like z-order, you need to set number of layers on render window to
each renderer assign a layer number. Within a layer you can have multiple
renderers which will act like what you have already seen (because number of
layers defaulted to one and all renderers also defaulted to that layer.
Except one layer all other will be transparent (without background color).
You may have to do some experimentation because different versions of vtk
have reverse layer order and I do not now know which way it is in 5.0.
HTH
Vidyadhar
----- Original Message -----
From: "Weiguang Guan" <guanw at rhpcs.mcmaster.ca>
To: <vtkusers at vtk.org>
Sent: Thursday, January 03, 2008 11:51 PM
Subject: [vtkusers] Questions related to multiple renderers and layers.
> Hi VTK-users,
>
> If I use more than one renderer in a vtkRenderWindow, only one renderer
> displays its content, the rest are invisible (unless you specify a unique
> viewport for each of the renderers). How to make multiple renderers
> visible in the same render window? and let z-buffering determine their
> visibility?
>
> Thanks,
>
> Weiguang
>
>
More information about the vtkusers
mailing list