sceneview-mcp 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -7
- package/dist/analyze-project.js +1 -1
- package/dist/debug-issue.js +2 -2
- package/dist/extra-guides.js +1 -1
- package/dist/generate-scene.js +2 -2
- package/dist/generated/llms-txt.js +1 -1
- package/dist/guides.js +8 -8
- package/dist/index.js +3 -3
- package/dist/migration.js +2 -2
- package/dist/platform-setup.js +11 -11
- package/dist/samples.js +64 -64
- package/dist/telemetry.js +1 -1
- package/dist/tiers.js +1 -0
- package/dist/tools/definitions.js +27 -0
- package/dist/tools/handler.js +114 -28
- package/llms.txt +85 -8
- package/package.json +1 -1
package/dist/guides.js
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
// ─── Platform Roadmap ─────────────────────────────────────────────────────────
|
|
7
7
|
export const PLATFORM_ROADMAP = `# SceneView Multi-Platform Roadmap
|
|
8
8
|
|
|
9
|
-
## Current Status (v4.0.0
|
|
9
|
+
## Current Status (v4.0.0)
|
|
10
10
|
|
|
11
11
|
| Platform | Status | Artifact | Renderer |
|
|
12
12
|
|----------|--------|----------|----------|
|
|
13
|
-
| **Android (Compose)** | Stable | \`io.github.sceneview:sceneview:4.0.0
|
|
14
|
-
| **Android (AR)** | Stable | \`io.github.sceneview:arsceneview:4.0.0
|
|
15
|
-
| **iOS (SwiftUI)** | Alpha | SceneViewSwift SPM \`from: "4.0.0
|
|
13
|
+
| **Android (Compose)** | Stable | \`io.github.sceneview:sceneview:4.0.0\` | Filament |
|
|
14
|
+
| **Android (AR)** | Stable | \`io.github.sceneview:arsceneview:4.0.0\` | Filament + ARCore |
|
|
15
|
+
| **iOS (SwiftUI)** | Alpha | SceneViewSwift SPM \`from: "4.0.0"\` | RealityKit + ARKit |
|
|
16
16
|
| **macOS (SwiftUI)** | Alpha | SceneViewSwift SPM (in Package.swift) | RealityKit |
|
|
17
17
|
| **visionOS (SwiftUI)** | Alpha | SceneViewSwift SPM (in Package.swift) | RealityKit |
|
|
18
|
-
| **KMP Core** | Stable | \`io.github.sceneview:sceneview-core:4.0.0
|
|
18
|
+
| **KMP Core** | Stable | \`io.github.sceneview:sceneview-core:4.0.0\` | N/A (shared logic) |
|
|
19
19
|
|
|
20
20
|
## Architecture: Native Renderers per Platform
|
|
21
21
|
|
|
@@ -54,7 +54,7 @@ Shared Kotlin Multiplatform module providing:
|
|
|
54
54
|
|
|
55
55
|
## Upcoming
|
|
56
56
|
|
|
57
|
-
- **v4.0.0
|
|
57
|
+
- **v4.0.0**: SceneViewSwift stabilization, API parity with Android core nodes, KMP core XCFramework consumption
|
|
58
58
|
- **v4.0.0**: Android XR, visionOS spatial computing, cross-framework bridges (Flutter, React Native)
|
|
59
59
|
|
|
60
60
|
## How to Stay Updated
|
|
@@ -338,7 +338,7 @@ export const AR_SETUP_GUIDE = `# SceneView AR — Complete Setup Guide (Android
|
|
|
338
338
|
## 1. SPM Dependency
|
|
339
339
|
|
|
340
340
|
\`\`\`swift
|
|
341
|
-
.package(url: "https://github.com/sceneview/sceneview", from: "4.0.0
|
|
341
|
+
.package(url: "https://github.com/sceneview/sceneview", from: "4.0.0")
|
|
342
342
|
\`\`\`
|
|
343
343
|
|
|
344
344
|
## 2. Info.plist — Camera Permission
|
|
@@ -423,7 +423,7 @@ ARSceneView(
|
|
|
423
423
|
\`\`\`kotlin
|
|
424
424
|
// build.gradle.kts (app module)
|
|
425
425
|
dependencies {
|
|
426
|
-
implementation("io.github.sceneview:arsceneview:4.0.0
|
|
426
|
+
implementation("io.github.sceneview:arsceneview:4.0.0")
|
|
427
427
|
// arsceneview includes sceneview transitively — no need to add both
|
|
428
428
|
}
|
|
429
429
|
\`\`\`
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* two MCP resources (`sceneview://api`, `sceneview://known-issues`) and
|
|
10
10
|
* the pro-tier access / billing checks.
|
|
11
11
|
*
|
|
12
|
-
* IMPORTANT: the runtime behaviour must stay identical to v4.0.0
|
|
12
|
+
* IMPORTANT: the runtime behaviour must stay identical to v4.0.0 for
|
|
13
13
|
* existing npm consumers. Do not reorder checks, do not change content
|
|
14
14
|
* strings, do not touch disclaimers.
|
|
15
15
|
*/
|
|
@@ -27,7 +27,7 @@ import { API_DOCS, TOOL_DEFINITIONS, dispatchTool, } from "./tools/index.js";
|
|
|
27
27
|
// Claude Desktop surfaces this in the server's "Logs" panel. The banner
|
|
28
28
|
// tells the user which mode they're in (hosted vs free) and where to
|
|
29
29
|
// upgrade, without blocking the transport handshake.
|
|
30
|
-
const PACKAGE_VERSION = "4.0.
|
|
30
|
+
const PACKAGE_VERSION = "4.0.2";
|
|
31
31
|
function logStartupBanner() {
|
|
32
32
|
if (process.env.SCENEVIEW_MCP_QUIET === "1")
|
|
33
33
|
return;
|
|
@@ -57,7 +57,7 @@ server.setRequestHandler(ListResourcesRequestSchema, async () => ({
|
|
|
57
57
|
{
|
|
58
58
|
uri: "sceneview://api",
|
|
59
59
|
name: "SceneView API Reference",
|
|
60
|
-
description: "Complete SceneView 4.0.0
|
|
60
|
+
description: "Complete SceneView 4.0.0 API — SceneView, ARSceneView, SceneScope DSL, ARSceneScope DSL, node types, resource loading, camera, gestures, math types, threading rules, and common patterns. Read this before writing any SceneView code.",
|
|
61
61
|
mimeType: "text/markdown",
|
|
62
62
|
},
|
|
63
63
|
{
|
package/dist/migration.js
CHANGED
|
@@ -8,8 +8,8 @@ SceneView 3.0 is a full rewrite from Android Views to **Jetpack Compose**. Nearl
|
|
|
8
8
|
|
|
9
9
|
| 2.x | 3.0 |
|
|
10
10
|
|-----|-----|
|
|
11
|
-
| \`io.github.sceneview:sceneview:2.x.x\` | \`io.github.sceneview:sceneview:4.0.0
|
|
12
|
-
| \`io.github.sceneview:arsceneview:2.x.x\` | \`io.github.sceneview:arsceneview:4.0.0
|
|
11
|
+
| \`io.github.sceneview:sceneview:2.x.x\` | \`io.github.sceneview:sceneview:4.0.0\` |
|
|
12
|
+
| \`io.github.sceneview:arsceneview:2.x.x\` | \`io.github.sceneview:arsceneview:4.0.0\` |
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
package/dist/platform-setup.js
CHANGED
|
@@ -12,7 +12,7 @@ const ANDROID_3D = `## SceneView Android — 3D Setup
|
|
|
12
12
|
\`\`\`kotlin
|
|
13
13
|
// build.gradle.kts (app module)
|
|
14
14
|
dependencies {
|
|
15
|
-
implementation("io.github.sceneview:sceneview:4.0.0
|
|
15
|
+
implementation("io.github.sceneview:sceneview:4.0.0")
|
|
16
16
|
}
|
|
17
17
|
\`\`\`
|
|
18
18
|
|
|
@@ -87,7 +87,7 @@ const ANDROID_AR = `## SceneView Android — AR Setup
|
|
|
87
87
|
\`\`\`kotlin
|
|
88
88
|
// build.gradle.kts (app module)
|
|
89
89
|
dependencies {
|
|
90
|
-
implementation("io.github.sceneview:arsceneview:4.0.0
|
|
90
|
+
implementation("io.github.sceneview:arsceneview:4.0.0")
|
|
91
91
|
// arsceneview includes sceneview transitively
|
|
92
92
|
}
|
|
93
93
|
\`\`\`
|
|
@@ -177,7 +177,7 @@ In Xcode: **File > Add Package Dependencies** > paste:
|
|
|
177
177
|
\`\`\`
|
|
178
178
|
https://github.com/sceneview/sceneview
|
|
179
179
|
\`\`\`
|
|
180
|
-
Set version rule to **"from: 4.0.0
|
|
180
|
+
Set version rule to **"from: 4.0.0"**.
|
|
181
181
|
|
|
182
182
|
Or in Package.swift:
|
|
183
183
|
\`\`\`swift
|
|
@@ -188,7 +188,7 @@ let package = Package(
|
|
|
188
188
|
name: "MyApp",
|
|
189
189
|
platforms: [.iOS(.v18), .macOS(.v15), .visionOS(.v1)],
|
|
190
190
|
dependencies: [
|
|
191
|
-
.package(url: "https://github.com/sceneview/sceneview", from: "4.0.0
|
|
191
|
+
.package(url: "https://github.com/sceneview/sceneview", from: "4.0.0")
|
|
192
192
|
],
|
|
193
193
|
targets: [
|
|
194
194
|
.executableTarget(
|
|
@@ -273,7 +273,7 @@ const IOS_AR = `## SceneViewSwift — iOS AR Setup
|
|
|
273
273
|
### 1. SPM Dependency
|
|
274
274
|
|
|
275
275
|
\`\`\`swift
|
|
276
|
-
.package(url: "https://github.com/sceneview/sceneview", from: "4.0.0
|
|
276
|
+
.package(url: "https://github.com/sceneview/sceneview", from: "4.0.0")
|
|
277
277
|
\`\`\`
|
|
278
278
|
|
|
279
279
|
### 2. Info.plist — Camera Permission (Required)
|
|
@@ -417,7 +417,7 @@ SceneView Flutter uses **PlatformView** to embed native SceneView (Android: Fila
|
|
|
417
417
|
\`\`\`yaml
|
|
418
418
|
# pubspec.yaml
|
|
419
419
|
dependencies:
|
|
420
|
-
sceneview_flutter: ^4.0.0
|
|
420
|
+
sceneview_flutter: ^4.0.0
|
|
421
421
|
\`\`\`
|
|
422
422
|
|
|
423
423
|
### 2. Android Setup
|
|
@@ -476,7 +476,7 @@ const FLUTTER_AR = `## SceneView Flutter — AR Setup
|
|
|
476
476
|
|
|
477
477
|
\`\`\`yaml
|
|
478
478
|
dependencies:
|
|
479
|
-
sceneview_flutter: ^4.0.0
|
|
479
|
+
sceneview_flutter: ^4.0.0
|
|
480
480
|
\`\`\`
|
|
481
481
|
|
|
482
482
|
### 2. Android Manifest
|
|
@@ -632,7 +632,7 @@ plugins {
|
|
|
632
632
|
|
|
633
633
|
dependencies {
|
|
634
634
|
implementation(compose.desktop.currentOs)
|
|
635
|
-
implementation("io.github.sceneview:sceneview-desktop:4.0.0
|
|
635
|
+
implementation("io.github.sceneview:sceneview-desktop:4.0.0") // when published
|
|
636
636
|
}
|
|
637
637
|
\`\`\`
|
|
638
638
|
|
|
@@ -683,7 +683,7 @@ SceneView on Android TV uses the same Filament renderer as mobile Android, with
|
|
|
683
683
|
|
|
684
684
|
\`\`\`kotlin
|
|
685
685
|
dependencies {
|
|
686
|
-
implementation("io.github.sceneview:sceneview:4.0.0
|
|
686
|
+
implementation("io.github.sceneview:sceneview:4.0.0")
|
|
687
687
|
implementation("androidx.leanback:leanback:1.0.0")
|
|
688
688
|
implementation("androidx.tv:tv-foundation:1.0.0-alpha10")
|
|
689
689
|
}
|
|
@@ -748,14 +748,14 @@ const SETUPS = {
|
|
|
748
748
|
android: {
|
|
749
749
|
name: "Android (Jetpack Compose)",
|
|
750
750
|
renderer: "Filament (OpenGL ES / Vulkan)",
|
|
751
|
-
status: "Stable (v4.0.0
|
|
751
|
+
status: "Stable (v4.0.0)",
|
|
752
752
|
guide3d: ANDROID_3D,
|
|
753
753
|
guideAr: ANDROID_AR,
|
|
754
754
|
},
|
|
755
755
|
ios: {
|
|
756
756
|
name: "iOS / macOS / visionOS (SwiftUI)",
|
|
757
757
|
renderer: "RealityKit (Metal)",
|
|
758
|
-
status: "Alpha (v4.0.0
|
|
758
|
+
status: "Alpha (v4.0.0)",
|
|
759
759
|
guide3d: IOS_3D,
|
|
760
760
|
guideAr: IOS_AR,
|
|
761
761
|
},
|
package/dist/samples.js
CHANGED
|
@@ -4,8 +4,8 @@ export const SAMPLES = {
|
|
|
4
4
|
title: "3D Model Viewer",
|
|
5
5
|
description: "Full-screen 3D scene with a GLB model, HDR environment, orbit camera, and animation controls",
|
|
6
6
|
tags: ["3d", "model", "environment", "camera", "animation"],
|
|
7
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
8
|
-
prompt: "Create an Android Compose screen that loads a GLB model and displays it with HDR lighting, orbit camera, and animation playback. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
7
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
8
|
+
prompt: "Create an Android Compose screen that loads a GLB model and displays it with HDR lighting, orbit camera, and animation playback. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
9
9
|
code: `@Composable
|
|
10
10
|
fun ModelViewerScreen() {
|
|
11
11
|
val engine = rememberEngine()
|
|
@@ -38,8 +38,8 @@ fun ModelViewerScreen() {
|
|
|
38
38
|
title: "AR Tap-to-Place Model Viewer",
|
|
39
39
|
description: "AR scene with plane detection. Tap a surface to place a 3D model with pinch-to-scale and drag-to-rotate gestures.",
|
|
40
40
|
tags: ["ar", "model", "anchor", "plane-detection", "placement", "gestures"],
|
|
41
|
-
dependency: "io.github.sceneview:arsceneview:4.0.0
|
|
42
|
-
prompt: "Create an AR screen that detects surfaces and lets the user tap to place a GLB model. Support pinch-to-scale and drag-to-rotate. Use SceneView `io.github.sceneview:arsceneview:4.0.0
|
|
41
|
+
dependency: "io.github.sceneview:arsceneview:4.0.0",
|
|
42
|
+
prompt: "Create an AR screen that detects surfaces and lets the user tap to place a GLB model. Support pinch-to-scale and drag-to-rotate. Use SceneView `io.github.sceneview:arsceneview:4.0.0`.",
|
|
43
43
|
code: `@Composable
|
|
44
44
|
fun ARModelViewerScreen() {
|
|
45
45
|
val engine = rememberEngine()
|
|
@@ -83,8 +83,8 @@ fun ARModelViewerScreen() {
|
|
|
83
83
|
title: "AR Augmented Image",
|
|
84
84
|
description: "Detects reference images in the camera feed and overlays 3D models or video above them.",
|
|
85
85
|
tags: ["ar", "model", "image-tracking"],
|
|
86
|
-
dependency: "io.github.sceneview:arsceneview:4.0.0
|
|
87
|
-
prompt: "Create an AR screen that detects a printed reference image and places a 3D model above it. Use SceneView `io.github.sceneview:arsceneview:4.0.0
|
|
86
|
+
dependency: "io.github.sceneview:arsceneview:4.0.0",
|
|
87
|
+
prompt: "Create an AR screen that detects a printed reference image and places a 3D model above it. Use SceneView `io.github.sceneview:arsceneview:4.0.0`.",
|
|
88
88
|
code: `@Composable
|
|
89
89
|
fun AugmentedImageScreen() {
|
|
90
90
|
val engine = rememberEngine()
|
|
@@ -125,8 +125,8 @@ fun AugmentedImageScreen() {
|
|
|
125
125
|
title: "AR Cloud Anchor",
|
|
126
126
|
description: "Host and resolve persistent cross-device anchors using ARCore Cloud Anchors.",
|
|
127
127
|
tags: ["ar", "anchor", "cloud-anchor"],
|
|
128
|
-
dependency: "io.github.sceneview:arsceneview:4.0.0
|
|
129
|
-
prompt: "Create an AR screen that can host a cloud anchor (saving its ID) and resolve it later on another device. Use SceneView `io.github.sceneview:arsceneview:4.0.0
|
|
128
|
+
dependency: "io.github.sceneview:arsceneview:4.0.0",
|
|
129
|
+
prompt: "Create an AR screen that can host a cloud anchor (saving its ID) and resolve it later on another device. Use SceneView `io.github.sceneview:arsceneview:4.0.0`.",
|
|
130
130
|
code: `@Composable
|
|
131
131
|
fun CloudAnchorScreen() {
|
|
132
132
|
val engine = rememberEngine()
|
|
@@ -156,8 +156,8 @@ fun CloudAnchorScreen() {
|
|
|
156
156
|
title: "AR Point Cloud",
|
|
157
157
|
description: "Visualizes ARCore feature points as 3D spheres with confidence-based filtering.",
|
|
158
158
|
tags: ["ar", "point-cloud"],
|
|
159
|
-
dependency: "io.github.sceneview:arsceneview:4.0.0
|
|
160
|
-
prompt: "Create an AR screen that visualizes ARCore feature points as small 3D spheres, filtered by confidence. Use SceneView `io.github.sceneview:arsceneview:4.0.0
|
|
159
|
+
dependency: "io.github.sceneview:arsceneview:4.0.0",
|
|
160
|
+
prompt: "Create an AR screen that visualizes ARCore feature points as small 3D spheres, filtered by confidence. Use SceneView `io.github.sceneview:arsceneview:4.0.0`.",
|
|
161
161
|
code: `@Composable
|
|
162
162
|
fun PointCloudScreen() {
|
|
163
163
|
val engine = rememberEngine()
|
|
@@ -188,8 +188,8 @@ fun PointCloudScreen() {
|
|
|
188
188
|
title: "AR Face Mesh",
|
|
189
189
|
description: "AR face tracking with AugmentedFaceNode — applies a textured mesh overlay to detected faces using the front camera.",
|
|
190
190
|
tags: ["ar", "face-tracking", "model"],
|
|
191
|
-
dependency: "io.github.sceneview:arsceneview:4.0.0
|
|
192
|
-
prompt: "Create an AR screen that uses the front camera to detect faces and overlay a 3D mesh on them. Use SceneView `io.github.sceneview:arsceneview:4.0.0
|
|
191
|
+
dependency: "io.github.sceneview:arsceneview:4.0.0",
|
|
192
|
+
prompt: "Create an AR screen that uses the front camera to detect faces and overlay a 3D mesh on them. Use SceneView `io.github.sceneview:arsceneview:4.0.0`.",
|
|
193
193
|
code: `@Composable
|
|
194
194
|
fun ARFaceMeshScreen() {
|
|
195
195
|
val engine = rememberEngine()
|
|
@@ -232,8 +232,8 @@ fun ARFaceMeshScreen() {
|
|
|
232
232
|
title: "glTF Camera",
|
|
233
233
|
description: "Extracts and uses camera definitions embedded in a glTF file for cinematic viewpoints.",
|
|
234
234
|
tags: ["3d", "model", "camera"],
|
|
235
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
236
|
-
prompt: "Create a 3D scene that loads a GLB file containing embedded camera definitions, then uses those cameras for cinematic viewpoints. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
235
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
236
|
+
prompt: "Create a 3D scene that loads a GLB file containing embedded camera definitions, then uses those cameras for cinematic viewpoints. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
237
237
|
code: `@Composable
|
|
238
238
|
fun GltfCameraScreen() {
|
|
239
239
|
val engine = rememberEngine()
|
|
@@ -262,8 +262,8 @@ fun GltfCameraScreen() {
|
|
|
262
262
|
title: "Camera Manipulator",
|
|
263
263
|
description: "Orbit, pan, and zoom camera with customizable sensitivity and bounds.",
|
|
264
264
|
tags: ["3d", "camera", "gestures"],
|
|
265
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
266
|
-
prompt: "Create a 3D scene with a fully configurable orbit camera — drag to rotate, two-finger pan, pinch to zoom. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
265
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
266
|
+
prompt: "Create a 3D scene with a fully configurable orbit camera — drag to rotate, two-finger pan, pinch to zoom. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
267
267
|
code: `@Composable
|
|
268
268
|
fun CameraManipulatorScreen() {
|
|
269
269
|
val engine = rememberEngine()
|
|
@@ -293,8 +293,8 @@ fun CameraManipulatorScreen() {
|
|
|
293
293
|
title: "Camera Animation",
|
|
294
294
|
description: "Animated camera flythrough around a 3D model — smooth orbit using LaunchedEffect and trigonometric interpolation.",
|
|
295
295
|
tags: ["3d", "camera", "animation", "model"],
|
|
296
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
297
|
-
prompt: "Create a 3D scene with a camera that automatically orbits around a model in a smooth circle. Include a play/pause button. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
296
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
297
|
+
prompt: "Create a 3D scene with a camera that automatically orbits around a model in a smooth circle. Include a play/pause button. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
298
298
|
code: `@Composable
|
|
299
299
|
fun CameraAnimationScreen() {
|
|
300
300
|
val engine = rememberEngine()
|
|
@@ -354,8 +354,8 @@ fun CameraAnimationScreen() {
|
|
|
354
354
|
title: "Autopilot Demo",
|
|
355
355
|
description: "Autonomous driving HUD with animated car, road geometry, and real-time telemetry overlay.",
|
|
356
356
|
tags: ["3d", "model", "animation", "geometry"],
|
|
357
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
358
|
-
prompt: "Create an autopilot-style visualization with a 3D car on a road and a HUD overlay showing speed, distance, and status. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
357
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
358
|
+
prompt: "Create an autopilot-style visualization with a 3D car on a road and a HUD overlay showing speed, distance, and status. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
359
359
|
code: `@Composable
|
|
360
360
|
fun AutopilotScreen() {
|
|
361
361
|
val engine = rememberEngine()
|
|
@@ -423,8 +423,8 @@ fun AutopilotScreen() {
|
|
|
423
423
|
title: "Physics Simulation",
|
|
424
424
|
description: "Animated physics simulation with spheres falling under gravity and bouncing off a floor, using onFrame for per-frame updates.",
|
|
425
425
|
tags: ["3d", "physics", "geometry", "animation"],
|
|
426
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
427
|
-
prompt: "Create a 3D scene with spheres that fall under gravity and bounce on a floor using per-frame animation. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
426
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
427
|
+
prompt: "Create a 3D scene with spheres that fall under gravity and bounce on a floor using per-frame animation. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
428
428
|
code: `@Composable
|
|
429
429
|
fun PhysicsDemoScreen() {
|
|
430
430
|
val engine = rememberEngine()
|
|
@@ -516,8 +516,8 @@ fun PhysicsDemoScreen() {
|
|
|
516
516
|
title: "Dynamic Sky & Lighting",
|
|
517
517
|
description: "Time-of-day sun cycle with animated LightNode direction, intensity, and color to simulate sunrise through sunset.",
|
|
518
518
|
tags: ["3d", "sky", "environment", "animation", "lighting"],
|
|
519
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
520
|
-
prompt: "Create a 3D scene with a time-of-day sun that moves from sunrise through noon to sunset, with animated light color and intensity. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
519
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
520
|
+
prompt: "Create a 3D scene with a time-of-day sun that moves from sunrise through noon to sunset, with animated light color and intensity. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
521
521
|
code: `@Composable
|
|
522
522
|
fun DynamicSkyScreen() {
|
|
523
523
|
val engine = rememberEngine()
|
|
@@ -600,8 +600,8 @@ fun DynamicSkyScreen() {
|
|
|
600
600
|
title: "Line & Path",
|
|
601
601
|
description: "Animated 3D line art with sine waves and Lissajous curves using PathNode and LineNode, with parameter sliders.",
|
|
602
602
|
tags: ["3d", "lines", "geometry", "animation"],
|
|
603
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
604
|
-
prompt: "Create a 3D scene that draws animated parametric curves (sine wave, Lissajous) using PathNode with amplitude and frequency sliders. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
603
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
604
|
+
prompt: "Create a 3D scene that draws animated parametric curves (sine wave, Lissajous) using PathNode with amplitude and frequency sliders. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
605
605
|
code: `@Composable
|
|
606
606
|
fun LinePathScreen() {
|
|
607
607
|
val engine = rememberEngine()
|
|
@@ -677,8 +677,8 @@ fun LinePathScreen() {
|
|
|
677
677
|
title: "Text Labels",
|
|
678
678
|
description: "Camera-facing 3D text labels using TextNode — floating labels above geometry spheres representing planets.",
|
|
679
679
|
tags: ["3d", "text", "geometry"],
|
|
680
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
681
|
-
prompt: "Create a 3D scene with floating text labels above colored spheres representing planets. Use TextNode for the labels. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
680
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
681
|
+
prompt: "Create a 3D scene with floating text labels above colored spheres representing planets. Use TextNode for the labels. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
682
682
|
code: `@Composable
|
|
683
683
|
fun TextLabelsScreen() {
|
|
684
684
|
val engine = rememberEngine()
|
|
@@ -735,8 +735,8 @@ fun TextLabelsScreen() {
|
|
|
735
735
|
title: "Reflection Probe",
|
|
736
736
|
description: "Zone-based IBL overrides with material picker (Chrome, Gold, Copper, Rough) and probe toggle.",
|
|
737
737
|
tags: ["3d", "reflection", "environment", "model"],
|
|
738
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
739
|
-
prompt: "Create a 3D scene with a metallic sphere and a ReflectionProbeNode that overrides the IBL. Add a material picker to switch between Chrome, Gold, Copper, and Rough. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
738
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
739
|
+
prompt: "Create a 3D scene with a metallic sphere and a ReflectionProbeNode that overrides the IBL. Add a material picker to switch between Chrome, Gold, Copper, and Rough. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
740
740
|
code: `@Composable
|
|
741
741
|
fun ReflectionProbeScreen() {
|
|
742
742
|
val engine = rememberEngine()
|
|
@@ -771,8 +771,8 @@ fun ReflectionProbeScreen() {
|
|
|
771
771
|
title: "Post-Processing",
|
|
772
772
|
description: "Real-time post-processing effects: bloom, vignette, tone mapping, FXAA, and SSAO controls.",
|
|
773
773
|
tags: ["3d", "post-processing", "environment"],
|
|
774
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
775
|
-
prompt: "Create a 3D scene with interactive post-processing controls for bloom, vignette, tone mapping, FXAA, and SSAO. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
774
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
775
|
+
prompt: "Create a 3D scene with interactive post-processing controls for bloom, vignette, tone mapping, FXAA, and SSAO. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
776
776
|
code: `@Composable
|
|
777
777
|
fun PostProcessingScreen() {
|
|
778
778
|
val engine = rememberEngine()
|
|
@@ -799,8 +799,8 @@ fun PostProcessingScreen() {
|
|
|
799
799
|
title: "Video Texture",
|
|
800
800
|
description: "Video playback on a 3D plane using VideoNode with MediaPlayer — supports looping, chroma-key, and auto-sizing.",
|
|
801
801
|
tags: ["3d", "video", "model"],
|
|
802
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
803
|
-
prompt: "Create a 3D scene with a video playing on a floating 3D plane. Include play/pause controls and chroma-key support. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
802
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
803
|
+
prompt: "Create a 3D scene with a video playing on a floating 3D plane. Include play/pause controls and chroma-key support. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
804
804
|
code: `@Composable
|
|
805
805
|
fun VideoTextureScreen() {
|
|
806
806
|
val context = LocalContext.current
|
|
@@ -849,8 +849,8 @@ fun VideoTextureScreen() {
|
|
|
849
849
|
title: "Multi-Model Scene",
|
|
850
850
|
description: "Scene with multiple 3D models loaded independently, positioned and scaled to create a complete environment.",
|
|
851
851
|
tags: ["3d", "model", "multi-model", "environment"],
|
|
852
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
853
|
-
prompt: "Create a 3D scene that loads multiple GLB models (a car, a building, and trees) and positions them to form a street scene. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
852
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
853
|
+
prompt: "Create a 3D scene that loads multiple GLB models (a car, a building, and trees) and positions them to form a street scene. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
854
854
|
code: `@Composable
|
|
855
855
|
fun MultiModelScreen() {
|
|
856
856
|
val engine = rememberEngine()
|
|
@@ -915,8 +915,8 @@ fun MultiModelScreen() {
|
|
|
915
915
|
title: "Gesture Interaction",
|
|
916
916
|
description: "Full gesture handling — tap to select, double-tap to scale, long-press for info, pinch-to-scale, drag-to-move on editable nodes.",
|
|
917
917
|
tags: ["3d", "gestures", "model"],
|
|
918
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
919
|
-
prompt: "Create a 3D scene with a model that responds to tap (select), double-tap (scale up), long-press (show info), and supports pinch-to-scale and drag-to-move. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
918
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
919
|
+
prompt: "Create a 3D scene with a model that responds to tap (select), double-tap (scale up), long-press (show info), and supports pinch-to-scale and drag-to-move. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
920
920
|
code: `@Composable
|
|
921
921
|
fun GestureInteractionScreen() {
|
|
922
922
|
val engine = rememberEngine()
|
|
@@ -979,8 +979,8 @@ fun GestureInteractionScreen() {
|
|
|
979
979
|
title: "Environment & Lighting",
|
|
980
980
|
description: "Complete lighting setup — HDR environment (IBL + skybox), main directional light, point light, and spot light with LightNode.",
|
|
981
981
|
tags: ["3d", "environment", "lighting", "model"],
|
|
982
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
983
|
-
prompt: "Create a 3D scene with full HDR environment lighting (IBL + skybox), a directional sun light, a red point light, and a blue spot light. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
982
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
983
|
+
prompt: "Create a 3D scene with full HDR environment lighting (IBL + skybox), a directional sun light, a red point light, and a blue spot light. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
984
984
|
code: `@Composable
|
|
985
985
|
fun EnvironmentLightingScreen() {
|
|
986
986
|
val engine = rememberEngine()
|
|
@@ -1048,8 +1048,8 @@ fun EnvironmentLightingScreen() {
|
|
|
1048
1048
|
title: "Procedural Geometry",
|
|
1049
1049
|
description: "Procedural shapes — CubeNode, SphereNode, CylinderNode, PlaneNode — with PBR materials (metallic, roughness, color).",
|
|
1050
1050
|
tags: ["3d", "geometry", "model"],
|
|
1051
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
1052
|
-
prompt: "Create a 3D scene showing procedural geometry shapes (cube, sphere, cylinder, plane) with different PBR materials. No model files needed. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
1051
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
1052
|
+
prompt: "Create a 3D scene showing procedural geometry shapes (cube, sphere, cylinder, plane) with different PBR materials. No model files needed. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
1053
1053
|
code: `@Composable
|
|
1054
1054
|
fun ProceduralGeometryScreen() {
|
|
1055
1055
|
val engine = rememberEngine()
|
|
@@ -1128,8 +1128,8 @@ fun ProceduralGeometryScreen() {
|
|
|
1128
1128
|
title: "Compose UI in 3D",
|
|
1129
1129
|
description: "Embed interactive Jetpack Compose UI (Cards, Buttons, Text) inside 3D space using ViewNode.",
|
|
1130
1130
|
tags: ["3d", "compose-ui", "text"],
|
|
1131
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
1132
|
-
prompt: "Create a 3D scene with interactive Compose UI elements (Card with text and a button) floating in 3D space using ViewNode. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
1131
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
1132
|
+
prompt: "Create a 3D scene with interactive Compose UI elements (Card with text and a button) floating in 3D space using ViewNode. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
1133
1133
|
code: `@Composable
|
|
1134
1134
|
fun ComposeUI3DScreen() {
|
|
1135
1135
|
val engine = rememberEngine()
|
|
@@ -1178,8 +1178,8 @@ fun ComposeUI3DScreen() {
|
|
|
1178
1178
|
title: "Node Hierarchy",
|
|
1179
1179
|
description: "Parent-child node relationships — a spinning solar system with planet groups orbiting a central sun.",
|
|
1180
1180
|
tags: ["3d", "hierarchy", "geometry", "animation"],
|
|
1181
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
1182
|
-
prompt: "Create a 3D solar system where planets orbit a sun using parent-child node hierarchies. Each planet group rotates independently. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
1181
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
1182
|
+
prompt: "Create a 3D solar system where planets orbit a sun using parent-child node hierarchies. Each planet group rotates independently. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
1183
1183
|
code: `@Composable
|
|
1184
1184
|
fun NodeHierarchyScreen() {
|
|
1185
1185
|
val engine = rememberEngine()
|
|
@@ -1259,7 +1259,7 @@ fun NodeHierarchyScreen() {
|
|
|
1259
1259
|
title: "iOS 3D Model Viewer",
|
|
1260
1260
|
description: "SwiftUI 3D scene with a USDZ model, IBL environment, orbit camera, and animation playback.",
|
|
1261
1261
|
tags: ["3d", "model", "environment", "camera", "animation", "ios", "swift"],
|
|
1262
|
-
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0
|
|
1262
|
+
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0\"",
|
|
1263
1263
|
spmDependency: "https://github.com/sceneview/sceneview",
|
|
1264
1264
|
prompt: "Create a SwiftUI screen that loads a USDZ model and displays it with IBL lighting, orbit camera, and animation playback. Use SceneViewSwift.",
|
|
1265
1265
|
language: "swift",
|
|
@@ -1298,7 +1298,7 @@ struct ModelViewerScreen: View {
|
|
|
1298
1298
|
title: "iOS AR Tap-to-Place Model Viewer",
|
|
1299
1299
|
description: "AR scene with plane detection. Tap a surface to place a 3D model using ARKit + RealityKit.",
|
|
1300
1300
|
tags: ["ar", "model", "anchor", "plane-detection", "placement", "ios", "swift"],
|
|
1301
|
-
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0
|
|
1301
|
+
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0\"",
|
|
1302
1302
|
spmDependency: "https://github.com/sceneview/sceneview",
|
|
1303
1303
|
prompt: "Create an iOS AR screen that detects surfaces and lets the user tap to place a USDZ model. Use SceneViewSwift.",
|
|
1304
1304
|
language: "swift",
|
|
@@ -1338,7 +1338,7 @@ struct ARModelViewerScreen: View {
|
|
|
1338
1338
|
title: "iOS AR Augmented Image",
|
|
1339
1339
|
description: "Detects reference images in the camera feed and overlays 3D content above them using ARKit.",
|
|
1340
1340
|
tags: ["ar", "model", "image-tracking", "ios", "swift"],
|
|
1341
|
-
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0
|
|
1341
|
+
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0\"",
|
|
1342
1342
|
spmDependency: "https://github.com/sceneview/sceneview",
|
|
1343
1343
|
prompt: "Create an iOS AR screen that detects a printed reference image and places a 3D model above it. Use SceneViewSwift.",
|
|
1344
1344
|
language: "swift",
|
|
@@ -1376,7 +1376,7 @@ struct AugmentedImageScreen: View {
|
|
|
1376
1376
|
title: "iOS Procedural Geometry",
|
|
1377
1377
|
description: "Procedural geometry shapes — cube, sphere, cylinder, cone, and plane — with PBR materials.",
|
|
1378
1378
|
tags: ["3d", "geometry", "ios", "swift"],
|
|
1379
|
-
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0
|
|
1379
|
+
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0\"",
|
|
1380
1380
|
spmDependency: "https://github.com/sceneview/sceneview",
|
|
1381
1381
|
prompt: "Create a SwiftUI scene showing procedural geometry shapes (cube, sphere, cylinder, cone, plane) with different materials. Use SceneViewSwift.",
|
|
1382
1382
|
language: "swift",
|
|
@@ -1430,7 +1430,7 @@ struct GeometryShapesScreen: View {
|
|
|
1430
1430
|
title: "iOS Lighting",
|
|
1431
1431
|
description: "Directional, point, and spot lights with configurable intensity, color, and shadows.",
|
|
1432
1432
|
tags: ["3d", "lighting", "environment", "ios", "swift"],
|
|
1433
|
-
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0
|
|
1433
|
+
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0\"",
|
|
1434
1434
|
spmDependency: "https://github.com/sceneview/sceneview",
|
|
1435
1435
|
prompt: "Create a SwiftUI 3D scene with directional, point, and spot lights illuminating geometry. Use SceneViewSwift.",
|
|
1436
1436
|
language: "swift",
|
|
@@ -1494,7 +1494,7 @@ struct LightingScreen: View {
|
|
|
1494
1494
|
title: "iOS Physics Demo",
|
|
1495
1495
|
description: "Interactive physics simulation with bouncing spheres, gravity, and configurable restitution.",
|
|
1496
1496
|
tags: ["3d", "physics", "geometry", "ios", "swift"],
|
|
1497
|
-
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0
|
|
1497
|
+
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0\"",
|
|
1498
1498
|
spmDependency: "https://github.com/sceneview/sceneview",
|
|
1499
1499
|
prompt: "Create a SwiftUI 3D scene where tapping spawns coloured spheres that fall under gravity and bounce off a floor. Use SceneViewSwift.",
|
|
1500
1500
|
language: "swift",
|
|
@@ -1558,7 +1558,7 @@ struct PhysicsDemoScreen: View {
|
|
|
1558
1558
|
title: "iOS 3D Text Labels",
|
|
1559
1559
|
description: "Camera-facing 3D text labels using TextNode and BillboardNode for always-facing-camera behavior.",
|
|
1560
1560
|
tags: ["3d", "text", "geometry", "ios", "swift"],
|
|
1561
|
-
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0
|
|
1561
|
+
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0\"",
|
|
1562
1562
|
spmDependency: "https://github.com/sceneview/sceneview",
|
|
1563
1563
|
prompt: "Create a SwiftUI 3D scene with floating text labels that always face the camera, showing planet names. Use SceneViewSwift.",
|
|
1564
1564
|
language: "swift",
|
|
@@ -1606,7 +1606,7 @@ struct TextLabelsScreen: View {
|
|
|
1606
1606
|
title: "iOS Video on 3D Surface",
|
|
1607
1607
|
description: "Video playback on a 3D plane using VideoNode with play/pause controls.",
|
|
1608
1608
|
tags: ["3d", "video", "ios", "swift"],
|
|
1609
|
-
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0
|
|
1609
|
+
dependency: "https://github.com/sceneview/sceneview — from: \"4.0.0\"",
|
|
1610
1610
|
spmDependency: "https://github.com/sceneview/sceneview",
|
|
1611
1611
|
prompt: "Create a SwiftUI 3D scene with a video playing on a floating 3D plane. Include play/pause controls. Use SceneViewSwift.",
|
|
1612
1612
|
language: "swift",
|
|
@@ -1677,8 +1677,8 @@ struct VideoPlayerScreen: View {
|
|
|
1677
1677
|
title: "Image Node",
|
|
1678
1678
|
description: "Display images on 3D planes using ImageNode — from assets, resources, or Bitmaps.",
|
|
1679
1679
|
tags: ["3d", "image", "geometry"],
|
|
1680
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
1681
|
-
prompt: "Create a 3D scene with images displayed on floating planes using ImageNode. Show examples from file, resource, and Bitmap. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
1680
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
1681
|
+
prompt: "Create a 3D scene with images displayed on floating planes using ImageNode. Show examples from file, resource, and Bitmap. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
1682
1682
|
code: `@Composable
|
|
1683
1683
|
fun ImageNodeScreen() {
|
|
1684
1684
|
val engine = rememberEngine()
|
|
@@ -1736,8 +1736,8 @@ fun ImageNodeScreen() {
|
|
|
1736
1736
|
title: "Billboard Sprite",
|
|
1737
1737
|
description: "Always-facing-camera sprites using BillboardNode — useful for markers, icons, and info overlays in 3D space.",
|
|
1738
1738
|
tags: ["3d", "billboard", "image"],
|
|
1739
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
1740
|
-
prompt: "Create a 3D scene with billboard sprites that always face the camera, useful for markers and info overlays. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
1739
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
1740
|
+
prompt: "Create a 3D scene with billboard sprites that always face the camera, useful for markers and info overlays. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
1741
1741
|
code: `@Composable
|
|
1742
1742
|
fun BillboardSpriteScreen() {
|
|
1743
1743
|
val engine = rememberEngine()
|
|
@@ -1801,8 +1801,8 @@ fun BillboardSpriteScreen() {
|
|
|
1801
1801
|
title: "Animation State Machine",
|
|
1802
1802
|
description: "Reactive animation driven by Compose state — switch between Idle, Walk, and Run animations on a character model.",
|
|
1803
1803
|
tags: ["3d", "model", "animation"],
|
|
1804
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
1805
|
-
prompt: "Create a 3D scene with a character model that switches between Idle, Walk, and Run animations based on button clicks. Use animationName for state-driven animation. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
1804
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
1805
|
+
prompt: "Create a 3D scene with a character model that switches between Idle, Walk, and Run animations based on button clicks. Use animationName for state-driven animation. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
1806
1806
|
code: `@Composable
|
|
1807
1807
|
fun AnimationStateScreen() {
|
|
1808
1808
|
val engine = rememberEngine()
|
|
@@ -1865,8 +1865,8 @@ fun AnimationStateScreen() {
|
|
|
1865
1865
|
title: "Spring Animation",
|
|
1866
1866
|
description: "Smooth spring-based node animations using Compose animateFloatAsState with spring spec for natural motion.",
|
|
1867
1867
|
tags: ["3d", "animation", "spring", "geometry"],
|
|
1868
|
-
dependency: "io.github.sceneview:sceneview:4.0.0
|
|
1869
|
-
prompt: "Create a 3D scene with geometry nodes that animate position using spring physics via Compose's animateFloatAsState. Tap to toggle positions with springy motion. Use SceneView `io.github.sceneview:sceneview:4.0.0
|
|
1868
|
+
dependency: "io.github.sceneview:sceneview:4.0.0",
|
|
1869
|
+
prompt: "Create a 3D scene with geometry nodes that animate position using spring physics via Compose's animateFloatAsState. Tap to toggle positions with springy motion. Use SceneView `io.github.sceneview:sceneview:4.0.0`.",
|
|
1870
1870
|
code: `@Composable
|
|
1871
1871
|
fun SpringAnimationScreen() {
|
|
1872
1872
|
val engine = rememberEngine()
|
|
@@ -1958,8 +1958,8 @@ fun SpringAnimationScreen() {
|
|
|
1958
1958
|
title: "AR Surface Cursor",
|
|
1959
1959
|
description: "AR scene with a center-screen reticle using HitResultNode that follows the detected surface.",
|
|
1960
1960
|
tags: ["ar", "cursor", "plane-detection", "placement"],
|
|
1961
|
-
dependency: "io.github.sceneview:arsceneview:4.0.0
|
|
1962
|
-
prompt: "Create an AR screen with a surface cursor (reticle) in the center of the screen that follows detected surfaces, using HitResultNode. Tap to place a model at the cursor position. Use SceneView `io.github.sceneview:arsceneview:4.0.0
|
|
1961
|
+
dependency: "io.github.sceneview:arsceneview:4.0.0",
|
|
1962
|
+
prompt: "Create an AR screen with a surface cursor (reticle) in the center of the screen that follows detected surfaces, using HitResultNode. Tap to place a model at the cursor position. Use SceneView `io.github.sceneview:arsceneview:4.0.0`.",
|
|
1963
1963
|
code: `@Composable
|
|
1964
1964
|
fun ARSurfaceCursorScreen() {
|
|
1965
1965
|
val engine = rememberEngine()
|
package/dist/telemetry.js
CHANGED
|
@@ -43,7 +43,7 @@ function isEnabled() {
|
|
|
43
43
|
// Falls back to "unknown" so payloads stay well-formed even if
|
|
44
44
|
// something goes wrong.
|
|
45
45
|
function getMcpVersion() {
|
|
46
|
-
return process.env.SCENEVIEW_MCP_VERSION ?? "4.0.0
|
|
46
|
+
return process.env.SCENEVIEW_MCP_VERSION ?? "4.0.0";
|
|
47
47
|
}
|
|
48
48
|
// Fire-and-forget POST of a single payload to the individual event endpoint.
|
|
49
49
|
// Used as fallback when batch delivery fails.
|
package/dist/tiers.js
CHANGED
|
@@ -11,6 +11,33 @@ import { SAMPLE_IDS, SAMPLES } from "../samples.js";
|
|
|
11
11
|
import { PLATFORM_IDS } from "../platform-setup.js";
|
|
12
12
|
import { DEBUG_CATEGORIES } from "../debug-issue.js";
|
|
13
13
|
export const TOOL_DEFINITIONS = [
|
|
14
|
+
{
|
|
15
|
+
// Activation tool — designed to be called immediately after init by the
|
|
16
|
+
// host AI. Intentionally listed FIRST so it's the first tool the model
|
|
17
|
+
// notices when scanning the MCP server's tool list. Returns a short
|
|
18
|
+
// overview + 3 concrete prompt suggestions the user can run, plus the
|
|
19
|
+
// canonical install snippet for whichever platform they target.
|
|
20
|
+
//
|
|
21
|
+
// Empirical motivation: 30-day telemetry shows ~55% of MCP inits never
|
|
22
|
+
// produce a tool call. Most of those clients (cursor-vscode, codex,
|
|
23
|
+
// claude-desktop, claude.ai) install but never trigger anything because
|
|
24
|
+
// the existing tool descriptions are passive lookups ("Returns ..."), not
|
|
25
|
+
// actions. This tool gives the host AI a clear hook to surface SceneView
|
|
26
|
+
// capabilities right after install.
|
|
27
|
+
name: "get_started",
|
|
28
|
+
description: "Run this FIRST when SceneView MCP is freshly installed, or whenever the user asks 'what can SceneView do', 'how do I start with SceneView', 'show me an AR example', or any open-ended SceneView question. Returns a one-page overview with 3 concrete prompts the user can try immediately, the install snippet for their platform, and links to the playground. Always call this before any other SceneView tool when the conversation has no prior SceneView context.",
|
|
29
|
+
inputSchema: {
|
|
30
|
+
type: "object",
|
|
31
|
+
properties: {
|
|
32
|
+
platform: {
|
|
33
|
+
type: "string",
|
|
34
|
+
enum: ["android", "ios", "web", "any"],
|
|
35
|
+
description: 'Target platform — "android" (Jetpack Compose + Filament), "ios" (SwiftUI + RealityKit), "web" (Filament.js + WebXR), or "any" for an unopinionated overview. Defaults to "any" if unsure.',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
required: [],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
14
41
|
{
|
|
15
42
|
name: "get_sample",
|
|
16
43
|
description: "Returns a complete, compilable Kotlin sample for a given SceneView scenario. Use this to get a working starting point before customising. Call `list_samples` first if you are unsure which scenario fits.",
|