Advertisement

Texture Modifying in OpenGL

Started by December 07, 1999 02:34 PM
1 comment, last by GameDev.net 25 years, 2 months ago
I'm new to OpenGL, but it would seem to me that if you aren't animating the texture proceduraly, you could create a texture object for each 'frame' of texture animation. Then, when you're texturing your objects, select the texture id to bind based on the frame number, or use the ammount of time that passed since the last texture was bound and rendered.

For instance, if you have a texture of a button, and you want it to flash from green to red, you could load a texture object for both the red and the green one. Save thier id's, and when you have to render the button, alternatly bind the red and green texture id. This would have the effect of having the button change texture every frame.

Sorry I can't offer any code, but that's the first thing I would try.

Hi Folks,

I want to know how to make animated textures
in OpenGL. What are the basics? Has anyone
an idea? Are there some good Homepages?
I would be very happy for a answer.
Thank you,

Hannes

Advertisement
Hi genovov,

That is quite a good idea.
I try to do that.
Thank you

This topic is closed to new replies.

Advertisement