Opened 9 years ago

Last modified 7 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 fabio, 7 years ago

There are animated textures at least on a wonder, can this be closed?

comment:2 by leper, 7 years ago

Those only work with GLSL.

comment:3 by wraitii, 7 years ago

Do you mean the hanging gardens and the foutain effect? I don't think that's what this ticket is about.

in reply to:  3 comment:4 by fabio, 7 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 historic_bruno, 7 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 wraitii, 7 years ago

We should probably try to support something like APNG or MNG in the engine for that.

comment:7 by Philip Taylor, 7 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 CTexturePtrs and can return the right one when given the current frame time.

Note: See TracTickets for help on using tickets.