Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I want to have a plane that shows an animated Gif as it's texture, so essentially it will be a movie. Can I apply an animated Gif as a texture? If so, does it apply like a normal texture? Note: I know about Movie Textures, but don't want to use them

share|improve this question
3  
the GIF file format was subject to patents for really long time and the graphics industry has not a really good support for this format since it's not a really good format for this purpose ( animation ) and there are other ways to do almost the same thing with some simple sprites putted in series in a single image and used in sequence when you want to animate your character. –  user827992 Aug 26 '12 at 15:24
    
@user827992 So I would do something like described here where I am constantly changing the texture? –  Outlaw Lemur Aug 26 '12 at 15:25
1  

1 Answer 1

up vote 5 down vote accepted

Short answer is no. You will need to convert the GIF to an atlased texture (a single 2D image that has all the GIF frames in it) and then cycle the UV coordinates on a textured quad to change which frame is currently visible. This is not particularly hard to do, and there are existing sprite animation packages for Unity that can do most of it for you (you'll likely have to create the atlas yourself, or at least split the GIF into separate PNG images for each frame to use an existing atlas creator).

share|improve this answer
    
Thanks, and what object would I use to do this? –  Outlaw Lemur Aug 26 '12 at 16:40
    
You can animate the UVs of a mesh component manually. There are packages in the Asset Store that do all of this for you, but I don't have experience with any of them so I can't make a recommendation as to which to use. –  Sean Middleditch Aug 26 '12 at 16:44
    
I have no personal experience with it, but I hear ShoeBox is pretty slick. It supports converting animated GIFs to Unity texture atlases. –  postgoodism Aug 27 '12 at 4:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.