Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

More interactive WebGL (with VBO rebuffering): slippery water...and sticky jello

DZone's Guide to

More interactive WebGL (with VBO rebuffering): slippery water...and sticky jello

· Web Dev Zone
Free Resource

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

Following up on a previous post: the creator of the wobbly cube (with VBO rebuffering) has added new code to his high-performing WebGL app that allows for more complex user interaction.

The result is an unusually satisfying WebGL wave pool:

 

 
which looks better than just another HTML5 wave pool when you actually start to interact (play with mouse and spacebar). The smoothness, courtesy of the vertex rebuffering, really conveys some of the wet indefiniteness of liquid..maybe not water (I'm thinking mercury), but more realistically than ever.

Examine the source on github...

...or don't (whatever, it's Friday), and toss around some kind of awesome (but sourceless, sorry) sticky HTML5 jello complete with customizable jello-physics:



 

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}