SceneView
The AI-first 3D & AR SDK for Jetpack Compose — and the web.
// build.gradle.kts — the current release
implementation("io.github.sceneview:sceneview:4.72.0") // 3D
implementation("io.github.sceneview:arsceneview:4.72.0") // AR, includes the 3D module
SceneView 2.x and 3.x are outdated; if you learned the 2.x API, here is the 4.x equivalent:
Coming from SceneView 2.x.
Declarative 3D and AR for app developers who want a model on screen, or in the room, without a
game engine: Filament + ARCore on Android, Filament.js + WebXR in the browser, and a Compose
Multiplatform viewer. It is the
maintained successor to Google Sceneform. Open source, Apache 2.0.
| Building with | Add | Then write |
|---|
| Jetpack Compose — 3D | io.github.sceneview:sceneview:4.72.0 | SceneView { } |
| Jetpack Compose — AR | io.github.sceneview:arsceneview:4.72.0 | ARSceneView { } or PlacementScene |
| Android Views / XML | the same | SceneView { } inside a ComposeView |
| Kotlin / Compose Multiplatform (Android, desktop) | io.github.sceneview:sceneview-compose:4.72.0 | SceneViewer(model = …) in commonMain |
| Web | npm install sceneview-web | SceneView.modelViewer("canvas", "model.glb") |
sceneview-compose is the Compose Multiplatform viewer façade with its own API; Android io.github.sceneview.* code needs io.github.sceneview:sceneview for 3D or io.github.sceneview:arsceneview for AR.
Moving from Sceneform?
The mapping. Which artifact fits your app:
3D and AR library, per platform.
Used in production. More than 1,300 stars on GitHub, and over 500 public repositories declare
SceneView as a dependency. It ships on Google Play in the Volkswagen, Audi, Porsche and CUPRA
apps, Philips Hue, Medal and IKEA, is declared by the open-source apps Bitkey (Block) and Vocable
(WillowTree), and is a dependency of the GeneXus Augmented Reality module and the TruVideo camera
SDK. The Niantic Spatial SDK samples use it for AR. Lenskart ships
Sceneform Maintained, SceneView's predecessor, and Safie presented
SceneView in a public talk.
AI-first means one thing here: an assistant that reads llms.txt or
the MCP server writes SceneView code that works on the first try. When it doesn't, the
API or the doc gets fixed.


Using SceneView? You can support it on Open Collective or through GitHub Sponsors.
Try it

The iOS and macOS demo has no new builds after 4.69.7 — see DEPRECATION.md.
The demo apps are built from samples/. Any demo opens straight from a link:
https://sceneview.github.io/open?demo=<id>. Start with
Cosmos, the galaxy the catalogue opens on, or
Materials, nine physically based materials
you can turn around.
The Materials demo, screen-recorded in the Android app.
Help test the demos
Install the Android demo, record your screen while you use a demo, and tell us what breaks or
confuses you: open an issue
with the recording attached, or send it from the app (any demo, Settings, then Send feedback).
Quick start
One minimal, working example per platform. The full reference for each is in
llms.txt.
Android
// build.gradle.kts
implementation("io.github.sceneview:sceneview:4.72.0")
The app module needs compileSdk = 37, minSdk 24 or higher, AGP 9.4.0+, Kotlin 2.3 or newer and JVM
target 21 for both Java and Kotlin: SceneView ships Java 21 bytecode with public inline
functions. The quickstart requirements give the Gradle
snippet and the reason for each.
Stuck on AGP 8 / compileSdk 36 / Kotlin 2.2? Use 4.18.0, the newest release that builds there.
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import io.github.sceneview.SceneView
import io.github.sceneview.rememberModelInstance
@Composable
fun ModelScreen() {
SceneView(modifier = Modifier.fillMaxSize()) { // orbit camera + default lighting
rememberModelInstance(modelLoader, "models/toy_car.glb")?.let { instance ->
ModelNode(modelInstance = instance, scaleToUnits = 1.0f, autoAnimate = true)
}
}
}
Download the Khronos glTF Sample Assets Toy Car (CC0):
ToyCar.glb.
Save it as app/src/main/assets/models/toy_car.glb, as in the
quickstart.
rememberModelInstance returns null until the model is loaded, then recomposes.
Never call modelLoader.createModel* from a background
coroutine: Filament calls must run on the main thread, and rememberModelInstance handles that.
Loading state and errors
rememberModelInstance returns null while loading or after a failure; use
rememberModelLoadState to tell them apart. Keep the scene visible and overlay its status.
Incrementing retry changes the composition key and starts a fresh load of the same path;
recomposition alone does not retry.
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Button
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import io.github.sceneview.ModelLoadState
import io.github.sceneview.SceneView
import io.github.sceneview.rememberEngine
import io.github.sceneview.rememberModelLoader
import io.github.sceneview.rememberModelLoadState
@Composable
fun ModelScreenWithLoading() {
val engine = rememberEngine()
val modelLoader = rememberModelLoader(engine)
var retry by remember { mutableIntStateOf(0) }
val state = key(retry) { rememberModelLoadState(modelLoader, "models/toy_car.glb") }
Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
SceneView(modifier = Modifier.fillMaxSize(), engine = engine, modelLoader = modelLoader) {
if (state is ModelLoadState.Ready) {
ModelNode(modelInstance = state.instance, scaleToUnits = 1f, autoAnimate = true)
}
}
when (state) {
is ModelLoadState.Loading -> CircularProgressIndicator()
is ModelLoadState.Failed -> Button(onClick = { retry++ }) { Text("Load failed. Retry") }
is ModelLoadState.Ready -> Unit
}
}
}
AR (Android)
// build.gradle.kts
implementation("io.github.sceneview:arsceneview:4.72.0") // includes the 3D module
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import com.google.ar.core.Anchor
import com.google.ar.core.Plane
import io.github.sceneview.ar.ARSceneView
import io.github.sceneview.ar.arcore.createAnchorOrNull
import io.github.sceneview.ar.arcore.getUpdatedPlanes
import io.github.sceneview.rememberModelInstance
@Composable
fun ARScreen() {
var anchor by remember { mutableStateOf<Anchor?>(null) }
ARSceneView(
modifier = Modifier.fillMaxSize(),
planeRenderer = true,
onSessionUpdated = { _, frame ->
if (anchor == null) {
anchor = frame.getUpdatedPlanes()
.firstOrNull { it.type == Plane.Type.HORIZONTAL_UPWARD_FACING }
?.let { it.createAnchorOrNull(it.centerPose) }
}
}
) {
val toyCar = rememberModelInstance(modelLoader, "models/toy_car.glb")
anchor?.let { a ->
AnchorNode(anchor = a) {
toyCar?.let { ModelNode(modelInstance = it, scaleToUnits = 0.5f) }
}
}
}
}
Plane detected → anchor set → Compose recomposes → the model appears. AR state is just Kotlin
state. For placement without a tap, grounded and gesture-ready, start from
AutoPlacementScene (see llms.txt).
arsceneview already declares the CAMERA permission and marks ARCore as optional. An AR
Optional app declares android.hardware.camera.ar and android.hardware.camera as
<uses-feature … android:required="false" />; an AR Required app overrides the ARCore value
with tools:replace="android:value". Both snippets are in the
AR manifest section.
Coming from SceneView 2.x
2.x code may still compile, with deprecation warnings, but always write the 4.x form below. Use