[vtkusers] Maximum SpecularPower in vtkProperty
francois.bertel at kitware.com
Mon Mar 9 19:22:33 EDT 2009
I don't thing there is any good reason. Tracking down to the first
commit that introduced SpecularPower does not tell much (vtkProperty.h
rev 1.3, 1994-01-28 by Ken Martin).
In a similar way, rev 1.8 (1995-04-20 by Ken Martin) of vtkLight.h
introduced Exponent that should be in the range [0.0,128.0] as well
but there is no use of SetClampMacro().
I'll fix both files tomorrow.
On Mon, Mar 9, 2009 at 6:03 PM, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> I recently noticed that vtkProperty clamps SpecularPower to the range
> [0,100]. However, OpenGL allows the equivalent parameter (GL_SHININESS) to
> be in the range [0,128]. Is there a reason for this discrepancy?
> **** Kenneth Moreland
> *** Sandia National Laboratories
> *** *** *** email: kmorel at sandia.gov
> ** *** ** phone: (505) 844-8919
> *** web: http://www.cs.unm.edu/~kmorel
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
More information about the vtkusers