mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
CloudViewer: reduced ambient lighting for textureMesh with VTK>=7
This commit is contained in:
@@ -1431,7 +1431,11 @@ bool CloudViewer::addTextureMesh (
|
|||||||
(*_visualizer->getCloudActorMap())[id].viewpoint_transformation_ = transformation;
|
(*_visualizer->getCloudActorMap())[id].viewpoint_transformation_ = transformation;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if VTK_MAJOR_VERSION >= 7
|
||||||
|
actor->GetProperty()->SetAmbient(0.1);
|
||||||
|
#else
|
||||||
actor->GetProperty()->SetAmbient(0.5);
|
actor->GetProperty()->SetAmbient(0.5);
|
||||||
|
#endif
|
||||||
actor->GetProperty()->SetLighting(_aSetLighting->isChecked());
|
actor->GetProperty()->SetLighting(_aSetLighting->isChecked());
|
||||||
actor->GetProperty()->SetInterpolation(_aSetFlatShading->isChecked()?VTK_FLAT:VTK_PHONG);
|
actor->GetProperty()->SetInterpolation(_aSetFlatShading->isChecked()?VTK_FLAT:VTK_PHONG);
|
||||||
actor->GetProperty()->SetEdgeVisibility(_aSetEdgeVisibility->isChecked());
|
actor->GetProperty()->SetEdgeVisibility(_aSetEdgeVisibility->isChecked());
|
||||||
|
|||||||
Reference in New Issue
Block a user