PFSTATIC_CONVERTERS

New Message Reply Date view Thread view Subject view Author view

Tomas Moller (tompa++at++clarus.se)
Wed, 12 Jun 1996 16:13:05 -0600


Hello!
I get some nasty effects when changing the pfLightsource in motif.C.
I change into the following:

    // 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


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:53:00 PDT

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