I would like to create a 2D game with animated animals. But it seems like Irrlicht does not support the gif format as the program crashes when I tried it out.
Is there other way to display animated 2D images?
How to display animated 2D graphics?
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Yes, have a look at the examples that come with the Irrlicht SDK. There's even one named 2dgraphics. And the (tech)demo also contains an animated portal (drawn in 3d, but using 2d techniques). Animated GIF is a pretty lousy format for gameplay (especially because it's just a set of images, there's no special feature which would make animated gifs advanced over any other format.
I think someone should add an official image animator into the sdk.
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
There is an official image animator... it's the texture animator that you can apply to billboards (or any scene node i suppose..).
Weng, I used this website to get the source images of a .gif seperated out into individual images and then used the texture animator to play the animation in irrlicht.
Weng, I used this website to get the source images of a .gif seperated out into individual images and then used the texture animator to play the animation in irrlicht.
How about non-texture one? I mean for 2dgraphics.it's the texture animator that you can apply to billboards (or any scene node i suppose..).
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
I did simple animated sprite class, you may look at it:
http://irrlicht.sourceforge.net/phpBB2/ ... highlight=
http://irrlicht.sourceforge.net/phpBB2/ ... highlight=
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
http://hge.relishgames.com/
for pure 2d games.
Im not discrediting irrlicht in any way at all...
BUt this is a 2d engine.
Someone port it to irrlicht, its free and OS
for pure 2d games.
Im not discrediting irrlicht in any way at all...
BUt this is a 2d engine.
Someone port it to irrlicht, its free and OS