From 341ea861c8189cefe8689bd41d8adbe2cd2d87b2 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 28 Jul 2025 02:16:09 -0700 Subject: add gallery --- Images/fft_blue_noise.png | Bin 0 -> 690932 bytes Images/fft_delta.png | Bin 0 -> 92765 bytes Images/fft_mandrill.png | Bin 0 -> 1353191 bytes README.md | 25 +++++++++++++++++++++---- 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 Images/fft_blue_noise.png create mode 100644 Images/fft_delta.png create mode 100644 Images/fft_mandrill.png diff --git a/Images/fft_blue_noise.png b/Images/fft_blue_noise.png new file mode 100644 index 0000000..a8b0a34 Binary files /dev/null and b/Images/fft_blue_noise.png differ diff --git a/Images/fft_delta.png b/Images/fft_delta.png new file mode 100644 index 0000000..4cf7f45 Binary files /dev/null and b/Images/fft_delta.png differ diff --git a/Images/fft_mandrill.png b/Images/fft_mandrill.png new file mode 100644 index 0000000..bf94f6a Binary files /dev/null and b/Images/fft_mandrill.png differ diff --git a/README.md b/README.md index 0443a2f..cdb369d 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,6 @@ This is an optimized GPU-based 2D FFT for VRChat. Since it uses RenderTextures, it is only suitable for use in worlds. -Please take note that the FFT is generated in bit-reversed order. You'll have -to bit-reverse your indices when accessing it. See `apply_2d_bit_reversal` in -`gpu_fft.cc` for an example of how to do that. - ### Quick start Clone the repo into your unity project. Open the scene. @@ -35,3 +31,24 @@ compute FFTs with a shorter CRT chain. `DFT_MATRIX` corresponds to `ShaderUniforms.twiddle_factors` in the simulator and `STAGE_TWIDDLES` corresponds to `ShaderUniforms.stage_twiddles`. +### Gallery + +Each of these images shows the following, from left to right: + +1. Original image. +1. FFT stage 0. +2. FFT stage 1. +3. FFT stage 2. +4. FFT stage 3. +5. FFT bit reversal. Numpy reference image is shown above. +6. IFFT stage 0. +7. IFFT stage 1. +8. IFFT stage 2. +9. IFFT stage 3. +10. IFFT bit reversal. The original signal is recovered. + +!["Mandrill."](./Images/fft_mandrill.png) + +!["Blue noise"](./Images/fft_blue_noise.png) + +!["Delta impulse."](./Images/fft_delta.png) -- cgit v1.2.3