Skip to content

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)

Get started View on GitHub

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) }
    )
}
<!-- One-liner 3D for the web -->
<script src="https://cdn.jsdelivr.net/npm/sceneview-web@4/sceneview-web.js"></script>
<scene-view model="helmet.glb" auto-rotate camera-orbit></scene-view>
// 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. No addChildNode() or destroy() 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.txt at 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")
}
<script src="https://cdn.jsdelivr.net/npm/sceneview-web@4/sceneview-web.js"></script>
// Package.swift or Xcode > Add Package Dependency
.package(url: "https://github.com/sceneview/sceneview", exact: "4.68.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)
            }
        }
    }
}
ARSceneView(
    planeDetection: .horizontal,
    onTapOnPlane: { position, arView in
        let chair = GeometryNode.cube(size: 0.3, color: .systemBlue)
            .withGroundingShadow()
        let anchor = AnchorNode.world(position: position)
        anchor.add(chair.entity)
        arView.scene.addAnchor(anchor.entity)
    }
)

Codelabs

Step-by-step guides to build your first 3D and AR apps.


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