animated, repeating, water textures in OpenGL

Discussion in 'Indie Basics' started by oddvark, Aug 1, 2017.

  1. oddvark

    Original Member

    Joined:
    Sep 27, 2004
    Messages:
    68
    Likes Received:
    0
    Hello,

    I'm working on a very simple 2D game that is a perfect Top Down game, like old Civilization games or Ultima 1-4 games. I have water that I'd like to animate with something like this:

    http://4.bp.blogspot.com/-9F5e4P9Jx...Water_WaveAnimation_16frames_SeamlessTest.gif

    I'm curious what route you guys took for this? That particular image is a gif, and my thoughts are I can take the individual images of the gif and put them all into one texture. Then "flip" through the textures by changing the texture coordinates. I would then blend that texture with my current texture (because I already have a shoreline textures that I want to use). Does this sound about right? What other options are there?
     

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer