<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Ken,</div><div class=""><br class=""></div><div class="">   I had to take a closer look at how I was rendering my mesh, it seems everything is fine; I was a bit thrown off by the scalar colouring at first and couldn’t really understand the need for the change but on further scrutiny I figured I had to readjust how I was setting my ambient values. Thanks.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">  Seun</div><div class=""> </div><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 3, 2017, at 1:42 PM, Ken Martin <<a href="mailto:ken.martin@kitware.com" class="">ken.martin@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">You would need to give me a more specific example for me to help. That change mostly impacted meshes that use scalar coloring.  But in general the color on screen is driven by diffuse ambient and specular colors and properties make sure those are set to reasonable values. <div class=""><br class=""></div><div class="">Maybe find a mesh where you see an issue and let me know what the ambient/diffuse/specular colors and intensities are for the mesh. No texturing. No backface properties. No scalar coloring. Maybe go from there...<div class=""><br class=""></div></div></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Tue, Oct 3, 2017 at 1:34 PM, Seun Odutola<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:seun@rogue-research.com" target="_blank" class="">seun@rogue-research.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">Hi everyone,<br class=""><br class="">   <span class="Apple-converted-space"> </span>I recently discovered whilst working with VTK master that some meshes are completely rendered dark in colour compared to others; meshes that rely on their material (actor’s properties) are mostly affected. I tracked the occurrence of this change down to the following commit below and was wondering the essence of the change, also if need be how can one replicate the previous rendering behaviour.<br class=""><br class="">- commit 7bc7e58334bcd1eac12adb6db22d6c<wbr class="">45cf8fca74<br class="">Author: Ken Martin <<a href="mailto:ken.martin@kitware.com" class="">ken.martin@kitware.com</a>><br class="">Date:   Thu Aug 31 13:08:58 2017 -0400<br class=""><br class="">   <span class="Apple-converted-space"> </span>update handling of scalar material mode<br class=""><br class="">   <span class="Apple-converted-space"> </span>Previously scalar material mode when used<br class="">   <span class="Apple-converted-space"> </span>with scalars would ignore the ambient and diffuse<br class="">   <span class="Apple-converted-space"> </span>material intensities and when mapping one of them<br class="">   <span class="Apple-converted-space"> </span>set that one to 1.0 while leaving th eother alone.<br class="">   <span class="Apple-converted-space"> </span>This caused lots of odd situations where objects would be<br class="">   <span class="Apple-converted-space"> </span>over illuminated etc or where changing the diffuse or<br class="">   <span class="Apple-converted-space"> </span>ambient seemed to have o impact.<br class=""><br class="">   <span class="Apple-converted-space"> </span>With this change the diffuse and ambient intensities<br class="">   <span class="Apple-converted-space"> </span>are always used. The sclaar simply controls the color<br class="">   <span class="Apple-converted-space"> </span>not the intensity.<br class=""><br class=""><br class="">Thanks.<br class=""><br class="">Regards,<br class="">   Seun.<br class=""><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class="">Ken Martin PhD<div class="">Distinguished Engineer<br class=""><span style="font-size: 12.8px;" class="">Kitware Inc.</span><br class=""></div><div class="">28 Corporate Drive<br class="">Clifton Park NY 12065<br class=""><div class=""><br class=""></div><div class=""><span style="font-size: 10pt; font-family: Tahoma, sans-serif;" class="">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.  Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.  Thank you.</span></div></div></div></div></div></div></div></blockquote></div><br class=""></body></html>