DIV ARENA FORUMS

animated water texture (for mode 8)

dom cook - 15-12-2016 at 01:59 PM

Here's one that Bread Caster might be interested in!
The screen shot is showing four tiles of a seamless animated water surface texture.
This code could easily be extended to "bake" a water animation texture which could then be put into a mode8 fpg file.
It can be tweaked to vary the style too. for example raindrops of slightly choppy waters.




raindrops.png - 5kB

Don't let this image put you off. It's all about fluid movement which a still won't capture.
Just download it.

Attachment: water_tex01.PRG (3kB)
This file has been downloaded 1436 times

[Edited on 15-12-2016 by dom cook]

MikeDX - 15-12-2016 at 05:21 PM

This is very cool.

Good work Dom :)

dom cook - 16-12-2016 at 04:30 PM

Quote: Originally posted by MikeDX  
This is very cool.

Good work Dom :)


Thanks Mike.

BreadCaster - 17-12-2016 at 08:15 PM

This seems very cool! Like ripples.

So would it be possible to generate these in real time and map them to a sectors floor rather than store them in a .fpg? Im guessing so :p

dom cook - 18-12-2016 at 07:03 AM

Quote: Originally posted by BreadCaster  

So would it be possible to generate these in real time and map them to a sectors floor rather than store them in a .fpg? Im guessing so :p


You'd be the man to ask about that.
When I was tinkering about with Mode 8, it seemed to me that it wasn't willing to allow graphics loaded on the fly. (either for the objects or the map textures) But if it can, then real time implementation should be easy enough. However it is computationally expensive so it would need to be used with caution.

Here's a fun update in which you can use the mouse (left click to make some waves)

Attachment: water_tex01.PRG (3kB)
This file has been downloaded 1399 times

SNAP0000.Png - 6kB