[Feature] 3D and AR on phones (Filament, ARCore, SceneView): current APIs instead of 2022-era code

Open Beginner friendly
#294 0 comments 0 reactions 0 assignees View on GitHub

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
Tech stack
android, kotlin

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 used childNodes, 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 accepts childNodes again 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.0 from 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 the LazyColumn answer 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 use io.github.sceneview:sceneview-compose:2.2.1, which does not exist on Maven Central.
    Both AR answers mix the 2.x ARScene with ArModelNode, ArNode, PlacementMode or
    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):

  1. "Add a screen that shows a GLB model the user can rotate, in Jetpack Compose."
  2. "Let the user place a 3D chair on the floor with ARCore, in Compose."
  3. "Show a 3D model in a LazyColumn item without leaking the renderer."
  4. "Measure the distance between two tapped points in AR, in an Android app with Jetpack Compose."
  5. "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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/skills

All issues in android/skills

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.