Vxgi
Voxel cone traced dynamic global illumination.
Install / Use
/learn @nmcela/VxgiREADME

VXGI
This is a deferred renderer with voxel cone traced indirect diffuse and specular reflections, ambient occlusion and soft shadows. The voxel grid is a mipmapped 3D texture which contains a voxelized representation of the directly lit polygonal scene. The cone travels through the mipmap levels and gathers samples along the way.
You're probably most interested in ./src/shaders/ and ./screenshots/.
Build
The application uses OpenGL 4.5, GLEW for loading OpenGL, GLFW for window management, tinyobjloader to load obj-files, lodepng to load png-images, ImGui for the UI and GLM as a math library. All the dependencies are included in the lib-folder.
Build with the following commands:
$ mkdir build && cd build
$ cmake ..
$ cmake --build .
Run the binary from data/vxgi.exe. Press F1 to enable/disable the UI. Use WASD to fly around.
You can also run the binary from the command line with a scene as an argument:
$ cd data
$ vxgi.exe sponza
Selectable scenes include cornell, suzanne, and sponza.
Versions
v1.2 - 12/2023
* added cmake
* added glfw sources
* code cleanups
v1.1 - 11/2020
* public release
v1.0 - 06/2020
References
See Interactive Indirect Illumination Using Voxel Cone Tracing by Crassin et al.
Models and textures downloaded from Morgan McGuire's Computer Graphics Archive.
Licence
MIT
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
