Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Wed, 22 May 1996 19:47:24 +0100
Is this an IrisGL compile right?
If it is then your geometry geoset colour attribute bindings are turning off
your lighting. Try transparency information in your colour attributes for your
vertices.
>
> The second problem, texturing. I made my own pfdLoadFile_xxx based on one of
> the provided ones, and added texture coords to it (and setting buffer->tbind
=
> PFGS_PER_VERTEX). A debugging session showed valid values being set for S and
> T. Then I tried to enable texturing with:
> pfTexture *tex = new pfTexture;
>
> tex->setFilter(PFTEX_MINFILTER, PFTEX_BILINEAR);
> if (tex->loadFile(textureName))
> {
> gstate->setAttr(PFSTATE_TEXTURE, tex);
> gstate->setMode(PFSTATE_ENTEXTURE, PF_ON);
> gstate->setAttr(PFSTATE_TEXENV, new pfTexEnv);
> }
> Again, no dice. The scene is appropriately slower (Indigo Elan), but my
surface
> is not textured. (It is a bit darker, however).
Slower and darker is a good sign :), it suggests your texture coordinates are
not being bound or are somehow bogus.
What texture coordinates are you using?
What texture image do you load?
Is the image loading correctly?
Have you previously display listed your geoset?
>
> I am able to supply more source code if necessary. Any help would be GREATLY
> appreciated.
>
> Richard
>
> --
> O o~ o_O/ Richard Owens
> /|-o _______|_______ \ PSI/NRL Code 7183
> / \ | | |\ Richard.Owens++at++nrlssc.navy.mil
> =======================================================================
> 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
>-- End of excerpt from Richard M. Owens
--
Angus Dorbie,
The Reality Centre,
Silicon Graphics Ltd, UK
dorbie++at++reading.sgi.com
=======================================================================
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:52:55 PDT