One of the fun things about Powermonger was that the weather changed throughout the game. Green grass gave way to autumn ochre and then onto the snowy white of winter.Seems a simple enough affair of using glTexSubImage() to replace bits of the current terrain texture with pixels from the next season's texture (from our Paris collection...).
Only 2 problems:
1. This has to be done not just for the original texture but also the mipmaps as well.
2. You can see a pattern emerging as the same alterations are used across each tile. I may use a large terrain texture and stretch it across several tiles at a time to solve this.
Anyway, even with a couple of minutes coding, I'm getting rather nostalgic about it. :d
0 comments:
Post a Comment