Horde3D
http://horde3d.org/forums/

Animated overlays [SOLVED]
http://horde3d.org/forums/viewtopic.php?f=1&t=691
Page 1 of 1

Author:  Siavash [ 03.04.2009, 09:45 ]
Post subject:  Animated overlays [SOLVED]

How to create animated overlays? I don't mean simple move/rot/scaling by coding, I mean something like loading animated gif/mng anims with alpha channel.

Is there anyway to load and draw them directly? [without using materials/textures]

thanks :wink:

Author:  SpOOky [ 03.04.2009, 10:27 ]
Post subject:  Re: Animated overlays

if you have all your overlay "states" like this, in a single image:

Image

you can "animate" it by drawing each time another part of it. you can set wich parts are drown by setting different uvs for each corner in the showOverlay() method.

Author:  Siavash [ 03.04.2009, 14:37 ]
Post subject:  Re: Animated overlays

Good idea :idea:

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/