From 2f46ad2ce0f67c7016410698db7e7391a47d6c93 Mon Sep 17 00:00:00 2001 From: Eduardo Enrique Davila Serrano Date: Fri, 2 Feb 2024 13:01:10 +0100 Subject: [PATCH] #3549 Bug contour opacity windows NVIDIA --- .../widgets/manualContour/manualViewBaseContour.cpp | 8 ++++---- .../wxWindows/widgets/manualContour/manualViewPoint.cpp | 4 ++-- .../src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.cpp index c2008f4..6c2083f 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.cpp @@ -309,8 +309,8 @@ void manualViewBaseContour::ConstructVTKObjects() _contourVtkActor = vtkActor::New(); //EED 2023-07-27 -// _contourVtkActor->GetProperty()->SetOpacity(1.0); - _contourVtkActor->GetProperty()->SetOpacity(0.9999); + _contourVtkActor->GetProperty()->SetOpacity(1.0); +// _contourVtkActor->GetProperty()->SetOpacity(0.9999); _bboxMapper = vtkPolyDataMapper::New(); _bboxMapper->ScalarVisibilityOff( ); @@ -981,8 +981,8 @@ void manualViewBaseContour::SetVisible(bool ok) if (ok==true) { // EED 2023-07-27 -// opacity = 1; - opacity = 0.9999; + opacity = 1; +// opacity = 0.9999; opacity = 0.4; } else { opacity = 0.5; diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.cpp index 6cfdf16..001bb8e 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.cpp @@ -157,8 +157,8 @@ vtkActor* manualViewPoint::CreateVtkPointActor() _pointVtkActor = vtkActor::New(); //EED 2023-07-27 - // _contourVtkActor->GetProperty()->SetOpacity(1.0); - _pointVtkActor->GetProperty()->SetOpacity(0.9999); + _pointVtkActor->GetProperty()->SetOpacity(1); +// _pointVtkActor->GetProperty()->SetOpacity(0.9999); _bboxMapper = vtkPolyDataMapper::New(); diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx index f1e2e3c..24d707d 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx @@ -225,6 +225,9 @@ void wxVtk3DBaseView::Configure() // // _aRenderer->SetMaximumNumberOfPeels(100); // _aRenderer->SetMaximumNumberOfPeels(4); + _aRenderer->UseDepthPeelingOn(); + _aRenderer->UseDepthPeelingForVolumesOn(); + _renWin->SetMultiSamples(0); _renWin->SetAlphaBitPlanes(1); -- 2.47.1