PDA

View Full Version : q3 like texture animation



tobiaso
06-25-2002, 10:06 AM
Hi!

Anyone got a clue on how to implement the texture coordinate manipulations seen in q3 shaders.

I know that there are a texture matrix and it should not be so difficult to make scroll, rotate and scale with it. But can it be used for stretch and turb? If so how, if not how? ;-)

Regards!

/hObbE

veal
06-25-2002, 12:17 PM
i can't tell you but i just recently saw a page with full source code of a q3 renderer... which loads all the shaders and shows them (more or less) correctly.. maybe you'll find there a hint..

www.planetquake.com/aftershock (http://www.planetquake.com/aftershock)

greets veal

DFrey
06-25-2002, 12:40 PM
Quake3's renderer does not use the texture matrix at all. It transforms the texture coordinates on its own, because the use of the OpenGL texture matrix lead to inefficient or just plain broken code paths in some OpenGL implementations.