Game Development Community

Are GIFs supported? If not, are there any additional resources that add such support?

by Tetragrammaton · in Torque Game Engine · 07/31/2016 (12:05 pm) · 1 replies

Hello, I've been wondering whether TGE supports GIFs or not. And if the engine doesn't, is there actually any resource that adds support for GIF images?

-Tetragrammaton.

#1
08/01/2016 (6:41 am)
To my knowledge Torque has never supported animated gif images, but I think TGE did support the format at one point. Since the most obvious reason for the question is animations then technically "no" is the answer. I am unaware of a resource that walks through adding support for the format.

First - are you actually using TGE? If so, TGE uses an "ifl" (image file list) file to keep a list of images "bundled" for use in textures. This was used to show state sequences like traffic light cycling or damage state progression textures. Information on using ifl files should still be available in the old documentation on the site - http://docs.garagegames.com/tge/official/ - but I haven't paged through that in a really long time. I know they're also covered in Kenneth Finney's books (3D Game Programming All-in-One) but the first edition might be hard to find (it has been updated to use a version of T3D).

T2D uses celled flat images ("sprite sheets"), or collections of individual images, and a corresponding text file (in TAML format) containing cell size, step, and order information to store animations.