Page 1 of 1
playing an animation in a frame
Posted: 04 Jan 2013, 03:51
by hani_l
Hi there
I am trying to play an animation or a sequence as the bdrops in the menu , does any one has an idea how is this possible ?!
Re: playing an animation in a frame
Posted: 04 Jan 2013, 17:12
by aubergine
You'd probably have to change the C++ code to make that happen. Currently backdrops are just static images.
That being said, depending on which library is used to display images, it might support animated gifs if renamed to .png (I assume any decent image library will look at file headers to correctly determine what type of image format it is)?
All the info I have on the backdrops is in the wiki:
https://warzone.atlassian.net/wiki/disp ... kdrop+Mods
Re: playing an animation in a frame
Posted: 04 Jan 2013, 17:31
by NoQ
I wish wz supported APNGs as textures ... oh, sorry, it's not the corrupt-a-wish thread.
Re: playing an animation in a frame
Posted: 04 Jan 2013, 18:01
by aubergine
That would indeed be a dream. Although is there much software yet for creating APNGs? Last time I looked, a few years back, APNG was still a very obscure thing with almost no support in graphics apps, etc.
Re: playing an animation in a frame
Posted: 04 Jan 2013, 18:36
by Emdek
aubergine, support would be more wide if it would be official extension for PNG specification... I've looked in their specification (for APNG) long time ago and AFAIR it wasn't very complex, AFAIK basically file consisted of standard PNG data (for backwards compatibility) followed by by some chunks defining behavior of next frame and frame data.
Well, exact definitions and list of software that supports it is available on WIkipedia:
http://en.wikipedia.org/wiki/APNG
Re: playing an animation in a frame
Posted: 07 Jan 2013, 03:03
by hani_l
thanx all for your replies , yes I know i have to change the code but i want to change as little as possible and the animation i want to play is not a long one , it can be as short as 60 frames! but i want to play it in a loop (a background and a burning flame and a waving flag!) i was thinking about refreshing the bdrops on intervals!! but to be honest i am new at this and i am not sure if this is gonna work or if it works if it is the best way to do it