[vtkusers] Depth peeling

David E DeMarle dave.demarle at kitware.com
Fri Nov 7 11:59:41 EST 2014


There can be other conditions.

Need to more details (or sit down with a debugger) to know for sure if one
of them is stopping you.

Put a breakpoint at vtkOpenGLRenderer.cxx:541 to see if vtk thinks your
card can do depth peeling (or run one of the vtk depth peeling tests).

Put a breakpoint at vtkRenderer.cxx:599 to see if vtk thinks that there are
translucent objects in your scene. The one has tripped me up before. If it
is for you and you happen to be rendering multi block data with block
opacity, try setting Mapper->SetScalarVisibilityOff to prevent the LUT from
deciding.







David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Fri, Nov 7, 2014 at 9:24 AM, Busse, Thomas (GE Oil & Gas) <
Thomas.Busse at ge.com> wrote:

>  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
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141107/ae47340e/attachment.html>


More information about the vtkusers mailing list