ulrich (ulrich++at++realax.com)
Fri, 06 Jun 1997 10:48:09 +0200
I've experimented with the perfly-source and got some problems when
I tried to define a specific lightsourcecone for the 'sun'-lightsource
which is setup in function 'initEnvironment' in 'common/env.c'.
Here's my modified 'initEnvironment(...)':
void
initEnvironment(void)
{
pfEarthSky *es;
/* Initialize sun */
ViewState->sun = pfNewLSource();
ViewState->sunDCS = pfNewDCS();
/* NEW: changed lightsource to finite */
pfLSourcePos(ViewState->sun, 0.0f, -1.0f, 0.0f, 1.0f);
/* NEW: define direction and cone of lightsource */
pfSpotLSourceDir(ViewState->sun, 0.0, 1.0, 0.0);
pfSpotLSourceCone(ViewState->sun, 1.0, 30.0);
.
.
.
}
The result of these few changes is that the scene is rendered with
strange colors flickering on every movement.
BUT: this only happens on a RE2. I tried it on an IR, Indy, ... and it
worked fine. If I define a second lightsource in the commandline
everything looks alright even on a RE2.
Do I need a patch for my RE2?
thank you,
Ulrich Huenemoerder.
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
SGI DevForum 97 info: http://www.sgi.com/Forum97/
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:24 PDT