[vtkusers] vtkCameraPass / Multipass framework

Aashish Chaudhary aashish.chaudhary at kitware.com
Fri Jun 3 12:23:04 EDT 2011


On Wed, Jun 1, 2011 at 9:42 AM, Bryn Lloyd <lloyd at itis.ethz.ch> wrote:
> Hi
>
>
>
> I have a question regarding the vtkCameraPass class.
>
>
>
> In the documentation is says:
>
>
>
> “It setups the projection and modelview matrices and can clear the
> background It calls its delegate once. After its delegate returns, it
> restore the modelview matrix stack.
>
> Its delegate is usually set to a vtkSequencePass with a vtkLightsPass and a
> list of passes for the geometry.”
>
>
>
> 1.       However, there is no parameter to choose if the background should
> be cleared or not. How can I control this, and avoid the background being
> cleared?

You can set this flag in vtkRenderer or vtkRenderWindow for the
vtkCameraPass to clear the buffer to background

vtkSetMacro(Erase, int);
  vtkGetMacro(Erase, int);
  vtkBooleanMacro(Erase, int);

>
>
>
> 2.       Also, how can I set the actual camera (vtkCamera). Should I create
> one as usual, and add it to the renderer? (I am using the
> vtkRenderPass::Render(vtkRenderState*) functions to call the individual
> render steps.

Can you elaborate more on this?


>
>
>
> Thanks for any hints or ideas
>
> Bryn
>
>
>
>
>
> _______________________________________________
> 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
>
>



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com



More information about the vtkusers mailing list