Re: Transform 3d texture coordinates?

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Fri, 23 Apr 1999 12:03:41 -0700


It should do nothing with an identity matrix.

Cheers,Angus.

Frank Foehl wrote:
>
> 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
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Microsoft's system was like a forest that hadn't had a controlled
 burn in decades, just waiting for one person with a match to turn
 it into a disaster. Melissa was Microsoft's fault. They left their
 system wide open to this sort of abuse, they knew it could happen
 and did nothing." -- Bruce Perens

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Apr 23 1999 - 12:03:45 PDT

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