Coder Social home page Coder Social logo

sermonis / webgl-ocean-fft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frederoche/webgl-fft-ocean-

0.0 0.0 0.0 39.64 MB

Webgl Ocean based on Tessendorf paper. Implementation of Phillips spectrum and its inverse FFT

TypeScript 39.91% JavaScript 48.92% CSS 0.44% HTML 10.73%

webgl-ocean-fft's Introduction

Webgl-FFT-Ocean-

Webgl Ocean based on Tessendorf paper. Implementation of Phillips spectrum and its inverse FFT.

The grid used is a projected grid from screenspace to worldspace. The static, dynamic Phillips spectrum and the inverse FFT of it is displayed on the left panel.

To run the program:

  • Use nodejs app.js.

Commands:

  • W: toggle wireframe
  • Left, right, up, down arrow: displacement given a direction
  • s,x: pitch,
  • a,z : up, down

Small program written in typescript. It displays a wave constructed by the inverse FFT of the Phillips spectrum.

Further work:

  • The sun is missing, should be aaded in the skybox shader
  • Better and more realistic scattering should be implemented
  • better UX
  • remove symmetry on the ocean by blending it with perlin noise
  • port the FFT on the GPU

Demo (projected grid)

Video

webgl-ocean-fft's People

Contributors

frederic81 avatar frederoche 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.