From f5816c883f0e324227bf9f5c36475c3ae0cbf18f Mon Sep 17 00:00:00 2001 From: ozantonkal Date: Mon, 29 Jul 2013 15:10:48 +0200 Subject: [PATCH] fix setting color of 3D objects --- modules/viz/src/widget.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/viz/src/widget.cpp b/modules/viz/src/widget.cpp index 8f9e90404..b295843f9 100644 --- a/modules/viz/src/widget.cpp +++ b/modules/viz/src/widget.cpp @@ -142,10 +142,6 @@ void cv::viz::Widget3D::setColor(const Color &color) actor->GetMapper ()->ScalarVisibilityOff (); actor->GetProperty ()->SetColor (c.val); actor->GetProperty ()->SetEdgeColor (c.val); - actor->GetProperty ()->SetAmbient (0.8); - actor->GetProperty ()->SetDiffuse (0.8); - actor->GetProperty ()->SetSpecular (0.8); - actor->GetProperty ()->SetLighting (0); actor->Modified (); }