feat(examples): add gn-sim-fountain - #299
Merged
Merged
Conversation
Witness the Simulation Zone frame contract: stepped frames land on the closed-form ballistic arc, an unbaked frame_set(N) jump runs one step, and calculate_to_frame is PASS_THROUGH headless. Only a bake gives random access. Identical on 4.5, 5.1 and 5.2. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: TMHSDigital <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
examples/gn-sim-fountain/— the first flagship example from the ROADMAP candidate pool. A two-tier stone fountain whose 20 jets are integrated by a Geometry Nodes Simulation Zone using the exact constant-gravity update (p += v·dt − ½g·dt²ẑ; v −= g·dt·ẑ), so every stepped frame must land on the closed-form arcp₀ + v₀t − ½gt².Selection rationale: flagship tier is the top priority in the pool; the last ten PRs were showcase pieces, so an uncovered API contract added more value. No open PRs or
feat/examples-*branches collided.API contract witnessed
A Simulation Zone only advances when the scene steps one frame at a time. Two silent traps, identical on 4.5.11, 5.1.2 and 5.2.1 (the 4.x-vs-5.x divergence the roadmap entry anticipated does not exist; documented in the README):
frame_set(start)→frame_set(N)with no cache runs one step (dt = 1/fps): frame 25 shows the frame-2 state, 1.68–2.42 m off the true arc.simulation_nodes_cache_calculate_to_frame(selected=True)fails its poll headless, logsInvalid operator call, returns{'PASS_THROUGH'}without raising, and frames between cached endpoints read as linear interpolation.simulation_nodes_cache_bake(selected=True)undertemp_overridebakes PACKED in memory; random-access reads are then exact.Falsifiers — live-run-proven on all three binaries
--unpair--euler−½g·dt²term--prebake-trap--calc-to-framecalculate_to_framePASS_THROUGH, 2.4155 m / 9.4013 m/sExit-code matrix — live-run-proven
Binaries:
.scratch/blender-4.5.11-windows-x64/blender.exe(reports 4.5.11 LTS),.scratch/blender-5.1.2-windows-x64/blender.exe(5.1.2),.scratch/blender-5.2.1-windows-x64/blender.exe(5.2.1 LTS).--unpair--euler--prebake-trap--calc-to-frametests/smoke/run_example.py--outputrender (framing gate)Measured on every version: stepped worst 6.57e-7 m / 1.43e-6 m/s; baked random access worst 5.62e-7 m (TOL 1e-4, stated and justified in README).
Visual
docs/gallery/contact-sheets/gn-sim-fountain-contact-sheet.webp(vs armature-bend, damped-track-aim, bmesh-gear).--euler0.20 m drift is computed (that flag exits before render), not a rendered still.Validation — live-run-proven locally
Counts (60 examples), plugin manifest, exit-code README tables, engine-id, falsifier targets, harness unit tests, structure/frontmatter, gallery image sizes. Gallery regenerated with
scripts/build_gallery.py; generated alt and witness callout read indocs/gallery/index.htmlanddocs/gallery/gn-sim-fountain/index.html. CI-proven pending: gallery-no-drift step, smoke 5.2/4.5 (+5.1 vianeeds-5.1).🤖 Generated with Claude Code