[vtkusers] [vtk-developers] QVTKOpenGLWidget + SSAA pass breaks depth peeling

Simon Esneault simon.esneault at gmail.com
Tue Feb 13 03:54:50 EST 2018


Hello VTK community

Is seems adding an SSAA rendering pass breaks the depth peeling process.
Attached is an example that highlight the problem. When commenting out the
line 64 (l_renderer->SetPass( l_ssaa ); the translucent geometry is
rendered correctly, but the result is not anti-aliased.

With SSAA pass -> Depth Peeling broken :
https://cdn.pbrd.co/images/H7qnZxC.png
Without SSAA pass -> Depth Peeling ok :
https://cdn.pbrd.co/images/H7qnvE9.png

Shall I fill a bug for this ?

Thanks

-- 
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180213/125e8669/attachment.html>
-------------- next part --------------
cmake_minimum_required( VERSION 3.5 )
PROJECT( QtVtkSsaa )
set( CMAKE_AUTOMOC ON )
find_package( Qt5Widgets REQUIRED QUIET )
find_package( OpenGL REQUIRED )
find_package( VTK REQUIRED )
include( ${VTK_USE_FILE} )
add_executable( QtVtkSsaa MACOSX_BUNDLE main.cpp )
qt5_use_modules( QtVtkSsaa Core Gui )
target_link_libraries( QtVtkSsaa ${VTK_LIBRARIES} ${OPENGL_LIBRARIES} )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 3468 bytes
Desc: not available
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180213/125e8669/attachment.cpp>


More information about the vtkusers mailing list