# SceneView 4.0.x

[All versions](../changelog.md) · [Full release notes on GitHub](https://github.com/sceneview/sceneview/blob/main/CHANGELOG.md)

Highlights of each release. The full notes on GitHub list every change and pull request.

## v4.0.9 — Web unlit parity + Android demo APK -38% + Play Store race fix (2026-05-07)

### Added

- GeometryConfig.unlit builder. + `GeometryConfig.unlit: Boolean` field on the web `geometry { … }` DSL.

### Added

- React Native.

### Performance

- 9 orphan assets dropped.
- TV-only assets split.
- Disabled asset-pack module dropped. ([`c2fe9010`](https://github.com/sceneview/sceneview/commit/c2fe9010)) — 186 MB on-disk repo cleanup.

### Fixed

- iOS demo MARKETING_VERSION blind spot.

### Tested

- NoTangentsGlbContractTest.
- TvModelListTest. ([`9877918e`](https://github.com/sceneview/sceneview/commit/9877918e)) — updated to search both asset folders (TV-only + shared via sourceSets) so missing-asset regressions still fail fast.

## v4.0.8 — Unlit material + 3 demo refresh + AR feature coverage (2026-05-07)

### Added

- MaterialLoader.createUnlitColorInstance(color).
- iOS parity: `CustomMaterial.unlit(color:)` (was `.debug(color:)`, now deprecated as alias).
- Sample app migrations: `Axes3DNode`, `CollisionDemo`, `LinesPathsDemo`, and `ARFaceDemo` — the front-camera face-mesh overlay no longer needs an explicit fill light to compensate for the front-camera disabling `ENVIRONMENTAL_HDR`.

### Changed

- AnimationDemo. — IBL intensity slider (0–10 000 lux) replaces the hard-coded 5 000 lux baseline so users can dial atmospheric ↔ neutral.
- GeometryDemo. — chip row is now horizontally scrollable, all primitives spin continuously on Y, and Metallic / Roughness sliders cover the full PBR range from chalky matte (M=0, R=1) to polished mirror (M=1, R=0).
- MultiModelDemo. — refonte from a generic spread-slider carousel to a tabletop living-room display lit by `studio_warm_2k.hdr`.
- LightingDemo. — 3×2.4 m backdrop wall + small coloured marker sphere at the light source so directional / point / spot read distinctly.

### Fixed

- Scene.kt cameraManipulator swap reactivity. — `cameraManipulator` is now wrapped in `rememberUpdatedState` so the frame loop reads through a state ref.

### Tested

- NoTangentsGlbContractTest.

### Added

- ARRecorder + ARSceneView(playbackDataset =...).
- ARDepthOcclusionDemo. — toggles `Config.DepthMode.AUTOMATIC` so real-world objects correctly hide virtual ones.
- ARInstantPlacementDemo. — `Frame.hitTestInstantPlacement(x, y, 1.0f)` places models the moment the user taps, before plane detection converges.
- ARTerrainAnchorDemo. — geospatial anchor that snaps a model to Google's terrain altitude at any lat/lng.
- ARRooftopAnchorDemo. — geospatial anchor that snaps to building rooftops.
- ARImageStabilizationDemo. — toggles `Config.ImageStabilizationMode.EIS`.

### Tested

- `ARRecorderTest`: 21 JVM unit tests pin the Recorder state machine, error paths, and `RecordingConfig` builder calls.

### Documented

- `README.md` — new "Record & Replay AR sessions" sub-section under Developer tools.

### Changed

- `ARSceneView`: new optional `playbackDataset: File? = null` param.

## v4.0.7 — ARCore Cloud API key documentation everywhere + npm sceneview-mcp@4.0.9 (2026-05-06)

### Improved

- `ARStreetscapeDemo` and `ARCloudAnchorDemo` now read `com.google.android.ar.API_KEY` from the manifest at runtime (via `PackageManager.GET_META_DATA`) and surface a precise "ARCore Cloud API key not configured — see STREETSCAPE_SETUP.md" banner instead of letting the user wait on "Looking for streetscape geometry…" forever or seeing a cryptic `ERROR_NOT_AUTHORIZED` after a tap.

### Internal

- 8 Dependabot ip-address moderate alerts cleared via `npm audit fix` across 8 lockfiles (commit `a155966b`).
- iOS bundle 362 → 363, `MARKETING_VERSION` 4.0.6 → 4.0.7.

### What's still in flight from v4.0.6 (unchanged)

- Apple TestFlight processing v4.0.6 build 362 (auto-submit pending Apple review).
- Play Store production track for v4.0.6 (Google review pending).

## v4.0.6 — Streetscape Geometry / Geospatial enabled in production (2026-05-06)

### Internal

- iOS `MARKETING_VERSION` 4.0.5 → 4.0.6, `CURRENT_PROJECT_VERSION` 361 → 362 (TestFlight cumulative bundle counter).

## v4.0.5 — hotfix: android-demo compile + iOS bundle bump (2026-05-06)

**Status:** stable.

## v4.0.4 — Pixel 9 review fixes + library hardening (2026-05-06)

### Fixed

- AR demos: Face Mesh now visible (proper TANGENTS quaternion encoding via ), Pose has matte materials + Blender-style axes gizmo, Streetscape falls back to plain AR when geospatial unavailable + links Google Fused Location Provider, Placement multi-model spawn + editable + Clear All, Rerun v2 UX (intro screen, live stream stats card, help dialog).
- 3D demos: Animation default Reveal+Walk + cinematic shots + dragon centred, Geometry plane no longer twisted into a wall, Physics 5×N grid spread + Drop-10 + horizontal floor + diagnostic static sphere, Lighting reactive props, DynamicSky time slider drives illumination, BillboardNode mirror, ViewNode reactive props (closes ), Custom mesh auto-pause, MultiModel redesign, Lines/Paths 3D helix, Gesture-editing axes gizmo + sliders + live transform readout, Video Big Buck Bunny streaming + cinematic camera + creative surfaces, PostProcessing camera-orbit + SideEffect writes, Debug-overlay interactive node spawner + auto-fit + perf graph + stress test.
- Branding: launcher icons regenerated, palette sweep across collision/AR demos + Text + Billboard, gradient video, Surface base palette adoption.

### Fixed

- `LightNode` (`SceneScope`) now drives intensity / colour / direction reactively on recomposition (was applying only at first creation).
- `MaterialInstance` reassignment now propagates to all geometry nodes (Sphere/Cube/Plane).
- `onFrame` callback no longer captured stale (was ignoring recomposition).
- AR camera: editable-node gestures isolated from camera gestures.
- AR `AugmentedFaceNode`: tracking state callback always fires ( follow-up via ).
- New: `FovZoomCameraManipulator` — pinch-to-FOV zoom for orthographic-style framing.
- New: `DefaultCameraManipulator(pinchZoomSpeed, pinchZoomDamping)` — non-linear damping curve, default tuned for dense screens (was abrupt on Pixel 9).

### New

- Pure-Kotlin `pinchZoomDelta` and `nextFov` helpers extracted from the gesture detectors so the math curves can be regression-tested on the JVM (no Filament Engine needed). 14 new tests in `:sceneview:test` cover sub-pixel linearity, sign preservation, speed scaling, damping softening, FOV clamps, and default constants.

### API surface

- `LightNode(color = …)` parameter placed AFTER `position` (not in slot 3) to preserve positional source-compat for existing 4.0.x callers passing `direction` positionally.
- `Engine.kt` `safeDestroy*` helpers retain `runCatching` wrapping (the rebase-rescue PR initially stripped it; restored to avoid ABI break for v4.0.x consumers — see commit message `fd1d820e`).
- `ImageNode.destroy` deliberate `Texture` retention now documented in a public KDoc with the recommended `bitmap = newBitmap` recycling pattern.

### Internal

- 14 new JVM tests (`CameraGestureMathTest`).
- Roborazzi screenshot tests stay `@Ignore`'d (DemoListScreen renderer change tracked separately).
- gradle test deps bumped: robolectric 4.14.1 → 4.16.1, roborazzi 1.43.0 → 1.60.0; new androidxTestExtJunit + androidxTestUiAutomator for instrumented coverage.

### Follow-up issues filed during the rebase rescue

- : cache `SurfaceOrientation` in `AugmentedFaceNode.computeTangents` (~30 Hz JNI alloc on hot path).

## v4.0.3 — Save & Share Rerun + scan-to-open deep-links (2026-05-06)

### New

- `RerunBridge.recordToFile(...)` + `share(...)` (`Tier-S` events) ship on Android and iOS with full parity. iOS uses the native share sheet; Android uses `MediaStore`.

### New

- iOS Universal Links: `SceneViewDemo.entitlements` now declares `applinks:sceneview.github.io` (Associated Domains capability).

### Improved

- Push to `main` → AAB uploaded to the Play Store internal track only (snapshot for dogfooding) (12f3a5ab).
- Tag `v[0-9]+.[0-9]+.[0-9]+` (this release) → AAB uploaded to internal + production in parallel (canary pattern).
- A real release no longer requires a manual Play Console step — once green CI on the tag, the production review is auto-submitted.

### Fixed

- `AboutTab` was hard-coding `"v4.0.0-rc.1"`; now reads `BuildConfig.VERSION_NAME` so the published build always shows the truthful version (f516387f).

### Internal

- 11 commits in this release, all on `main`.

## v4.0.2 — Crash hardening & reactive ViewNode props (2026-05-06)

### Fixed

- `RenderableNode.destroy` now destroys the renderable component before the entity, fixing the `MaterialInstance "view" still in use by Renderable` SIGABRT seen on screen navigation (, closes, ).
- `PlaneRenderer.destroy` routes through `MaterialLoader.destroyMaterial` to prevent double-free on AR scene teardown.
- `ViewNode.destroy` and `rememberViewNodeManager` hardened against the post-destroy race that left a leaked `WindowManager` view if `resume` and `destroy` interleaved within a single frame.

### Fixed

- `BillboardNode` (and `TextNode` via inheritance) no longer renders the back face of the plane quad.

### Fixed

- `ViewNode` composable restores the full reactive prop set (`position`, `rotation`, `scale`, `isVisible`) and switches from `SideEffect` to `DisposableEffect` keyed on scalar components — Compose state changes now propagate without redundant per-recomposition writes.

### Security

- 0 open Dependabot alerts at the time of this entry.

### Improved

- `roborazzi` 1.43.0 → 1.60.0.
- `dev.romainguy:kotlin-math` reference in `llms.txt` synced to 1.8.0 across all 4 copies (root, website, well-known, bundled MCP) — AI consumers no longer suggest the outdated 1.6.0 dependency ( follow-up, ).

### Internal

- Render tests on SwiftShader CI remain `@Ignore`'d — `Filament.capturePixels` still crashes the emulator.

## v4.0.1 — Swift Geometry Primitives, Filament 1.71.0, Hub MCP v0.3.0

### New

- `torus` and `capsule` added to `SceneViewSwift` geometry API, matching the Android/KMP surface.
- `ConeNode`, `TorusNode`, `CapsuleNode` documented in docs/nodes.md.

### Fixed

- Recompiled 6 `.filamat` materials for Filament 1.71.0 (closes ).

### Improved

- 78 tools across 11 bridge-API MCPs (up from 52).
- `gaming-3d-mcp` and `interior-design-3d-mcp` `files[]` glob fix — tarball no longer ships incomplete.
- FREE_TOOLS count corrected (14 → 23).

### Improved

- Layout and `scaleToUnits` tuned across all 24 Android demo scenes for better camera framing.
- PhysicsDemo layout refined for Pixel 9 QA.

## v4.0.0 — Declarative Compose DSL, Rerun.io AR Debug, MCP Gateway & Cross-Platform Bridges

### New

- Nodes are now declared as composables inside the trailing content lambda; imperative node management is no longer the primary API.
- `LightNode`'s `apply` is a named parameter (`apply = { intensity(…) }`), not a trailing lambda — matches the Compose convention for layout-affecting side effects.

### New

- Android: new `io.github.sceneview.ar.rerun.RerunBridge` + `rememberRerunBridge` composable helper.
- iOS: new `SceneViewSwift.RerunBridge` (`@ObservableObject` with `@Published eventCount`), `Network.framework` `NWConnection` on a dedicated utility queue.
- Wire format: 5 event types (`camera_pose`, `plane`, `point_cloud`, `anchor`, `hit_result`), byte-identical output from Kotlin and Swift, enforced by 24 golden-string tests (12 per platform).
- Playground: new "AR Debug (Rerun)" example in the `ar-spatial` category with per-platform code tabs.

### New

- Stripe-first anonymous checkout: no login wall — user clicks CTA, pays, receives API key by email via Stripe webhook + KV single-use handoff.
- 4 plans: Free / Pro (€19) / Team (€49) / Enterprise — with tier gating and per-plan rate limiting.
- Dashboard-less by design: billing managed entirely through the Stripe Customer Portal.
- 168 tests passing across gateway + hub packages.

### Fixes

- NodeAnimator: `NodeAnimator` now writes animated values back to the target `Node`'s transform fields on every frame, fixing silent no-op animations that computed but discarded results.
- Render tests: Fixed intermittent SwiftShader JVM crashes in CI by sharing a single `Engine` instance per test class.
- AR camera exposure: Added `cameraExposure` parameter to `ARSceneView` composable.

### Tests

- 16 new JVM tests in `arsceneview` (Rerun wire format + socket integration).
- 12 new Swift tests in `SceneViewSwiftTests` (cross-platform wire-format parity).
- 90+ new unit tests across `sceneview` and `arsceneview`.
- 168 gateway/hub tests.

### Dependencies

- AGP bumped `8.11.1 → 8.13.2`, `maven-publish 0.35.0 → 0.36.0`.
- `activesupport` bumped `>= 7.2.3.1` (CVE-2026-33176/33170/33169).

## v4.0.0-rc.1 — SceneView ↔ Rerun.io integration (Release Candidate)

### New

- Android: new `io.github.sceneview.ar.rerun.RerunBridge` + `rememberRerunBridge` composable helper.
- iOS: new `SceneViewSwift.RerunBridge` (`@ObservableObject` with `@Published eventCount`), `Network.framework` `NWConnection` on a dedicated utility queue.
- Wire format: 5 event types (`camera_pose`, `plane`, `point_cloud`, `anchor`, `hit_result`), byte-identical output from Kotlin and Swift (enforced by 24 golden-string tests, 12 per platform).

### New

- `setup_rerun_project` — Gradle / SPM / Web / Python scaffolding with boilerplate.
- `generate_ar_logger` — Kotlin or Swift AR streaming helper, parameterized by data types and rate.
- `generate_python_sidecar` — TCP → `rerun-sdk` Python bridge.
- `explain_concept` — focused docs for `rrd`, `timelines`, `entities`, `archetypes`, `transforms`.

### New

- Added `cameraExposure` parameter to `ARSceneView` composable, allowing developers to programmatically control the camera exposure applied to the AR scene.

### Fixes

- Render tests.: Fixed intermittent SwiftShader JVM crashes in CI by sharing a single `Engine` instance per test class instead of creating and tearing down one per test method.

### Tests

- 16 new JVM tests in `arsceneview` (12 golden-JSON for `RerunWireFormat`, 4 socket integration for `RerunBridge` with a mock `ServerSocket`).
- 12 new Swift tests in `SceneViewSwiftTests` — identical golden strings, enforcing cross-platform wire-format parity at build time.
- 90+ new unit tests across `sceneview` and `arsceneview` modules.
- Full suite validation:.
