Skip to content

Commit

Permalink
* set the lighting off on @setShapeRenderingProperties@ when the user…
Browse files Browse the repository at this point in the history
… tries to control the color of the object precisely (maybe add a different lighting on/off property later?)

git-svn-id: svn+ssh://svn.pointclouds.org/pcl/trunk@3125 a9d63959-f2ad-4865-b262-bf0e56cfafb6
  • Loading branch information
rbrusu committed Nov 10, 2011
1 parent 934bcaf commit 61265ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions visualization/src/pcl_visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,15 @@ pcl::visualization::PCLVisualizer::setShapeRenderingProperties (
case PCL_VISUALIZER_COLOR:
{
actor->GetProperty ()->SetColor (val1, val2, val3);
actor->GetProperty ()->SetAmbientColor (val1, val2, val3);
actor->GetProperty ()->SetSpecularColor (val1, val2, val3);
actor->GetProperty ()->SetEdgeColor (val1, val2, val3);
// The following 3 are set by SetColor automatically according to the VTK docs
//actor->GetProperty ()->SetAmbientColor (val1, val2, val3);
//actor->GetProperty ()->SetDiffuseColor (val1, val2, val3);
//actor->GetProperty ()->SetSpecularColor (val1, val2, val3);
actor->GetProperty ()->SetAmbient (0.8);
actor->GetProperty ()->SetDiffuse (0.8);
actor->GetProperty ()->SetSpecular (0.8);
actor->GetProperty ()->SetLighting (0);
actor->Modified ();
break;
}
Expand Down

0 comments on commit 61265ef

Please sign in to comment.