feat: UE<->X3D round-trip harness (v0.3.0) - #19
Conversation
New self-contained x3d_bridge/ package: a lossless UE<->X3D serialization harness whose single defended invariant is deserialize(serialize(level)) == level, with a validation boundary that rejects malformed edits on paper before the live editor is touched. - coordinates: the crux -- one orthonormal basis B (det -1) for UE (Z-up/LH/cm) <-> X3D (Y-up/RH/m); quat<->matrix<->axis-angle; a basis_from_axis_images calibration primitive. Round trip is exact by construction (B^-1 == B^T). - grammar: a closed X3D node set + serialize/deserialize (flat, world-space, DEF/USE material dedup); UE specifics ride in Metadata*. - validate: the paper boundary -- grammar, DEF/USE, numeric arity, root-is-X3D, finiteness. - loop: a five-stage headless loop; diffs scenes into typed apply ops that emit ue_execute_python (mock-asserted). - preview: the same X3D in a browser via X_ITE. - tests/test_x3d_bridge.py: 55 tests -- round-trip, validation battery, apply-op sequence, forward-pinned coordinate correctness. ruff-clean. B is analytic and triple-confirmed but not yet live-calibrated (round trip is basis-agnostic, so calibration is fidelity-only, never correctness); the harness is a library, not yet exposed as MCP tools. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bump ue_mcp/__version__.py to 0.3.0 (single version source; the tag must match it) and add the CHANGELOG entry. 635 tests total (was 580). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 26 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
UE ↔ X3D round-trip harness
A new, self-contained
x3d_bridge/package: a lossless UE↔X3D serialization harness whose single defended invariant isdeserialize(serialize(level)) == level, with a validation boundary that rejects malformed edits on paper — before the live editor is ever touched.What's in it
B(det −1) for UE (Z-up, LH, cm) ↔ X3D (Y-up, RH, m).B⁻¹ = Bᵀ, so the round trip is exact by construction; picking the rightBis calibration, not correctness.Metadata*.USE, NaN/∞, wrong arity, non-X3D root all die here.ue_execute_python.Honest status
Bindependently re-derived and confirmed three ways.Bis analytic — not yet calibrated against a live editor's glTF export (the round trip is basis-agnostic, so this is fidelity-only, never correctness).Full changelog: https://github.com/JosephOIbrahim/UnrealEngine_Bridge/blob/master/CHANGELOG.md