[vtkusers] EDL on VTK7

rich richuitnl at gmail.com
Wed Feb 24 00:19:58 EST 2016


More testing around,

The following code still crashes in the EDL - although i do not define on
Overlay pass at all it still crashes on the slider widget as soon as i turn
it on.

	// The elementary passes.
		auto lights = vtkLightsPass::New();
		auto opa = vtkOpaquePass::New();
		auto tran = vtkTranslucentPass::New();
		auto volu = vtkVolumetricPass::New();
		//auto ova = vtkOverlayPass::New();

		// Put them in a sequence.
		vtkRenderPassCollection *passes = vtkRenderPassCollection::New();
		passes->AddItem(lights);
		passes->AddItem(opa);
		passes->AddItem(tran);
		passes->AddItem(volu);
		// IGNORE OVERLAY PASS
		//passes->AddItem(ova);

		auto seq1 = vtkSequencePass::New();
		seq1->SetPasses(passes);

		auto cameraP = vtkCameraPass::New();
		cameraP->SetDelegatePass(seq1);

		auto edl = vtkEDLShading::New();
		edl->SetDelegatePass(cameraP);

		// tell the renderer to use our render pass pipeline
		vtkOpenGLRenderer *glrenderer = vtkOpenGLRenderer::SafeDownCast(renderer);
		if (glrenderer != nullptr)
		{
			glrenderer->SetPass(edl);
		}

If anyone could help me out, thanks!
rich



--
View this message in context: http://vtk.1045678.n5.nabble.com/EDL-on-VTK7-tp5736766p5736779.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list