moving textures
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
http://www.gdarchive.net/druidgames/
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://www.gdarchive.net/druidgames/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement