Hello vtk users,<br><br>I&#39;m representing a bone in 3D generated with the vtkContourFilter. The following code shows a red bone and a white light illuminating it.My problem is that I don&#39;t know how to configure the actor properties for getting a grey bone iluminated by a white light.<br>
<br>&nbsp;&nbsp;&nbsp; vtkContourFilter&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *contourFilter = vtkContourFilter::New();<br>&nbsp;&nbsp;&nbsp; vtkSmoothPolyDataFilter&nbsp;&nbsp;&nbsp; *smoothFilter = vtkSmoothPolyDataFilter::New();<br>&nbsp;&nbsp;&nbsp; vtkPolyDataNormals&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *polyDataNormals = vtkPolyDataNormals::New();<br>
<br>&nbsp;&nbsp;&nbsp; contourFilter-&gt;SetInput(islandRemoval-&gt;GetOutput());<br>&nbsp;&nbsp;&nbsp; contourFilter-&gt;Update();<br>&nbsp;&nbsp;&nbsp; smoothFilter-&gt;SetInputConnection(contourFilter-&gt;GetOutputPort());<br>&nbsp;&nbsp;&nbsp; smoothFilter-&gt;SetNumberOfIterations(30);<br>
&nbsp;&nbsp;&nbsp; smoothFilter-&gt;SetRelaxationFactor(1.0);<br>&nbsp;&nbsp;&nbsp; smoothFilter-&gt;Update();<br>&nbsp;&nbsp;&nbsp; polyDataNormals-&gt;SetInputConnection(smoothFilter-&gt;GetOutputPort());<br>&nbsp;&nbsp;&nbsp; polyDataNormals-&gt;Update();<br><br>&nbsp;&nbsp;&nbsp; this-&gt;BoneMapper-&gt;SetInput(this-&gt;polyDataNormals-&gt;getOutput());<br>
&nbsp;&nbsp;&nbsp; this-&gt;BoneMapper-&gt;ImmediateModeRenderingOn();<br>&nbsp;&nbsp;&nbsp; this-&gt;BoneMapper-&gt;Update();<br>&nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;SetMapper(this-&gt;BoneMapper);<br>&nbsp; &nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetColor(1.0, 1.0, 1.0);<br>
&nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetAmbientColor(1.0, 1.0, 1.0);<br>&nbsp; &nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetSpecularColor(1.0, 1.0, 1.0);<br>&nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetDiffuse(0.0);<br>
&nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetSpecular(10.0);<br>&nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetSpecularPower(5);<br><br>Can anybody helps me?<br><br><br>Thanks a lot.<br><br>Iván García Martínez - Spain.<br>