Jean-Luc Dery (dery++at++atlantis.discreet.qc.ca)
Tue, 19 Nov 1996 12:34:47 -0500
Hi Scott,
There is, in the GL/OpenGL lighting model, a global ambient property which
defines an overall ambient light in the scene. This ambient light is not
produced from a light source object but from the light model. By default the
values set for ambient in the light model are R=0.2, G=0.2, B=0.2, A=1.0
So, each light source object contribute to the ambient light of a scene, and,
in addition, the light model defines another ambient light that's not from any
particular source. Even if you don't have any light source in your scene, you
can still see objects in a scene with ambient light defined from the light
model.
For changing this, you can use the following:
>From OpenGL
-----------
float lm_ambient[] = {0.2, 0.2, 0.2, 1.0};
glLightModelfv( GL_LIGHT_MODEL_AMBIENT, lm_ambient );
>From Performer
--------------
see pfLightModel::setAmbient(float r, float g, float b)
Hope this helps,
-- _____________________________________________________________________________Jean-Luc Dery Discreet Logic System Engineer 5505 boul. St-Laurent, bureau 5200 3-D Graphics Technology Montreal (Quebec), Canada, H2T 1S6 Tel: (514) 272-0525 #394 Email: dery++at++discreet.com Fax: (514) 272-0585 _____________________________________________________________________________ ======================================================================= 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