I used the attached code in my latest image version of /Stranger Moon/.
See p.b.i.
To my knowledge, only Zeger Knaepen and Jaime Vives Piqueres have added
this feature to their landscape scenes, both back in 2004 so I do not
know who was first.
- I studied both their - admittedly - very complex /isosurface/
landscapes and extracted the relevant codes for my own designs.
- I changed the code for height_field use as I generally find
isosurfaces too slow for regular use.
- I 'improved' the work flow somewhat and 'improved' the foam texture
more in particular.
- I put the code inside a demo scene for better accessibility of the
feature, so that more people will be tempted to use it in future.
By all means, feel free to change and improve upon the code
--
Thomas
Post a reply to this message
Attachments:
Download 'waterandfoam.7z.zip' (1637 KB)
|