Animated .gif Textures

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Animated .gif Textures

Post by dejai »

Does irrlicht have plans to implement, .gifs and .gif animations into the engine, I think it could be a nice implementation. A video of this working with Valves source engine can be found here. Oh I can't find the link but source has this feature :D
Programming Blog: http://www.uberwolf.com
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Nope, unlikely to happen as a standard image loader any time soon.
If there is a gif loader available under a liberal license, we'd still need a way to load the frames as a load of separate textures or as part of a larger texture, and a way to reference the frames.
So it would have to be external, added in a hacky way, or need some changes to the API
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

An IMultiImage or something should be possible and also useful for other purposes (e.g. cubemaps, separate channels, maybe mipmaps). But I still wouldn't favor gif as a format. MNG has the same features, but is free and uses better algorithms. But of course you can do all this stuff already now, by splitting the animation into single images (or a large one) and use the textur animation stuff. Someone recently posted a texture animation creator from animated meshes, so you wouldn't even need to use gif animator tools.
vermeer
Posts: 2017
Joined: Wed Jan 21, 2004 3:22 pm
Contact:

Post by vermeer »

by all means

don't use animated gif:

256 colors forced reduction, that's terrible for many reasons.

It's nice as it retains the timing pause per frame, if needed, but mng does also.

When even APNG is out , working fully (there's a free windows editor) in firefox 3 beta, going back to gif is...

I'd have my vote for plain PNG file sequence. I know dds are more optimal, but ppl may have issues finding tools...image magik I think would help here, plus some free nvidia tools..neither I dunno if for particles case dds in irrlicht would be an advantage(dds is used more optimal by 3d card, I think) and ppl dealing with alpha channels will have more issues with game engines...

While Virtual dub can export a full long vid in PNGs, and even more, blender can render particles *with* alpha channel, ready to go, as PNGs (or tgas, etc) , so would be direct.(add to it the great power in particles, hair rendering, demolition, cloth, etc, that is being adde to blender lately... )

My 2 cents

edit: any format adition is useful, but if counts optimizing efforts, and you have to choose, I'd go for direct control through the engine of th multi image effect (ie, be able to blur particles move in case of water, is probably what lacks as more important in many water demos)
So, imo a serie of pngs is more flexible and has more quality. In the least case, MNG, but I think is worse as in the case we memntion, not animated toons, is not worth the hassle...there's very few mng free tools...and good ones, none, imo. Irfanview can preview averagely well MNGs, but not all MNGs.Depends on the tool that exported. (or merely, ecrtain tool exports MNGs that wont work on irfan)

The flexibility with series of PNGs is better, pipeline wise: You can edit in Gimp , Paint.net or PS, any isolated frame or chung of frames. you can output from blender, PS (useful batch Actions here) , a video editor (you will loose transparency in this case) , etc. you can mix outputs of all, with no probs.


What i think could be nice is engine addition to blur between thos image -frames, sort of way more real.
Finally making games again!
http://www.konekogames.com
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

The LZW patents have expired, and it would be a nice format to support eventually out of convenience. I agree it has no real technical benefit because of the limitations vermeer mentioned.. but there's loads of gif images out there so it would be a feature worth boasting about, and would be useful for tools that use Irrlicht.
Not really a top priority though.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah i wouldn't think gifs are worth supporting really, they're pretty bad compression and give you really bad artifacts sometimes.

I found a really useful website which unpacks gifs into their seperate frames and have used that a lot to use animated gifs in irrlicht with the texture animators.
Image Image Image
vermeer
Posts: 2017
Joined: Wed Jan 21, 2004 3:22 pm
Contact:

Post by vermeer »

for that, you may use surely image magik (free, cross platform, command line converter and editor/fixer) , or also surely: Gimp with the anim module, Animation Shop, Irfanview, or Image ready (comes with PS.)
Finally making games again!
http://www.konekogames.com
Post Reply