Re: Quick question about TexGen.

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Wed, 17 Feb 1999 18:22:22 -0800


Depends where you generate the coordinates.

You have 2 choices, object or eye space.

One is before modelview and the other is after the modelview matrix.
This ofcourse determines which vertex coordinate is used for the
comparrison with the texgen plane equations to produce the various
coordinates.

Then once generated the texture coordinate is transformed through the
texture matrix which you can load with anything even projective matrix.
Typical operations are shadowing the model matrix or inverse view matrix
in order to produce 'world' space coordinates.

There's a detailed description in the "Aqua" section and more in the
"UAV" section of www.dorbie.com.

Cheers,Angus.

Kenneth R. Sewell III wrote:
>
> When does TexGen generate texture coords? I am using TexGen on a model
> and I would like to generate texture coords, and then distort the
> model. Is there anyway to control when the Texcoords are generated?
> Thanks.
>
> Ken
> Sewell++at++siscom.net
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux

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 Wed Feb 17 1999 - 18:22:26 PST

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