Elizabeth Smith (eliza++at++daisy.paradigmsim.com)
Tue, 19 Nov 1996 11:11:39 -0600
Could the problem be with the ambient color of the lighting model?
Are you setting it explicitly or taking the default?
The lighting model and its ambient component are independent of
any individual light source.
>From the man pages:
pfLModelAmbient receives three floating point values in the range from
0.0 through 1.0 to set the red, green, and blue, values for the amount of
the ambient light associated with the scene for the given light model.
pfGetLModelAmbient copies the red, green, and blue components of the
ambient in the given light model into the parameters r, g, and b,
respectively. The default value for the ambient red, green, and blue
light components is 0.2.
^^^^^^^
The component is equivalent to the GL_LIGHT_MODEL_AMBIENT
values. (See man glLightModel) For IrisGL, see man lmdef DEFLMODEL.
Also remember that with OpenGL, lights have a specular component
as well as ambient and diffuse.
--Elizabeth Smith
--
|---- Elizabeth Smith ----|
| 972-960-2301 (voice) Paradigm Simulation, Inc. |
| 972-960-9049 (FAX) 14900 Landmark, Suite 400 |
| eliza++at++paradigmsim.com Dallas, Texas 75240 USA |
| www.paradigmsim.com |
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:58 PDT