[Feature] 3D and AR on phones (Filament, ARCore, SceneView): current APIs instead of 2022-era code
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 73/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- ai-infra-agents, mobile
Research direction
Read the existing xr/ and camera/ skills to match their structure and scope; the issue proposes adding a 3d-ar-phone skill beside them. Cover phone 3D and AR versus headset-focused Jetpack XR, current dependency coordinates and version lookup, key Compose and ARCore practices, the 16 KB page-size requirement, and removed APIs. Done means the skill gives agents a current, actionable guide and avoids obsolete SceneView examples.
Written by the indexing model from the issue text.
Description
What is the gap in the LLM's knowledge?
Asked to "add a 3D model viewer" or "add AR placement" to a Compose app on a phone, models
reach for the right libraries but write code for APIs that no longer exist:
- Across about 80 answers containing code (Claude Haiku 5.5, GPT-6 Luna, Gemma 4, in an earlier
sample of 3D and AR requests), 72 usedchildNodes, which SceneView removed in 3.0.0. At least 22 did not compile as written.
The pattern is common enough that, since 4.72.0, SceneView acceptschildNodesagain as a deprecated shim. - 52 of 76 Gradle lines pinned SceneView 2.2.1 or 2.3.0 (current: 4.76.0). Only the model that
searched the web by default produced 4.x code. - The developer.android.com knowledge base points these questions to Jetpack XR, which targets
headsets and glasses and does not render 3D on a phone screen. - Gemini 3 Flash (five prompts below, no tools): 4 of 5 answers pin a version, all
io.github.sceneview:arsceneview:0.10.0from June 2023, even for the non-AR viewer. The code
uses the 0.x API (ArModelNode,ArNode,PlacementMode). One answer imports a package that
never existed (io.github.sceneview.compose), and theLazyColumnanswer leaves model loading
as a comment. - Gemini 3.1 Pro (same prompts): 5 of 5 pin a 2024 release (2.0.3, 2.1.1, 2.2.1). Two of
them useio.github.sceneview:sceneview-compose:2.2.1, which does not exist on Maven Central.
Both AR answers mix the 2.xARScenewithArModelNode,ArNode,PlacementModeor
loadModelGlbAsync, removed in 2.0.0, so they compile against no released version. 4 of 5 use
childNodes. - Neither model pins the current major version (4.x) or mentions Play's 16 KB page-size
requirement (February 1, 2027). Four answers add "check for the latest version" next to the old
pin, without saying that the API changed with it, so following that advice breaks the code.
Prompts used for the Gemini check (same five for both models, one answer each, no tools, no
MCP server or skill, no web search):
- "Add a screen that shows a GLB model the user can rotate, in Jetpack Compose."
- "Let the user place a 3D chair on the floor with ARCore, in Compose."
- "Show a 3D model in a LazyColumn item without leaking the renderer."
- "Measure the distance between two tapped points in AR, in an Android app with Jetpack Compose."
- "Load a 3D model from a URL with a loading state and an error state, in an Android app with Jetpack Compose."
Public code shows where the stale memory comes from: of 100 public build.gradle files outside
the sceneview org that declare SceneView, 55 are on 2.x and 44 on 0.x.
Proposed Skill
A 3d-ar-phone skill (next to xr/ and camera/) that tells the agent:
- when phone 3D and AR is in scope (Filament through a Compose wrapper, ARCore session lifecycle)
and when Jetpack XR is (headsets, glasses); - the current dependency coordinates, and how to check the latest version on Maven Central
rather than guessing; - the Compose patterns that matter: one engine per screen, model loading off the main thread,
release on dispose, camera permission and ARCore availability checks, Play's 16 KB page size; - a short "removed APIs" list, so 2.x code gets rewritten instead of patched.
Additional Context
- The skills already name third-party libraries where they are the standard path (Coil for images,
for example). Nothing covers phone 3D today. - I maintain SceneView, so I can supply up-to-date samples, test the skill against both models,
and keep it current when APIs change. Happy to open a PR if that is welcome.
- Dominant language
- Kotlin
- Stars
- 10.7k
- Forks
- 708
- Avg merge
- 8d 4h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from android/skills
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
android/skills#261 · 1 reaction ·
Maintainers usually reply within 4 days
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
android/skills#241 · 2 comments ·
Maintainers usually reply within 4 days
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
android/skills#207 · 1 comment ·
Maintainers usually reply within 4 days
-
[Feature] Add fused-location skill for foreground FLP, Android 12 permissions, and update lifecycleOpen
Difficulty 2/5 Half a day Newbie friendliness 82/100
Maintainers usually reply within 4 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sorsama/deepseek-harness-mobile#154 ·
Maintainers usually reply within 1 day
-
0. Needs triage enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
ankidroid/Anki-Android#23798 ·
Maintainers usually reply within 1 day
-
unshaved-yak
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
accessibility agent-ready area:android bug fleet
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
level-98/mailcrane#412 · 1 comment ·
Maintainers usually reply within 1 day