Real-time spiral galaxy renderer built from scratch in C
preview.mp4
# from a shell with msvc attached
build.bat
build\main.exe # make sure to run from root dir
| Key | Action |
|---|---|
| Q/A | angular offset |
| W/S | inner eccentricity |
| E/D | outer eccentricity |
| R/F | time scale |
| U/J | core radius |
| I/K | galaxy radius |
| T/G | star count |
| Y/H | dust count |
base- types, macros, math, arena allocator
platform(plat_)- files, time, memory reservation; os-dependent
window_manager(wm_)- window creation, input, message loop; os-dependent
render(r_)- gpu resources and drawing; implemented per-backend
galaxy(glx_)- particle simulation + renderer
ui- quad drawing (stub)
capymilk(cm_)- app state and frame loop
beltoforion's article was used for implementing the simulation model