Sign in to follow this  
Downie

[C++][DX 10] Animated Gifs

Recommended Posts

I read somewhere that DirectX does not support animated Gifs so how do you achieve animated textures in DX10? I know in DX9 you could use sprite sheets but can you do something similar in DX10? Thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by Downie
You mean just load all the GIF frames into a texture array and then switch between array elements based on time?

Cool. Thanks for the advice.


Just keep in mind that there is a limit of 512 array slices therefore you can only store 512 frames this way. If you need more you need to create texture atlases where multiple frames are stored at different positions in one slice.

There is another limit that guarantees only textures with up to 128 MB. But this shouldn’t hardly a problem with GIFs.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this