[ Bounty ] Convert 2D Bar Graph to 3D Bar Graph with Perspective Projection (fixes #1) - #8
Open
lannerwsf wants to merge 2 commits into
Open
Conversation
Implements the 'Add Audio Variables' feature request (devlup-labs#2): - Compute band loudness from FFT magnitudes: - Bass: 20–250 Hz - Mid: 250–4000 Hz - Treble: 4000 Hz – Nyquist - Add EMA-smoothed (attenuated) variants: bassAtt, midAtt, trebleAtt - Expose all six values through FFTProcessor and AudioProcessor APIs - Smoothing factor of 0.15 for natural decay response Reference: projectM implementation pattern for band energy extraction.
…lup-labs#1) Convert the 2D bar graph into a 3D bar graph visualization with: - Perspective projection and orbiting camera for depth perception - X-axis: frequency bands, Y-axis: amplitude, Z-axis: time evolution - 3D bar boxes (6 faces, 12 triangles per bar) with depth testing - FFT history buffer stores up to 64 frames along the Z-axis - Automatic camera orbit for full 3D viewing experience - Age-based dimming on older bars for depth cue - New visualization option devlup-labs#5 in main menu - Dedicated 3D vertex shader with MVP matrix uniforms Files: - src/visualizations/BarVisualization3D.h/.cpp - src/visualizations/vertexShader3D.glsl - src/main.cpp (added option 5) - src/Makefile (added new source)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR converts the existing 2D Bar Graph visualization into a 3D Bar Graph visualization with perspective projection, addressing Issue #1.
Key Features
Concept
Files Changed
src/visualizations/BarVisualization3D.hsrc/visualizations/BarVisualization3D.cppsrc/visualizations/vertexShader3D.glslsrc/main.cppsrc/MakefileCloses #1