I have a vtkPlaneSource (set with a 20x20 resolution to represent the ground) set to a wireframe representation with a color for the front and the back face as presented in code at the end of this mail. I have no problem to see both colors under Windows 7 64-bit with VTK 5.6.1, but the same code doesn&#39;t work under MacOS X 10.5 with VTK 5.6.1 and VTK 5.10. <br>
<br>Under Mac, if I enable the front face culling, then I can see the back face color. If I use the surface representation, then there is no problem and I can see both colors.<br><br>Do you know if this problem is related to Mac OS X or maybe only to the 10.5 version? I didn&#39;t find any post related to this problem.<br>
<br>Thank you very much.<br><br><span style="font-family:courier new,monospace">// The following line contain the vtkPlaneSource</span><br><span style="font-family:courier new,monospace">btk::VTKGroundSource* ground = btk::VTKGroundSource::New();<br>
vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();<br>mapper-&gt;SetInput(ground-&gt;GetOutput());<br>vtkProperty* prop = vtkProperty::New();<br>prop-&gt;SetRepresentation(VTK_WIREFRAME);<br>prop-&gt;SetColor(0.8, 0.8, 0.8);<br>
prop-&gt;SetAmbient(0.5);<br>prop-&gt;SetDiffuse(0.0);<br>prop-&gt;SetSpecular(0.0);<br>vtkActor* actor = vtkActor::New();<br>actor-&gt;SetMapper(mapper);<br>actor-&gt;SetProperty(prop);<br>vtkProperty* propBackface = vtkProperty::New();<br>
propBackface-&gt;DeepCopy(prop);<br>propBackface-&gt;SetColor(1.0, 0.0, 0.0);<br>actor-&gt;SetBackfaceProperty(propBackface);<br>renderer-&gt;AddViewProp(actor);</span><br>