[vtkusers] Depth peeling
Busse, Thomas (GE Oil & Gas)
Thomas.Busse at ge.com
Fri Nov 7 09:24:43 EST 2014
Hi,
I tried to get depth peeling working but without success until now.
My setup is VTK6.1 and a NVidia Quadro K300m under Windows.
Here is the code snippet of the initialization:
m_pVtkRenderWindow = pVtkMFCWindow->GetRenderWindow();
m_pVtkRenderWindow->Register(NULL);
m_pVtkRenderWindow->AddRenderer(m_pVtkRenderer);
// Use Depth Peeling for transparency
m_pVtkRenderWindow->SetAlphaBitPlanes(1);
m_pVtkRenderWindow->SetMultiSamples(0);
m_pVtkRenderer->SetUseDepthPeeling(1);
m_pVtkRenderer->SetMaximumNumberOfPeels(100);
m_pVtkRenderer->SetOcclusionRatio(0.1);
but after rendering a call to
int depthPeelingWasUsed = m_pVtkRenderer->GetLastRenderingUsedDepthPeeling();
returns 0.
Can someone help me on this?
Is there some additional trick required to get it working?
According specs the graphics card should fulfill all requirements.
Best Regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141107/d419a5e4/attachment.html>
More information about the vtkusers
mailing list