Transform 3d texture coordinates?

New Message Reply Date view Thread view Subject view Author view

Frank Foehl (foehl++at++rus.uni-stuttgart.de)
Tue, 13 Apr 1999 14:50:25 +0200


I've tried to use a geostate's PFSTATE_TEXMAT attribute
to transform the texture coordinates I've previously set.

I guessed it might do this, although I haven't found any
documentation. However the following code seems to
generate excessively large, or corrupted texture coordinates,
at least the result does not look sensible.

It may be just that I'm thick, but shouldn't it do nothing
at all, after all I set the identity matrix?

pfMatrix texmatrix;
texmatrix.makeIdent();
geostate->setMode(PFSTATE_ENTEXMAT, PF_ON);
geostate->setAttr(PFSTATE_TEXMAT, &texmatrix);

Cheers,
  Frank


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Apr 13 1999 - 05:50:44 PDT

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