Opened 12 years ago
Last modified 10 years ago
#1428 new enhancement
Animated textures
Reported by: | historic_bruno | Owned by: | |
---|---|---|---|
Priority: | If Time Permits | Milestone: | Backlog |
Component: | Core engine | Keywords: | renderer graphics |
Cc: | Patch: |
Description
Could be useful for shoreline waves, ship wakes, other special affects, and UI sprites.
Change History (7)
comment:1 by , 10 years ago
follow-up: 4 comment:3 by , 10 years ago
Do you mean the hanging gardens and the foutain effect? I don't think that's what this ticket is about.
comment:4 by , 10 years ago
Replying to wraitii:
Do you mean the hanging gardens and the foutain effect?
Yes.
I don't think that's what this ticket is about.
OK.
comment:5 by , 10 years ago
Yeah I meant a "generic" system for animated textures, like you specify some data file and a list of textures, and other info about how they should cycle (loop, ping-pong, rate, etc.) that allows using them anywhere other textures work. Right now, I think it's very much hard coded into a few shaders.
comment:6 by , 10 years ago
We should probably try to support something like APNG or MNG in the engine for that.
comment:7 by , 10 years ago
That sounds unnecessarily complicated, since those formats aren't well supported by tools or libraries (even libpng can't read APNG) and would require changes to the texture converter and DDS writer and DDS reader and the texture manager etc. Probably much better to just have a series of files matching a pattern like "something_%03d.png", and some shared code somewhere that will do a wildcard match and load an array of CTexturePtr
s and can return the right one when given the current frame time.
There are animated textures at least on a wonder, can this be closed?