Skip to main content
gamedev.net
🔒 Locked

Texture Animation

Started by wtopace Jul 25, 2002 at 4:31 PM 2 replies 350+ views
Original Post
wtopace
wtopace
Does anyone know how you can add animation in open gl? Kind of like how you do with bitblt in VB. Say i have have img1, img2 & img3 all sprites of one character walking, how could you animate it together?
a2k
a2k
i would load all your frames into textures, and then just bind the particular one to a quad based on the time of the animation.

a2k
------------------General Equation, this is Private Function reporting for duty, sir!a2k
wtopace
wtopace
Ive tried something like that, if im thinking the same thing you were thinking. Ive loaded them all as textures, then draw them over each other in the right order with a timing in between. This doesnt seem to work because its real flashy. Maybe you have a better idea of how to set up a timer in between them.
llvllatrix
llvllatrix
take a look at the avi player @ nehe''s site. Just use the texture it generates.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.