SceneView¶
SceneView is an open-source SDK that puts 3D and AR scenes in your UI as declarative components: Jetpack Compose on Android, Filament.js on the web, and a Compose Multiplatform desktop viewer.
Android (Jetpack Compose), web, and Compose Multiplatform desktop are maintained. Android is Stable; web and desktop are Alpha.
End of life: SceneView for SwiftUI (SceneViewSwift), Flutter (flutter_sceneview) and React Native (@sceneview-sdk/react-native). 4.68.0 (November 2026) is the last release. No new releases. Published versions stay installable. See DEPRECATION.md.
| Platform | Built on | Get started |
|---|---|---|
| Android | Jetpack Compose, Filament, ARCore | Quickstart |
| iOS, macOS, visionOS — end of life at 4.68.0 | SwiftUI, RealityKit, ARKit | Quickstart (Apple) |
| Web | Filament.js (WebGL2, WebAssembly) | Quickstart (Web) |
| Desktop | Compose Multiplatform | Compose Multiplatform |
| Android TV | Jetpack Compose, Filament | Quickstart (TV) |
| Flutter — end of life at 4.68.0 | Native bridge to Android and iOS | Quickstart (Flutter) |
| React Native — end of life at 4.68.0 | Native bridge to Android and iOS | Quickstart (React Native) |
Write 3D the same way you write UI¶
Nodes are composables. Lifecycle is automatic. State drives everything. No boilerplate. No manual cleanup. Just declare what you want.
// build.gradle: implementation("io.github.sceneview:sceneview:4.72.0")
SceneView(modifier = Modifier.fillMaxSize()) {
val model = rememberModelInstance(modelLoader, "models/helmet.glb")
model?.let { instance ->
ModelNode(
modelInstance = instance,
scaleToUnits = 1.0f,
autoAnimate = true,
animationLoop = true
)
}
LightNode(
type = LightManager.Type.SUN,
apply = { intensity(100_000f); castShadows(true) }
)
}
// Package.swift: .package(url: "https://github.com/sceneview/sceneview", exact: "4.68.0")
SceneView { root in
let model = try? await ModelNode.load("helmet.usdz")
model?.scaleToUnits(1.0)
root.addChild(model!.entity)
}
.cameraControls(.orbit)
Features¶
- Model Viewer. Load glTF/GLB (Android, Web), USDZ (end-of-life Apple package), plus OBJ, STL, PLY and 3MF on Android, with PBR materials, HDR environment lighting, and automatic animations. Built-in orbit camera with gesture controls. See Model Formats.
- Augmented Reality. Place 3D objects on real-world surfaces with a single tap. ARCore on Android. ARKit examples remain available for the end-of-life iOS package. Plane detection, image tracking, anchor persistence, and face tracking.
- Declarative API. Nodes are composables inside
SceneView { }. State drives the scene. NoaddChildNode()ordestroy()calls. Toggle a Boolean to show/hide. Update state to animate. - Cross-Platform. Maintained targets use Filament on Android and desktop, and Filament.js (WASM) on the web. Shared logic via Kotlin Multiplatform. Native performance everywhere.
- Procedural Geometry. Cube, Sphere, Cylinder, Plane, Line, Path, Text nodes. All declarative, all with PBR materials. Build scenes without any 3D files.
- AI-First Design. Every API optimized so AI assistants generate correct code on the first try.
llms.txtat the repo root, MCP server for tool-augmented generation, full code recipes. - Dynamic Sky & Fog. Time-of-day sun with physically-based colour model. Atmospheric fog with density and height controls. Create mood and atmosphere reactively.
- Physics Simulation. Rigid body physics with gravity, collisions, and restitution. Drop objects, bounce balls, simulate real-world interactions.
Install in 30 seconds¶
// build.gradle.kts
dependencies {
implementation("io.github.sceneview:sceneview:4.72.0")
}
// build.gradle.kts
dependencies {
implementation("io.github.sceneview:arsceneview:4.72.0")
}
AR is just as easy¶
ARSceneView(
modifier = Modifier.fillMaxSize(),
onSessionUpdated = { session, frame -> }
) {
val anchor = rememberAnchor()
anchor?.let {
AnchorNode(anchor = it) {
rememberModelInstance(modelLoader, "models/chair.glb")?.let { instance ->
ModelNode(modelInstance = instance, scaleToUnits = 0.5f)
}
}
}
}
Codelabs¶
Step-by-step guides to build your first 3D and AR apps.
- 3D with Compose: Build your first 3D scene with a rotating glTF model, HDR lighting, and orbit camera gestures.
- AR with Compose: Place 3D objects in the real world using ARCore plane detection and anchor tracking.
- 3D with SwiftUI — end of life at 4.68.0: Build a 3D model viewer on iOS/macOS using SceneViewSwift, RealityKit, and orbit camera.
- AR with SwiftUI — end of life at 4.68.0: Detect planes with ARKit and tap to place 3D objects in the real world on iOS.
Key Concepts¶
Nodes are composables¶
Every 3D object -- models, lights, geometry, cameras -- is a @Composable function inside SceneView { }. No manual addChildNode() or destroy() calls.
State drives the scene¶
Pass Compose state into node parameters. The scene updates on the next frame. Toggle a Boolean to show/hide a node. Update a mutableStateOf<Anchor?> to place content in AR.
Everything is remember¶
The Filament engine, model loaders, environment, camera -- all are remember-ed values with automatic cleanup. Create them, use them, forget about them.
Native renderers per platform¶
Android uses Filament (high-performance C++ via JNI). Web uses Filament.js (WebAssembly). The end-of-life Apple package (4.68.0) used RealityKit.
Samples & Showcase¶
The Android demo app ships with 41 interactive demos, covering model viewing, AR placement, geometry, animations, lighting, physics, fog, camera controls, post-processing, and more.
Android samples Apple samples (end of life)
Upgrading from v2.x?¶
See the Migration Guide for a step-by-step walkthrough of every breaking change.
Coming from Sceneform?¶
Google archived Sceneform in 2021 and
ships no first-party declarative AR renderer. SceneView is its Compose-native successor —
it descends from the maintained Sceneform community fork and pairs ARCore (perception) with
Filament (rendering) behind a Jetpack Compose API. The .sfb model format gives way to
standard glTF (.glb / .gltf), and manual lifecycle handling is replaced by the Compose
lifecycle. See the Migration Guide for the concept-by-concept mapping
(ArFragment → ARScene { }, ModelRenderable → rememberModelInstance, …) and the
comparison page for a side-by-side feature table.
Community¶
- Discord: questions and help
- GitHub: source, issues and releases
- sceneview-mcp on npm: the MCP server for AI assistants
- Set up your AI assistant