<div dir="ltr"><div><div><div>Hello,<br><br></div>I have two renderers in a render window, because I need overlay actors to be always front. They share the same camera, in order to be moved together with user interaction. <br></div>The issue is that the actor is only partially rendered when user moves the camera in the scene, as if the front and the back of it was disappearing.<br><br>I see this with VTK 7.1 and 8.0. <br><br></div><div>Is there something special to do to avoid this? Or did I find a bug?<br></div><div><br></div><div><img src="cid:ii_15deb1beeaadbb64" alt="Images intégrées 1" style="margin-right: 0px;" height="243" width="227"><br><br>#include <vtkSmartPointer.h><br>#include <vtkPolyDataMapper.h><br>#include <vtkActor.h><br>#include <vtkRenderWindow.h><br>#include <vtkCamera.h><br>#include <vtkRenderer.h><br>#include <vtkRenderWindowInteractor.h><br>#include <vtkPolyData.h><br>#include <vtkPlaneSource.h><br>#include <vtkInteractorStyleTrackballCamera.h><br><br>int main(int, char*[])<br>{<br>    auto plane_source = vtkSmartPointer<vtkPlaneSource>::New();<br><br>    auto mapper = vtkSmartPointer<vtkPolyDataMapper>::New();<br>    mapper->SetInputConnection(plane_source->GetOutputPort());<br>    <br>    auto actor = vtkSmartPointer<vtkActor>::New();<br>    actor->SetMapper(mapper);<br><br>    auto renderer = vtkSmartPointer<vtkRenderer>::New();<br>    auto overlay_renderer = vtkSmartPointer<vtkRenderer>::New();<br>    renderer->SetLayer(0);<br>    overlay_renderer->SetLayer(1);<br>    auto render_window = vtkSmartPointer<vtkRenderWindow>::New();<br>    render_window->SetNumberOfLayers(2);<br>    render_window->AddRenderer(renderer);<br>    render_window->AddRenderer(overlay_renderer);<br>    auto camera = vtkSmartPointer<vtkCamera>::New();<br>    renderer->SetActiveCamera(camera);<br>    overlay_renderer->SetActiveCamera(camera);<br><br>    renderer->AddActor(actor);<br>    renderer->ResetCamera();<br><br>    auto render_window_interactor = vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>    auto trackball_style = vtkSmartPointer<vtkInteractorStyleTrackballCamera>::New();<br><br>    render_window_interactor->SetRenderWindow(render_window);<br>    render_window_interactor->SetInteractorStyle(trackball_style);<br><br>    render_window->Render();<br>    render_window_interactor->Start();<br><br>    return EXIT_SUCCESS;<br>}<br><br></div></div>