Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Animated Volume Texture

Views: 120 | Comments: 6   

I put a lot of work into the Pixmap class because I wanted to be able to load, manipulate, and save images in DDS format with all features supported. Here I loaded a sprite sheet, copied the cells into different pixmaps, then save an array of pixmaps as a volume texture. Scrolling the W component of the UVW texture coordinate results in a smooth transition between animation frames.

With this approach, water, fire, explosions, as well as animated sprites can each be stored in a single DDS volume texture and loaded at once. The volume texture can be applied to a material for easy texture animation, in a standard file format that can be opened in many programs, and it supports compressed texture formats.

Here's a sample:


  • Like 1

User Feedback

  • Create New...