Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Texture Modifying in OpenGL

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 07 December 1999 - 08:34 AM

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


#2 genovov   Members   

122
Like
Likes
Like

Posted 07 December 1999 - 05:19 AM

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.


#3 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 07 December 1999 - 08:34 AM

Hi genovov,

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





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.