Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
texture_animation [2015/10/11 18:14]
chris
texture_animation [2015/10/11 18:15] (current)
chris
Line 2: Line 2:
  
 Texture animation in the world is achieved by using a a single texture, with 64 frames (8x8), running over the course of 4 seconds (16 FPS).  The texture can be any square size (eg 2048x2048, 1024x1024, etc), as it will be pre-processed before loaded into the game.  The frames progress first by going across the X axis, and then down the Y axis. Texture animation in the world is achieved by using a a single texture, with 64 frames (8x8), running over the course of 4 seconds (16 FPS).  The texture can be any square size (eg 2048x2048, 1024x1024, etc), as it will be pre-processed before loaded into the game.  The frames progress first by going across the X axis, and then down the Y axis.
 +
 +## Texture matrix
  
 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Line 33: Line 35:
         }         }
 </​code>​ </​code>​
 +
 +## Generating the texture
 +
 +There are a few ways you can generate these textures. ​ If you're so inclined, you can always create them by hand via photoshop or gimp, but I also wrote a tool you can use to generate them from frames found at https://​bitbucket.org/​zix99/​pab