<div dir="ltr">Hi Lin,<div><br></div><div>Lighting is always required (otherwise everything is black, so I think</div><div>that what you need is ambient lighting, instead of directional lighting:</div><div><br></div><div>mapper->SetAmbient(1.0);</div><div>mapper->SetDiffuse(0.0);</div><div>mapper->SetSpecular(0.0);</div><div><br></div><div> - David</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 28, 2014 at 3:55 AM, Lin M <span dir="ltr"><<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><img src="https://t.yesware.com/t/a9f5f59ffa12bc0f33c6949686f616def5cb9c55/8df72aa66e95586be1965d5c71b59628/spacer.gif" style="border:0;width:0px;min-height:0px" width="0" height="0"><img src="http://t.yesware.com/t/a9f5f59ffa12bc0f33c6949686f616def5cb9c55/8df72aa66e95586be1965d5c71b59628/spacer.gif" style="border:0;width:0px;min-height:0px" width="0" height="0">Hi guys,<font face="yw-a9f5f59ffa12bc0f33c6949686f616def5cb9c55-8df72aa66e95586be1965d5c71b59628--to"></font><div><br></div><div>I implemented a Spherical Harmonics Lighting in my program and set the illuminance as the vertex color. I hope to display the object just with the color array which I set and do not add any effect from the light in vtk. (Or it can be interpreted each vertex illuminated itself, the brightness is stored in its color) If I just switch off the light, it shows all dark. So this is not workable. Any suggestions? Thank you!</div><div><br></div><div>Best,</div><div>Lin</div></div>
</blockquote></div><br></div></div></div>