Code Monkey home page Code Monkey logo

skunami.js's Introduction

skunami.js

Introduction

This is a collection of JavaScript / GLSL height field water libraries for Three.js plane meshes.

Available Height Field Water Types

  • Pipe Model ("Fast Hydraulic Erosion Simulation and Visualization on GPU", Xing Mei, Philippe Decaudin and Bao-Gang Hu, Pacific Graphics 2007)
  • X Water ("2D Water", Hugo Elias)
  • Mueller GDC 2008 ("Fast Water Simulation for Games Using Height Fields", Matthias Mueller-Fisher, Game Developers Conference 2008)
  • Mueller GDC 2008 Hello World ("Fast Water Simulation for Games Using Height Fields", Matthias Mueller-Fisher, Game Developers Conference 2008)
  • Tessendorf iWave ("Interactive Water Surfaces", Jerry Tessendorf, Game Programming Gems 4)

Features

  • GPU-based height field water simulation for fast performances on high resolution meshes
  • Different types of user interaction with the water: source, sink, disturb
  • Water ripples reflect off terrain and static obstacles
  • Two-way coupling with dynamic rigid body objects i.e. water makes objects float while objects create ripples on water after displacing it
  • SKUNAMI.GpuPipeModelWater is able to accumulate behind terrains and static obstacles

Examples

1) Water Types [Demo]

   ScreenShot

  • Different water types and their behaviour upon user interaction
  • Flooding control to change water level

2) Obstacles [Demo]

   ScreenShot

  • Reflection of water ripples that bounce into terrain and static obstacles
  • Accumulation of water behind terrain and static obstacles

3) Two-Way Coupling With Dynamic Rigid Bodies [Demo]

   ScreenShot

  • Dynamic objects (and terrain) cause ripples on water after displacing it
  • Water makes the dynamic objects float

Documentation

License

Released under The MIT License (MIT)
Copyright (c) 2013 Skeel Lee (http://cg.skeelogy.com)

skunami.js's People

Contributors

skeelogy avatar

Watchers

Gijs Nijholt avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.