Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Texture Modifying in OpenGL


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   -  Reputation:

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


Sponsor:

#2 genovov   Members   -  Reputation: 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   -  Reputation:

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.



PARTNERS