Tomas Moller (tompa++at++clarus.se)
Wed, 12 Jun 1996 16:13:05 -0600
// add infinite light source to scene
sun = new pfLightSource();
where.set(-10.0f, -10.0f, 20.0f);
where.normalize();
sun->setPos(where[0], where[1], where[2], 1.0f);
sun->setSpotDir(-1,-1,-2);
sun->setSpotCone(0,50);
sun->setColor(PFLT_DIFFUSE, 1.0f, 1.0f, 1.0f);
Shared->scene->addChild(sun);
That is, I have changed it to a local lightsource with a spotdir and spotcone.
It works fine under IrisGL (compiled with iglopt), but with OpenGL (compiled
with oglopt) I get (with for examples enterprise.flt) a lot of triangles red
instead of gray and the triangles flickers alot. I only get this strange result
on our Onyx (works fine on IMPACTs and Indys).
Does anybody know what the problem is? Is there a patch that I am not having?
Thanks!
/Tomas
--======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html 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:00 PDT