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);
+
+//EED 2021-11-3
+// The Depth Peeling method have a bug in MacOs
+// In vtkDualDepthPeelingPass::Peel() TranslucentWrittenPixels are incoherent TOO BIG some times. Why ??
+// So the comparition in vtkDualDepthPeelingPass::PeelingDone() is not coherent.
+// while (!this->PeelingDone())
+// {
+// this->Peel();
+// }
+// Or CurrentPeel >= MaximumNumberOfPeels || TranslucentWrittenPixels <= OcclusionThreshold not coherent. Why ??
+ _aRenderer->UseDepthPeelingOff();
+
+ } // if _configure
}
//-------------------------------------------------------------------