<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I still have no clue on how to solve this problem, so I submitted a report here : <a href="https://gitlab.kitware.com/vtk/vtk/issues/17107">https://gitlab.kitware.com/vtk/vtk/issues/17107</a><br><br></div>If anyone can give a sight on it to help, I would be grateful!<br></div><br></div>Charles<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-16 14:57 GMT+02:00 CharlesB <span dir="ltr"><<a href="mailto:chbrossotaf@gmail.com" target="_blank">chbrossotaf@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" width="227" height="243"><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 <<wbr>vtkInteractorStyleTrackballCam<wbr>era.h><br><br>int main(int, char*[])<br>{<br>    auto plane_source = vtkSmartPointer<<wbr>vtkPlaneSource>::New();<br><br>    auto mapper = vtkSmartPointer<<wbr>vtkPolyDataMapper>::New();<br>    mapper->SetInputConnection(<wbr>plane_source->GetOutputPort())<wbr>;<br>    <br>    auto actor = vtkSmartPointer<vtkActor>::<wbr>New();<br>    actor->SetMapper(mapper);<br><br>    auto renderer = vtkSmartPointer<vtkRenderer>::<wbr>New();<br>    auto overlay_renderer = vtkSmartPointer<vtkRenderer>::<wbr>New();<br>    renderer->SetLayer(0);<br>    overlay_renderer->SetLayer(1);<br>    auto render_window = vtkSmartPointer<<wbr>vtkRenderWindow>::New();<br>    render_window-><wbr>SetNumberOfLayers(2);<br>    render_window->AddRenderer(<wbr>renderer);<br>    render_window->AddRenderer(<wbr>overlay_renderer);<br>    auto camera = vtkSmartPointer<vtkCamera>::<wbr>New();<br>    renderer->SetActiveCamera(<wbr>camera);<br>    overlay_renderer-><wbr>SetActiveCamera(camera);<br><br>    renderer->AddActor(actor);<br>    renderer->ResetCamera();<br><br>    auto render_window_interactor = vtkSmartPointer<<wbr>vtkRenderWindowInteractor>::<wbr>New();<br>    auto trackball_style = vtkSmartPointer<<wbr>vtkInteractorStyleTrackballCam<wbr>era>::New();<br><br>    render_window_interactor-><wbr>SetRenderWindow(render_window)<wbr>;<br>    render_window_interactor-><wbr>SetInteractorStyle(trackball_<wbr>style);<br><br>    render_window->Render();<br>    render_window_interactor-><wbr>Start();<br><br>    return EXIT_SUCCESS;<br>}<br><br></div></div>
</blockquote></div><br></div>