Sun

New Message Reply Date view Thread view Subject view Author view

abrend++at++idt.unit.no
Wed, 29 Mar 1995 14:11:33 +0200


I'm trying to set a sun into my model by using this code in my
'InitScene' function :

   /* 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) _/ _/
   _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:08 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.