Giter Club home page Giter Club logo

water_effect's Introduction

Water Simulating With OpenGL

Introduction

  • 方向键 Up 拨水
  • mouse right press 拨水
  • mouse left press 放石头

image-20200611174710805

Water Effects

  • 水波
  • 石头撞击水面触发浪花
  • metaball模拟浪花

Detail

水波模拟,将水波看成很多弹簧,每个弹簧会和周围的水柱作用,影响彼此的速度,并且给一个速度衰减。

石头,在水面上方自由落体,触碰到水面因为冲击力减速,在水中可以看到水和石头blend效果

水滴,使用metaball技术,水滴之间距离很近时有融合效果。生成水滴的速度取决于石头撞击水面的速度,当水滴落回水中时消失

Background,纹理贴图

github

water_effect's People

Contributors

anlarry avatar

Watchers

James Cloos avatar  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.