GithubHelp home page GithubHelp logo

francois-esquire / fluid-simulation Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 318 KB

exploration of fluid simulation with webgl - https://francois-esquire.github.io/fluid-simulation/public/index.html

JavaScript 99.76% HTML 0.24%

fluid-simulation's Introduction

fluid simulation in WebGL

A playground for exploring fluid simulation in verious ways, using Pex.gl

Experiments

Smoke simulation

Water 2D

Water 3D

Supporting studies

Camera Input

Terrain noise

Ray marching


App design

The app is the source for events, global values and other core features. On a per frame basis, we can check values of uniforms and other parameters from app.state, we can expect to pick up the updated values without the need to emit there was a change. You can also use state to write your scene shared state like references to textures or parameters you want to share in your render stages that are called from your scene.

scene structure

To create a scene, export a function that returns your render function. Handling cleanup can be done by having your render function return a function for cleanup.

export default function initialize(ctx, app) {
  // initial setup, module state, events, etc
  return function render(state) {
    // draw calls - this function will be run per frame
    return function cleanup() {
      // release any resources and event handlers from initializer
    }
  }
}

fluid-simulation's People

Contributors

francois-esquire avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.