Giter Site home page Giter Site logo

someoneserge / vizfft Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 50 KB

An imgui+webassembly demo visualizing the fft of a plane wave

Home Page: https://someoneserge.github.io/vizfft/

License: MIT License

CMake 6.96% C++ 78.92% Nix 5.35% HTML 8.77%
emscripten eigen3 fft2 imgui nix webassembly-demo webgl

vizfft's Introduction

vizfft

An imgui+webGL toy, visualizing FFT of plane waves.

Dependencies

  1. Get https://nixos.org/download.html ($ sh <(curl -L https://nixos.org/nix/install) --daemon)
  2. Get https://direnv.net/
  3. Get https://github.com/nix-community/home-manager/ with programs.direnv.enable = true and programs.direnv.nix-direnv.enable = true
  4. echo use nix > .envrc
  5. direnv allow

Build native

cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_EMSCRIPTEN=OFF
cmake --build build/

Build WebGL

cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build/
npx http-server build/ -c-1

Roadmap

  • init: a bunch of copy-paste to bootstrap the cmake, glfw, imgui, and emscripten trivia; raii headers in their current form can obviously only be included once, or they won't link correctly
  • build github-pages on a push to master
  • patch the negative DeltaTime issue in firefox
  • switch from GLFW to SDL just to feel the difference between the APIs
  • fft in a separate thread, on a frequency lower than the framerate
  • switching between glfw/sdl via policies?
  • a shader to visualize the implicit periodic extensions of the image
  • an option to visualize an implicitly zero-padded signal
  • 1d signal

vizfft's People

Contributors

someoneserge avatar

Stargazers

 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.