Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ThomasGorisse/98a9fe079ea384a799ce790e7e4dd8f1 to your computer and use it in GitHub Desktop.

Select an option

Save ThomasGorisse/98a9fe079ea384a799ce790e7e4dd8f1 to your computer and use it in GitHub Desktop.
SceneView v4.0 — Display 3D models and AR in Jetpack Compose (complete guide with AI integration)
# SceneView v4.0 — 3D & AR for Jetpack Compose
## Install
```gradle
implementation("io.github.sceneview:sceneview:4.0.0") // 3D
implementation("io.github.sceneview:arsceneview:4.0.0") // AR
```
## Display a 3D Model (5 lines)
```kotlin
SceneView {
val model = rememberModelInstance(modelLoader, "models/robot.glb")
if (model != null) ModelNode(modelInstance = model)
}
```
## AR with Tap-to-Place
```kotlin
ARSceneView(
onSessionCreated = { it.configure { planeFinding() } },
onTapAR = { hitResult ->
val anchor = hitResult.createAnchor()
AnchorNode(anchor) {
val model = rememberModelInstance(modelLoader, "models/chair.glb")
if (model != null) ModelNode(modelInstance = model)
}
}
)
```
## Use with AI Assistants
### Claude Code / Claude Desktop
```json
{"mcpServers": {"sceneview": {"command": "npx", "args": ["sceneview-mcp"]}}}
```
28 specialized tools for 3D & AR development.
### ChatGPT / Any AI
Paste this context: "Build a 3D/AR Android app using SceneView v4.0 for Jetpack Compose. Reference: https://sceneview.github.io/llms.txt"
### GitHub Copilot
Auto-configured via `.github/copilot-instructions.md` in the repo.
### Cursor / Windsurf
Auto-configured via `.cursorrules` and `.windsurfrules`.
## Vertical MCP Servers
| Domain | Install | Description |
|--------|---------|-------------|
| General 3D/AR | `npx sceneview-mcp` | 28 tools — code gen, validation, model search |
| Automotive | `npx automotive-3d-mcp` | Car configurators, HUD, AR showrooms |
| Healthcare | `npx healthcare-3d-mcp` | Anatomy, DICOM, surgical planning |
| Gaming | `npx gaming-3d-mcp` | Characters, terrain, physics |
| Interior Design | `npx interior-design-3d-mcp` | Room planners, AR furniture |
| AR Debug | `npx rerun-3d-mcp` | Stream to Rerun.io web viewer |
## Links
- GitHub: https://github.com/sceneview/sceneview
- Website: https://sceneview.github.io
- API Reference: https://sceneview.github.io/llms.txt
- npm: https://www.npmjs.com/package/sceneview-mcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment