-
- Downloads
A number of transparency related issues fixed
A few good fixes in here that are all related. The biggest is a fix to OpenGLActor to use the more comprehensive GetIsOpaque method in determining if an actor is opaque. The old code only looked at the property's opacity. This is why you would see folks setting somethings opacity to 0.99 to get it treated as translucent because the actor code wasn't handling it correctly. This change resulted in 3 new valid images for tests that were rendering translucent items as if they were opaque. I removed these tests from the old backend as I did not want to change the behavior for that backend. Next up is depth peeling. OpenGL2 depth peeling would render a number of peels up to the limit and then just stop. Any geometry left between the opaque layer and the last translucent layer was just thrown out. This created very noticable artifacts and was bad. This change makes it so that when it gets to the last pass, it will render all remaining geometry using alpha blending. This is much better. Fix example if you get the limit to 20 layers and 20 was not enough to render all the geometry, this change renders 19 layers using depth peeling, then in the 20th render it would add in all the remaining geometry as last layer. That last layer may have overlapping geometry which is rendered using alpha blending. Finally some changes to the PointGaussianMapper. It turns out that the point gaussian mapper is an translucent mapper which means it needs the first change, and it is a very tough case for depth peeling resulting in the second change. While at it I modified this mapper to render far fewer fragments, resulting is far fewer overlapping layers and fewer artifacts. Really when using PointGaussian you should turn off depthpeeling as it is not needed and actually makes it worse, but these changes will make it better if you happen to have it on. Also cleaned up the mapper so that the radius is equal to the standard devisation of the gaussian, previously it was four standard deviations. Change-Id: I62d90b6e424ac0e939033387ed10ba8caac66095
Showing
- Filters/Texture/Testing/Python/socbal.py 1 addition, 1 deletionFilters/Texture/Testing/Python/socbal.py
- Filters/Texture/Testing/Tcl/socbal.tcl 1 addition, 1 deletionFilters/Texture/Testing/Tcl/socbal.tcl
- Rendering/Core/Testing/Cxx/CMakeLists.txt 5 additions, 3 deletionsRendering/Core/Testing/Cxx/CMakeLists.txt
- Rendering/Core/Testing/Data/Baseline/TestTranslucentLUTAlphaBlending.png.md5 1 addition, 1 deletion...ing/Data/Baseline/TestTranslucentLUTAlphaBlending.png.md5
- Rendering/Core/Testing/Data/Baseline/TestTranslucentLUTTextureAlphaBlending.png.md5 1 addition, 1 deletion...a/Baseline/TestTranslucentLUTTextureAlphaBlending.png.md5
- Rendering/OpenGL2/Testing/Cxx/TestPointGaussianMapper.cxx 7 additions, 12 deletionsRendering/OpenGL2/Testing/Cxx/TestPointGaussianMapper.cxx
- Rendering/OpenGL2/Testing/Data/Baseline/TestPointGaussianMapper.png.md5 1 addition, 1 deletion...GL2/Testing/Data/Baseline/TestPointGaussianMapper.png.md5
- Rendering/OpenGL2/glsl/vtkDepthPeelingPassIntermediateFS.glsl 13 additions, 1 deletion...ering/OpenGL2/glsl/vtkDepthPeelingPassIntermediateFS.glsl
- Rendering/OpenGL2/glsl/vtkPointGaussianVS.glsl 7 additions, 2 deletionsRendering/OpenGL2/glsl/vtkPointGaussianVS.glsl
- Rendering/OpenGL2/vtkDepthPeelingPass.cxx 43 additions, 25 deletionsRendering/OpenGL2/vtkDepthPeelingPass.cxx
- Rendering/OpenGL2/vtkDepthPeelingPass.h 1 addition, 1 deletionRendering/OpenGL2/vtkDepthPeelingPass.h
- Rendering/OpenGL2/vtkOpenGLActor.cxx 3 additions, 3 deletionsRendering/OpenGL2/vtkOpenGLActor.cxx
- Rendering/OpenGL2/vtkOpenGLPointGaussianMapper.cxx 4 additions, 3 deletionsRendering/OpenGL2/vtkOpenGLPointGaussianMapper.cxx
- Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx 12 additions, 1 deletionRendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx
- Views/Infovis/Testing/Cxx/CMakeLists.txt 8 additions, 1 deletionViews/Infovis/Testing/Cxx/CMakeLists.txt
- Views/Infovis/Testing/Data/Baseline/TestConeLayoutStrategy.png.md5 1 addition, 1 deletion...ovis/Testing/Data/Baseline/TestConeLayoutStrategy.png.md5
Loading
Please register or sign in to comment