Testing
Offline harnesses
Built with the operators (cpp/LunarisOps/build/); run with usd/install/bin and
usd/install/lib on PATH.
| Harness | Checks |
|---|---|
scene_harness.exe | Scene 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.exe | Material authoring operators. |
geo_harness.exe | Geometry import. |
Test scenes (usd/test_scenes/)
| Scene | Tests |
|---|---|
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.usda | Cut-out and coverage opacity. |
lights_shaping_test_v001.usda | Spot cones, focus, cylinder lights. |
lunaris_generic_v001.usda | Kinds, 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.batwith TouchDesigner closed installsplugins/andlib/LunarisCore.dll.build.bat devwrites stamped copies todevplugins/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_tracesyncsshaders/lunaris_trace.glsllive: a shader edit takes effect immediately, so it must match the installed Stage POP.