[vtkusers] Depth Peeling inside QVTWidget ?

m. yusufoglu yusufoglum at yahoo.com
Thu Aug 15 20:27:19 EDT 2013


Has anyone got depth peeling to work inside a QVTKWidget at an Ubuntu ? 

renderer->GetLastRenderingUsedDepthPeeling();

keeps returning 0 (false) after renderer->Render() even though I've set up
the renderer for depth peeling:

	renderer->GetRenderWindow()->SetAlphaBitPlanes(1);
	renderer->GetRenderWindow()->SetMultiSamples(0);
	renderer->SetUseDepthPeeling(1);
	renderer->SetMaximumNumberOfPeels(100);
	renderer->SetOcclusionRatio(0.1);
        Qvtkwidget1->GetRenderWindow()->AddRenderer(renderer); // before the parameters set or here?

My OS is GNU/Linux Ubuntu 10.04. What may be the reason? 
Thanks.
Regards, Mehmet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130815/b6f0547f/attachment.htm>


More information about the vtkusers mailing list