[vtkusers] viewing volume clipping plane
Lisa Avila
lisa.avila at kitware.com
Thu Aug 11 11:02:18 EDT 2005
Hello Kim,
The renderer->ResetCameraClippingRange() method will reset the range based
on the visible props in the scene. As long as you call this AFTER you add
your cone but BEFORE you render, then your cone will not be clipped.
The one thing to watch out for is if you create a special prop that
repositions itself every render - make sure you do the repositioning on the
GetBounds() call, not the Render() call since GetBounds() will be called
before Render() in order to set the clipping range and to cull actors
outside the viewing frustum.
Lisa
At 06:58 AM 8/10/2005, Kim Chuan Lim wrote:
>Hi vtk-users,
>
>What is the proper way to setup the camera clipping range for a
>viewing volume with size 600x600x600? I want to move a Cone like
>object(attached to a position sensor) in a working space range from
>(0,0,0) to (300,300,300) or (-300,-300,-300).
>
>My Steps:
>1) create a cone actor.
>2) reading the transformation matrix from the position sensor library.
>3) coneActor::PokeMatrix(transformationMatrix)
>4) Add actor to the render window and render it.
>
>But my cone alawys out of the clipping range.
>I could see the cone getting clipping and disappear
>when i move the position sensor.
>
>How should i setup the camera?
>vtkCamera::SetClippingRange (double -300, double 300) ??
>
>Some other questions:
>Renderer ResetCamera <- what is the value this method will reset?
>Renderer ResetCameraClippingRange <- what will be the reset value?
>
>Thanks in advance.
>
>Best Regards,
>Kim Chuan.
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list