Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Store/Access the Output of Previous FFT Samples #233

Open
TylerTheHumanCompiler opened this issue Jun 8, 2022 · 0 comments
Open

Comments

@TylerTheHumanCompiler
Copy link

TylerTheHumanCompiler commented Jun 8, 2022

Hello,

Is there a way to request inside the shader the FFT output of previous passes, for example the last 60-120 frames? I saw there is the option to get the previous pass in the texture case SRC_PREV in rencer.c, so I think it shouldn't be that difficult to increase this to a reasonably higher number, but I'm unsure where to begin. I intend to write a wire mesh shader that draws the FFT in 3d fading backwards time. That would further require to pass the frame counter as an int to the shader in order to cycle through the previous passes.

In an unrelated matter: why is the number of bars nbars computed in the shader upon every frame given that is mostly a static value?

By the way, thank you very much for glava! This package is so awesome! Here is my desktop (I slightly modified the bars shader for better dynamic response).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant