[vtkusers] Changes in diffuse properties of material.
seun at rogue-research.com
Tue Oct 10 14:02:33 EDT 2017
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.
> On Oct 3, 2017, at 1:42 PM, Ken Martin <ken.martin at kitware.com> wrote:
> 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.
> 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...
> On Tue, Oct 3, 2017 at 1:34 PM, Seun Odutola <seun at rogue-research.com <mailto:seun at rogue-research.com>> wrote:
> Hi everyone,
> 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.
> - commit 7bc7e58334bcd1eac12adb6db22d6c45cf8fca74
> Author: Ken Martin <ken.martin at kitware.com <mailto:ken.martin at kitware.com>>
> Date: Thu Aug 31 13:08:58 2017 -0400
> update handling of scalar material mode
> Previously scalar material mode when used
> with scalars would ignore the ambient and diffuse
> material intensities and when mapping one of them
> set that one to 1.0 while leaving th eother alone.
> This caused lots of odd situations where objects would be
> over illuminated etc or where changing the diffuse or
> ambient seemed to have o impact.
> With this change the diffuse and ambient intensities
> are always used. The sclaar simply controls the color
> not the intensity.
> Ken Martin PhD
> Distinguished Engineer
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers