Git Product home page Git Product logo

brokensource / shaderflow Goto Github PK

View Code? Open in Web Editor NEW
64.0 1.0 6.0 1.17 MB

🔥 Imagine ShaderToy, on a Manim-like architecture. That's ShaderFlow. Music Visualizer, Piano Roll, Shader Platform. Fastest Render in the West

Home Page: https://brokensrc.dev

License: GNU Affero General Public License v3.0

Python 89.10% GLSL 10.90%
audio-visualizer fft fourier-transform glsl glsl-shaders livestream midi-visualizer music-bars music-video music-visualization

shaderflow's Introduction

Important

This repository is part of a monorepo and shouldn't be cloned alone

ShaderFlow

Imagine ShaderToy, on a Manim-like Architecture. That's ShaderFlow


🔥 Description

ShaderFlow is a complete Tool for Artists, Musicians and Shader Enthusiasts

A Framework for Creating, Exporting Real Time and Audio Reactive Shaders

  • 🛡️ Open Source, trust and transparency, cross platform, configurable
  • 🧸 80% ShaderToy compatible, easily transfer your knowledge
  • 📔 Video Codecs: easily export to H264, HEVC, AV1, (+NVENC)
  • 🚀 Physics-like animations with control systems dynamics
  • 🔱 High Quality, any resolution, framerate, bitrate, SSAA
  • 🎵 Audio Reactive, live music, professional video
  • 🌊 Audio Waveforms and oscilloscope support
  • 🎥 Video as Texture: real time 4k processing
  • ♻️ Live Reload shaders, instant feedback
  • 🎨 No Watermarks, user first experience
  • ⏳ Perfect Frametimes, no jitter, no lag
  • 🌵 Fastest rendering times in the west
  • 👁 Built-in Camera 2D, 3D, 360°, VR
  • 🎹 Piano Roll scene, the smoothest

📸 Showcase

🎧 • Remember to Enable Audio on the Videos !


2024.2.19.ShaderFlow.Visualizer.mp4

Video: Music Visualizer Tech Demo Scene. Sources: Music and Image. Property of their original owners ⚖️


2024.2.19.ShaderFlow.Bars.mp4

Video: Music Bars Tech Demo Scene. Sources: Music. Property of their original owners ⚖️


2024.2.29.ShaderFlow.Piano.Roll.mp4

Video: Real Time Piano Roll Tech Demo Scene. Sources: Salamander Grand Piano by Alexander Holm, CC BY 3.0 and Midi File for the composition Flight of The Bumblebee by Rimsky Korsakov. Property of their original owners ⚖️


2024.2.22.ShaderFlow.Educational.mp4

Video: Educational Scene about Parallel Plates Capacitor. Source: Coded myself long ago.



🍁 Learn More 🍁

✨ Check out my Awesome Website instead of a boring Readme ✨

Installation Guides, Usage, Tips, Code Reference and More!

shaderflow's People

Contributors

tremeschin 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

Watchers

 avatar

shaderflow's Issues

Demos bars and spec not working

Hello!

How are you doing? I checked out this project and I liked it. It think it can be useful for automated video editing.

I tried all the demos "broken shaderflow {whatever}"

All worked except bars and spec.

When running bars I found a bug at:
BrokenSource/Broken/Optional/BrokenAudio.py

Thread-1 (catch_up_recorder):
Traceback (most recent call last):
File "mydir/.pyenv/versions/3.11.6/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/mydir/.pyenv/versions/3.11.6/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
TypeError: BrokenAudio.catch_up_recorder() got an unexpected keyword argument 'loop'

def start_capture_thread(self) -> None: """Keep recording audio on a separate thread""" BrokenThread.new(self.catch_up_recorder, daemon=True, loop=True)

I am using an Ubuntu22 with python3.11

I just removed loop parameter and no longer showed that error, but the demo still doesn't work.

Both bars an spec shows a black screen in a window. The other ones (default, dynamics, nested and noise) work properly.

When running bars an spec the console just shows this:
│ShaderFlow├┤ 399ms├┤INFO │ ▸ ____ _ _ _____ _
│ShaderFlow├┤ 400ms├┤INFO │ ▸ / || | __ _ _| | ___ _ | | | _____ __
│ShaderFlow├┤ 400ms├┤INFO │ ▸ _
| '
\ / _ |/ _ |/ _ \ '
| |
| |/ _ \ \ /\ / /
│ShaderFlow├┤ 400ms├┤INFO │ ▸ ) | | | | (| | (| | __/ | | | | | () \ V V /
│ShaderFlow├┤ 400ms├┤INFO │ ▸ |
/|| ||_,|_,|_|| || |_|_/ _/_/
│ShaderFlow├┤ 400ms├┤INFO │ ▸
│ShaderFlow├┤ 400ms├┤INFO │ ▸ Made with ❤️ by BrokenSource, Version: (2024.2.6)
│ShaderFlow├┤ 400ms├┤INFO │ ▸ Development version @ Python 3.11.6
│ShaderFlow├┤ 400ms├┤INFO │ ▸
│ShaderFlow├┤ 444ms├┤INFO │ ▸ │ 1├┤Bars │ Dynamically importing (headless) Window class
│ShaderFlow├┤ 445ms├┤INFO │ ▸ │ 1├┤Bars │ Creating Window
│ShaderFlow├┤ 499ms├┤INFO │ ▸ │ 1├┤Bars │ Binding to Window's OpenGL Context
│ShaderFlow├┤ 507ms├┤INFO │ ▸ │ 1├┤Bars │ Finished Window creation
│ShaderFlow├┤ 514ms├┤SUCCESS│ ▸ Found loopback device (Monitor of Built-in Audio Analog Stereo)
│ShaderFlow├┤ 518ms├┤INFO │ ▸ Opening recorder with device (<Loopback Monitor of Built-in Audio Analog Stereo (2 channels)>)
│ShaderFlow├┤ 553ms├┤INFO │ ▸ Making Spectrogram Matrix (20.00Hz - 20000.00Hz) with 1000 bins)
│ShaderFlow├┤ 577ms├┤INFO │ ▸ Making Spectrogram Piano Matrix from notes (D#0 - C#10)
│ShaderFlow├┤ 578ms├┤INFO │ ▸ Making Spectrogram Matrix (19.45Hz - 17739.69Hz) with 119 bins)
│ShaderFlow├┤ 581ms├┤INFO │ ▸ │ 1├┤Bars │ Destroying previous Window
│ShaderFlow├┤ 582ms├┤INFO │ ▸ │ 1├┤Bars │ Dynamically importing (headless) Window class
│ShaderFlow├┤ 582ms├┤INFO │ ▸ │ 1├┤Bars │ Creating Window
│ShaderFlow├┤ 613ms├┤INFO │ ▸ │ 1├┤Bars │ Rebinding to Window's OpenGL Context
│ShaderFlow├┤ 615ms├┤INFO │ ▸ │ 1├┤Bars │ Finished Window creation
│ShaderFlow├┤ 615ms├┤INFO │ ▸ │ 1├┤Bars │ Resizing window to size (1920x1080)
│ShaderFlow├┤ 620ms├┤INFO │ ▸ │ 1├┤Bars │ Changing SSAA to 1.0
│ShaderFlow├┤ 624ms├┤INFO │ ▸ │ 1├┤Bars │ Changing backend to SombreroBackend.GLFW
│ShaderFlow├┤ 625ms├┤INFO │ ▸ │ 1├┤Bars │ Destroying previous Window
│ShaderFlow├┤ 625ms├┤INFO │ ▸ │ 1├┤Bars │ Dynamically importing (glfw) Window class
│ShaderFlow├┤ 627ms├┤INFO │ ▸ │ 1├┤Bars │ Creating Window
│ShaderFlow├┤ 771ms├┤INFO │ ▸ │ 1├┤Bars │ Rebinding to Window's OpenGL Context
│ShaderFlow├┤ 1082ms├┤INFO │ ▸ │ 1├┤Bars │ Implementing file dropping for GLFW
│ShaderFlow├┤ 1083ms├┤INFO │ ▸ │ 1├┤Bars │ Finished Window creation
│ShaderFlow├┤ 1089ms├┤INFO │ ▸ │14├┤SombreroEngine │ Reloading shaders
│ShaderFlow├┤ 1092ms├┤INFO │ ▸ │13├┤SombreroEngine │ Reloading shaders

Please, could you fix it? Or tell me how to do it?

I just want to see all the possibilities of this project to make my own scenes from it.

Thank you!

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.