Lunaris
Lunaris brings a Houdini Solaris-style USD workflow into TouchDesigner: a composed USD stage built by operators, drawn live in Storm, and rendered by a real-time GPU path tracer that runs inside a GLSL POP.
The parts
| Part | What it is | Where |
|---|---|---|
| LunarisCore | The USD library every operator calls: stage cache, layer edits, scene extraction for the tracer. | cpp/LunarisOps/LunarisCore*.{h,cpp,inl} → lib/LunarisCore.dll |
| Lunaris operators | Custom DATs and POPs: Sublayer, Reference, Set Variant, Assign Material, Light, POP Import, Stage POP … | cpp/LunarisOps/ → plugins/ |
| Storm TOP | Hydra Storm drawing the composed stage into a TOP. | cpp/StormTOP/ |
| Path tracer | Hardware ray queries in a GLSL POP: GGX BSDF, glass, UsdLux lights, HDRI dome, MaterialX, accumulation + OptiX denoise. | shaders/lunaris_trace.glsl, python/lunaris/pathtrace.py |
Pages
- Path tracerHow a frame is made: inputs, materials, lights, sampling, accumulation
- MaterialXMaterialX standard_surface in the path tracer: what maps, what is approximated, what comes next
- PerformanceWhat the tracer already does to save work, and the ranked plan for the rest
- TestingHarnesses, test scenes, and how to test a scene live without touching the project
Status, 2026-11-19
- live Path tracer: UsdPreviewSurface textures, cut-outs, dome orientation, USD camera, spot cones, cylinder lights (live-verified 11/18).
- live MaterialX standard_surface, Phase 1: direct mapping, specular weight and colour (11/19).
- fixed Partial-opacity shimmer; a constant-colour dome light was ignored (11/19).
- live Pause when converged, light selection by power, Sobol sampler: same-sample noise cut by more than half (11/19, see Performance).
- next MaterialX Phase 2 graph compiler and procedural noise; UDIM; radiance cache.
Building these docs
py -3 docs/site/build_docs.py # -> docs/site/build/index.html
Pages are HTML fragments: the user guide in docs/site/src/, these developer notes in docs/site/src/dev/. The build adds the navigation and contents and writes
docs/site/build/, which is git-ignored. Every link is relative, so the build can be published under any path.