[vtkusers] [vtk-user] - stop movement object 3D, indepedent of position camera

David Gobbi david.gobbi at gmail.com
Mon Aug 29 15:20:16 EDT 2016

Hi Jose,

Use two superimposed renderers.  This provides two independent cameras.

// Main renderer (i.e. the one you already have)

// "Overlay" renderer (with its own camera and actors)
overlayRenderer->SetViewPort(renderer->GetViewPort()); // same viewport
overlayRenderer->EraseOff(); // do not erase before renderering
window->AddRenderer(overlayRenderer); // add on top of other renderer

The two renderers will share the depth buffer and color buffer, but each
will have its own camera, lights, and actors.

You can even make the "overlay" renderer so that its viewport only covers
part of other renderer.  After all, a renderer is just a class that renders
into a viewport within the window, you can choose the viewports however you

 - David

On Mon, Aug 29, 2016 at 1:07 PM, Jose Barreto <jose.de.paula at live.com>

> Hello guys,
> Is there any way to make a 3D object ignores the positioning of the camera?
> Or apply it to the inverse movement rotation  of the camera.
> I'm using vtkResliceImageViewer2 to display the three DICOM viewers
> (Axial,
> Sagittal and Coronal). In the axial, I mark one sequence of points
> (vtkSplineWidget), which are used to create a panoramic view.
> The problem is that the vtkResliceImageViewer2 object handles the camera in
> order to create cutting the image. And my vtkSplineWidget object  is moving
> along together with vtkResliceImageViewer2.
> How do I stop the  vtkSplineWidget movement independent the camera
> position.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160829/6c7da850/attachment.html>

More information about the vtkusers mailing list