feat(samples): ar-model-viewer — persistent plane mesh + gesture docs#672
Merged
ThomasGorisse merged 2 commits intomainfrom Mar 20, 2026
Merged
feat(samples): ar-model-viewer — persistent plane mesh + gesture docs#672ThomasGorisse merged 2 commits intomainfrom
ThomasGorisse merged 2 commits intomainfrom
Conversation
Interactive demo of four Filament View post-processing effects using the
existing View parameter on Scene {}. No new SceneView API required.
Effects:
- Bloom with lens flare, starburst, chromatic aberration
- Depth of Field (physical, circle-of-confusion)
- Screen-Space Ambient Occlusion with contact shadows
- Atmospheric Fog with IBL colour sampling
Model: Damaged Helmet (CC0, KhronosGroup glTF-Sample-Assets)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ntation Plane visualization: - Change planeRenderer from `anchor == null` to always `true` so ARCore's built-in textured grid remains visible even after a model is placed, giving users a clear view of all detected surfaces. Gesture support (was already wired via isEditable, now documented): - Add inline comments on ModelNode explaining that isEditable = true activates three gestures automatically: single-finger drag to move, two-finger pinch to scale (clamped by editableScaleRange), and two-finger twist to rotate around Y. No additional gesture callbacks are needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Two improvements to the AR model viewer sample:
1. Persistent plane mesh visualization
planeRendererwas previously set toanchor == null, hiding the plane grid as soon as a model was placed. Changed toplaneRenderer = trueso the ARCore plane grid stays visible at all times — users can see where they can place additional objects even after one model is already in the scene.2. Gesture support documented
Confirmed that
isEditable = trueonModelNodealready wires up all three touch gestures internally viaGestureDetector:editableScaleRange)Added inline comments to document this so future developers don't need to re-investigate.
Test plan
./gradlew :samples:ar-model-viewer:assembleDebug🤖 Generated with Claude Code