]> Creatis software - creaMaracasVisu.git/commitdiff
#3549 Bug contour opacity windows NVIDIA
authorEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Fri, 2 Feb 2024 12:01:10 +0000 (13:01 +0100)
committerEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Fri, 2 Feb 2024 12:01:10 +0000 (13:01 +0100)
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.cpp
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.cpp
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx

index c2008f43cc50e483e2e7f98e8bcdf6c08494a9a2..6c2083f1cc4078f93496e6c6d1e85107e01755c7 100644 (file)
@@ -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;
index 6cfdf16f9afbc50662efc85eefc642849b4afe38..001bb8e0a39206b21266cd91ced40061224d7c09 100644 (file)
@@ -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();
 
index f1e2e3c8791fc97f7ac444a51956abd88c650bbe..24d707d5e6409fccc0a28cc503a49cfe40a2b3d3 100644 (file)
@@ -225,6 +225,9 @@ void wxVtk3DBaseView::Configure()
 // //        _aRenderer->SetMaximumNumberOfPeels(100);
 //             _aRenderer->SetMaximumNumberOfPeels(4);
         
+        _aRenderer->UseDepthPeelingOn();
+        _aRenderer->UseDepthPeelingForVolumesOn();
+               
                _renWin->SetMultiSamples(0);
                _renWin->SetAlphaBitPlanes(1);