abrend++at++idt.unit.no
Wed, 29 Mar 1995 14:11:33 +0200
/* Initialize sun */
sun = pfNewLSource();
pfLightColor(sun, 1.0f, 0.0f, 0.0f);
pfLightAmbient(sun, 0.4f, 0.4f, 0.3f);
pfLightPos(sun, 0.0f, 1.0f, 0.0f, 0.0f);
viewState->sun = sun;
pfAddChild(viewState->scene, viewState->sun);
As you see my light source uses only red light which should be easy to
detect. What more (and where) do I need to get a sun in my model ?
Do I have to turn of the ambient light in the materials in my model ?
How do I do this ? How can I override the default lighting in my
model ?
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
/* WWW page : http://www.idt.unit.no:80/~abrend/ *
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
email___________________________________________________
|
V
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Andreas Brendstuen _/ abrend++at++stud.unit.no _/
_/ Festningsgata 11 _/ abrend++at++idt.unit.no _/
_/ 7014 Trondheim, Norway _/ +47 61 29 44 34 _/
_/ +47 73 51 48 06 _/ (when visiting hometown) _/
_/ (don't call at saturday mornings) _/ _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:08 PDT