Code Monkey home page Code Monkey logo

react-fluid-animation's Introduction

react-fluid-animation (demo)

Fluid media simulation for React powered by WebGL.

NPM Build Status JavaScript Style Guide

Demo

This is a port of the WebGL fluid animation by Pavel Dobryakov, which itself is a port of GPU Gems Chapter 38. It provides a very fast, stable fluid simulation by iteratively solving the Navier-Stokes equations for incompressible flow.

Install

npm install --save react-fluid-animation

Usage

Check out the demo.

import React, { Component } from 'react'

import FluidAnimation from 'react-fluid-animation'

export default class App extends Component {
  render () {
    return (
      <FluidAnimation
        style={{ height: '100vh' }}
      />
    )
  }
}

Props

TODO

Credits

  • Pavel Dobryakov - Original WebGL fluid experiment by Pavel Dobryakov. This project is a direct port and extension of Pavel's excellent work.
  • GPU Gems Chapter 38 - Fast fluid dynamics simulation on the GPU.
  • jwagner - Similar WebGL implementation.
  • haxiomic - Alternative WebGL fluid experiment.

License

MIT © Travis Fischer

Support my OSS work by following me on twitter twitter

react-fluid-animation's People

Contributors

transitive-bullshit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-fluid-animation's Issues

WebGL 2.0 support on IOS Safari

On IOS Safari a bug in this component/package causes a fatal error and crash.

Steps for repeating:

  • Open the demo on the readme on IOS Safari.

Only seems to be this browser+device combination, both Chrome on IOS and Safari on Mac is fine.

This happens in the demo provided in the readme too: https://transitive-bullshit.github.io/react-fluid-animation/

I know the repo is quite old and may not be maintained anymore, but posting this issue for others to see too.

I've attached a screenshot of the console log if it helps anyone diagnose the issue more, I'll probably look for another implementation of the fluid animation.

First time opening a new issue, so please let me know if any more information is needed.

Image 17-05-2021 at 19 17

Image 17-05-2021 at 19 22

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.