AssetBash Docs Sign in
Lunaris USD + path tracing in TouchDesigner

Testing

Offline harnesses

Built with the operators (cpp/LunarisOps/build/); run with usd/install/bin and usd/install/lib on PATH.

HarnessChecks
scene_harness.exeScene extraction: instancing, visibility, purpose, materials, textures, cut-outs, lights, shaping, MaterialX (72 checks). With a file argument, prints per-prim materials and lights.
mat_harness.exeMaterial authoring operators.
geo_harness.exeGeometry import.

Test scenes (usd/test_scenes/)

SceneTests
mtlx_test_v001.usda (from make_mtlx_test.py)MaterialX: three Poly Haven CC0 metals (one Phos-shaped graph with a magenta UsdPreviewSurface decoy) and six constant cubes (no specular, gold, tinted specular, emission, 50% opacity, glass). Constant grey dome.
cutout_test_v001.usdaCut-out and coverage opacity.
lights_shaping_test_v001.usdaSpot cones, focus, cylinder lights.
lunaris_generic_v001.usdaKinds, variants, subdivision, seven materials, lights, camera.

Testing a scene live, without touching the project

ext = op('/TD_Lunaris/LunarisStage').ext.LunarisStageExt
st = ext.stage
for p in st.GetRootLayer().subLayerPaths: st.MuteLayer(p)        # hide the project
st.GetSessionLayer().subLayerPaths.append(test_file)             # show the test scene
s = op('/TD_Lunaris/StormUSD/stormusd')
s.par.Cameramode = 'Usdcamera'; s.par.Camerapath = '/World/cam'
ext.Bump()

Restore: unmute every layer, clear the session sublayers, set Cameramode back to Tdcamera and Camerapath to /World/cams/cam_main, then ext.Bump().

Installing a build

  • cpp/LunarisOps/build.bat with TouchDesigner closed installs plugins/ and lib/LunarisCore.dll.
  • build.bat dev writes stamped copies to devplugins/ for loading with TD open. A dev operator binds to the LunarisCore already loaded, so never dev-load an operator whose LunarisCore data layout changed.
  • text_trace syncs shaders/lunaris_trace.glsl live: a shader edit takes effect immediately, so it must match the installed Stage POP.