This code is about building a K-d tree on GPU with CUDA & OpenGL compute shaders including the multi-threading version on the CPU.
Visit here to find more.
- 1 key: select the search algorithm with a specific radius
- 2 key: select the K-nn search algorithm.
- up key: increase the radius or the number of neighbors depending on search algorithms
- down key: decrease the radius or the number of neighbors depending on search algorithms
- x key: clear all the searched points
- l key: toggle light effects
- c key: capture the current frame
- SPACE key: pause rendering
- q/ESC key: exit
[1] https://github.com/chezruss/kd-tree