Advertisement

moving textures

Started by March 10, 2001 02:03 PM
1 comment, last by The Kid 23 years, 8 months ago
Does anyone out there know how to make moving textures ? What I mean is : Say you have a quad, and you texture it. But you want the texture to move around the quad, like a tank tread. Smilar to the effect displayed in NeHe''s "water" demo. Know what I mean ? The Kid I don''''t know what the future holds, but I know who holds the future.
I don''t know what the future holds, but I know who holds the future.
Use glTexParameterfv to make the texture have wrapping coords, then just increase both coords steadily to make it "scroll" along the quad.

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://www.gdarchive.net/druidgames/
Advertisement
Use the texture matrix with glTranslate(..); (it''s accelerated in hw)

This topic is closed to new replies.

Advertisement