[vtkusers] EDL on VTK7
richuitnl at gmail.com
Tue Feb 23 17:25:53 EST 2016
Ok, I have given it a shot. It is not complaining but the slider is drawn,
although a bit small and the view becomes black. This is my code:
// The elementary passes.
auto lights = vtkSmartPointer<vtkLightsPass>::New();
auto opa = vtkSmartPointer<vtkOpaquePass>::New();
auto tran = vtkSmartPointer<vtkTranslucentPass>::New();
auto volu = vtkSmartPointer< vtkVolumetricPass>::New();
// Put them in a sequence.
vtkRenderPassCollection *passes = vtkRenderPassCollection::New();
auto seq1 = vtkSmartPointer<vtkSequencePass>::New();
edl = vtkSmartPointer<vtkEDLShading>::New();
auto passes2 = vtkRenderPassCollection::New();
auto ova = vtkSmartPointer<vtkOverlayPass>::New();
auto seq2 = vtkSmartPointer<vtkSequencePass>::New();
// Make the sequence the delegate of a camera pass.
auto cameraP = vtkSmartPointer<vtkCameraPass>::New();
// tell the renderer to use our render pass pipeline
vtkOpenGLRenderer *glrenderer = vtkOpenGLRenderer::SafeDownCast(renderer);
if (glrenderer != nullptr)
There should probably be another camera pass. In the inner sequence you
proposed a camera pass. Buti this failed because the error message said it
had no delegate assigned to it. I tried to add it to a sequence but that is
Please have a look and help me out? thanks!!
View this message in context: http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736772.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers