]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx
#3418 creaMaracasVisu Feature New Normal - ManualPaint_model with openmp
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtk3DBaseView.cxx
index d9c33391a9cfa152c4fe8de4cbf2998dd762ed02..4bf3d9b73a7520f050ab99e131f2f6eaa642663b 100644 (file)
@@ -208,7 +208,14 @@ void wxVtk3DBaseView::Configure()
                GetCamera()->Yaw(180+30);
                GetCamera()->Pitch(-22);
                                
-       }
+               //https://stackoverflow.com/questions/47528086/problems-with-rendering-transparent-objects-in-vtk
+               //https://itk.org/Wiki/VTK/Depth_Peeling
+               _aRenderer->SetUseDepthPeeling(1);
+               _aRenderer->SetOcclusionRatio(0.1);
+               _aRenderer->SetMaximumNumberOfPeels(100);
+               _renWin->SetMultiSamples(0);
+               _renWin->SetAlphaBitPlanes(1);
+       } // if _configure
 }
 
 //-------------------------------------------------------------------