Build on oolonGoo
01 Developers
oolonGoo is free and open source, and always will be. Script it, build it, or work on the engine.
Build from source
oolonGoo is written in Rust. The repository pins the toolchain, so rustup installs the right one on the first build. You need a GPU with a Vulkan 1.3 driver (on macOS, MoltenVK).
git clone https://github.com/pelchat/oolongoocd oolongoocargo build --release -p og-app -p og-cliTwo programs
oolongoo-app is the visualizer. Everything in its menu is also a command-line flag, so it can run unattended: a Raspberry Pi behind a projector, a screen in a venue, an installation started by systemd or cron. Listings come as JSON, and exit codes say what went wrong.
oolongoo-app --set fps_cap=30 --set render_scale=75 # save settings without opening a windowoolongoo-app --print-settings # the settings this run would use, as JSONoolongoo-app --list-devices --json # capture devices, machine-readableoolongoo-app --kiosk --playlist Lounge --preset-mode beat-sync --device systemoolongoo is for preset authors and engine work. It renders a preset headless and deterministically to PNG frames with the per-frame state as JSON, lints presets, runs EEL code, assembles shaders, analyses audio, checks a whole preset collection and reports on the GPU. It also renders, lints and packs .oogoo presets, and plays them in a live window.
oolongoo render --preset my.milk --audio song.wav --frames 300 --dump-dir out/Every flag and command of both programs →
.oogoo presets
oolonGoo's own preset format, for authors who want more than a .milk file allows: WGSL shaders with multipass buffers, compute passes and GPU particles. It is in development and plays in the developer tool for now. .oogoo presets →
TouchDesigner
A pipeline that interfaces oolonGoo's shader control with the TouchDesigner API is in development, so a TouchDesigner network can drive a preset's shader parameters live. TouchDesigner integration →
Inside the engine
The engine is a Cargo workspace. Each stage of the pipeline is its own crate, written and tested against a specification of how presets behave.
og-app- The visualizer: window, menu, settings, playlists and the command line.
og-engine- Frame orchestration: preset loading and blending, the EEL machines, constants, time and random numbers.
og-render- The Vulkan renderer: render targets, passes, pipeline cache, textures, warp mesh, fixed-function emulation.
og-preset- .milk and .milk2 reader: parsing rules, key tables and defaults, as presets expect them.
og-eel- EEL2 compiler and virtual machine, with x87-style arithmetic for preset equations.
og-hlsl- HLSL front end for Direct3D 9 shaders (shader models 2 and 3), lowered to SPIR-V.
og-shader- Preset shader assembly: preamble, shader body, samplers and constants.
og-md3- MilkDrop 3 preset support: .milk2 double presets, feature flags and transition patterns.
og-dxso- Direct3D 9 shader bytecode: parser, assembler, a reference interpreter and translation to SPIR-V.
og-oogoo- .oogoo presets: WGSL shaders, named multipass buffers, compute passes and GPU particles.
og-audio- Audio capture and analysis: the waveform, FFT and bass, mid and treble levels that presets read.
og-sync- Beat sync: tempo, downbeat, phrase and section analysis of live audio.
og-core- Shared pieces: compatibility flags, deterministic random number generators, x87 emulation, the frame clock.
og-jpeg- A port of the libjpeg 6b decoder that Direct3D 9’s texture loader uses, for preset textures.
og-imgdiff- Image comparison for golden-image tests.
og-cli- The oolongoo developer tools.