# Try SceneView

Open the web demo in your browser, or get the demo app running on your device in under a minute.

---

## In the browser — nothing to install

The web demo runs SceneView Web (Filament.js, WebGL2) in any recent browser: a 3D model
viewer, Sketchfab search, procedural geometry, a physics scene, HDR environments and
WebXR on devices that support it.

<a href="https://sceneview.github.io/web-demo/" class="md-button md-button--primary">Open the web demo</a>

---

## Option 1 — One command (recommended)

Clone the repo and run:

```bash
git clone --filter=blob:none https://github.com/sceneview/sceneview.git
cd sceneview
./tools/try-demo.sh
```

That's it. The script builds the demo app and installs it on your connected Android device.

!!! tip "Requirements"
    - Android device with **USB debugging** enabled
    - **JDK 21+** installed (the demo and the libraries it builds compile to Java 21)
    - **adb** on your PATH (comes with Android Studio)
    - Optional: Google's [`android` CLI](https://developer.android.com/tools/agents/android-cli)
      for JSON UI dumps and LF/CRLF-safe screenshots. **Not for installing** —
      see the warning below.

The script targets the full `:samples:android-demo` showcase. Run
`./tools/try-demo.sh --help` for its download option.

---

## Option 2 — Download the APK

<div class="try-download-grid">

<div class="try-download-card">
<h3>Android Demo</h3>
<p>Full showcase: 3 tabs, 41 interactive demos, 48+ node types, animations, physics, post-processing.</p>
<a href="https://github.com/sceneview/sceneview/releases/latest/download/sceneview-android-demo.apk" class="md-button md-button--primary">
Download APK
</a>
<p class="try-download-note">Signed with the SceneView key — installs on any device, no Play Store needed. If the Play Store version is installed, uninstall it first: the two are signed with different keys.</p>
</div>

<div class="try-download-card">
<h3>All Platform Demos</h3>
<p>APKs for Android, Android TV. The iOS demo builds from source; the web demo runs in the browser.</p>
<a href="https://github.com/sceneview/sceneview/releases/latest" class="md-button">
Browse all APKs
</a>
</div>

</div>

### Install from terminal

```bash
# Download, install and launch in one line.
curl -fSL -o /tmp/sceneview-android-demo.apk \
  https://github.com/sceneview/sceneview/releases/latest/download/sceneview-android-demo.apk \
  && adb install -r /tmp/sceneview-android-demo.apk \
  && adb shell am start -n io.github.sceneview.demo/.MainActivity
```

> ⚠️ **Why not Google's [`android` CLI](https://developer.android.com/tools/agents/android-cli)?**
> Its `android run` has a measured install no-op: it prints `App loaded:` /
> `Debuggable: true`, rejects an activity the platform resolves fine, **and exits
> 0 having installed nothing** — leaving the previous build on the device. Found
> three times in this repo (#2796, #2854, #2990). The CLI is still the better
> tool for screenshots and UI dumps; just not for installing.

Confirm the install actually landed — an install step that reports success is
not evidence the binary on the device is yours:

```bash
adb shell dumpsys package io.github.sceneview.demo | grep lastUpdateTime
```

Or use the script's download mode (no build required):

```bash
./tools/try-demo.sh --download
```

---

## Option 3 — Android Studio

1. Open the project in Android Studio
2. Select the **`samples:android-demo`** run configuration
3. Click **Run**

---

## What's in the demo

| Tab | What it shows |
|---|---|
| **3D** | Full-screen 3D viewer — orbit camera, 8 models, 6 HDR environments |
| **AR** | Tap-to-place, plane detection, 4 AR models, gesture controls |
| **Samples** | Model viewer, geometry, animation, dynamic sky demos |
| **About** | Platform info, GitHub links |

<div class="try-demo-features">

<div class="try-feature">
<strong>11 models</strong><br>
Khronos PBR demos, Sketchfab realistic & animated characters
</div>

<div class="try-feature">
<strong>6 HDR environments</strong><br>
Night, studio, warm, sunset, outdoor, autumn
</div>

<div class="try-feature">
<strong>48+ node types</strong><br>
Model, Light, Cube, Sphere, Text, Path, Video, View...
</div>

<div class="try-feature">
<strong>60fps on mid-range</strong><br>
Filament rendering engine, optimized for mobile
</div>

</div>

---

## Build from source

```bash
# Clone
git clone --filter=blob:none https://github.com/sceneview/sceneview.git
cd sceneview

# Build just the demo
./gradlew :samples:android-demo:assembleDebug

# Build all samples
./gradlew assembleDebug

# Run lint
./gradlew :samples:android-demo:lint
```

The APK lands in `samples/android-demo/build/outputs/apk/debug/`.
