[vtkusers] Maximum SpecularPower in vtkProperty

Francois Bertel francois.bertel at kitware.com
Tue Mar 10 11:51:51 EDT 2009


done:

cvs commit -m "BUG:Fixed SpecularPower on vtkProperty and Exponent on
vtkLight to match the range of [0.0,128.0] as defined in the OpenGL
spec." vtkProperty.h vtkLight.h
Commit to directory "ParaView3/VTK/Rendering" lies in external project VTK
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkProperty.h,v  <--  vtkProperty.h
new revision: 1.82; previous revision: 1.81
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkLight.h,v  <--  vtkLight.h
new revision: 1.62; previous revision: 1.61


On Mon, Mar 9, 2009 at 7:22 PM, Francois Bertel
<francois.bertel at kitware.com> wrote:
> Hi,
>
> 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?
>>
>> -Ken
>>
>>    ****      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
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
>
> --
> François Bertel, PhD  | Kitware Inc. Suite 204
> 1 (518) 371 3971 x113 | 28 Corporate Drive
>                      | Clifton Park NY 12065, USA
>



-- 
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 mailing list