sceneview-mcp 3.0.3 → 3.1.1

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.
Files changed (2) hide show
  1. package/llms.txt +47 -6
  2. package/package.json +1 -1
package/llms.txt CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  SceneView is a Compose-first 3D and AR SDK for Android, built on Filament (Google's real-time rendering engine) and ARCore. It provides declarative composables for rendering interactive 3D scenes, loading glTF/GLB models, and building AR experiences.
4
4
 
5
- **Maven artifacts (version 3.0.0):**
6
- - 3D only: `io.github.sceneview:sceneview:3.0.0`
7
- - AR + 3D: `io.github.sceneview:arsceneview:3.0.0`
5
+ **Maven artifacts (version 3.1.1):**
6
+ - 3D only: `io.github.sceneview:sceneview:3.1.1`
7
+ - AR + 3D: `io.github.sceneview:arsceneview:3.1.1`
8
8
 
9
9
  **Min SDK:** 24 | **Target SDK:** 36 | **Kotlin:** 2.3.10 | **Compose BOM compatible**
10
10
 
@@ -15,8 +15,8 @@ SceneView is a Compose-first 3D and AR SDK for Android, built on Filament (Googl
15
15
  ### build.gradle (app module)
16
16
  ```kotlin
17
17
  dependencies {
18
- implementation("io.github.sceneview:sceneview:3.0.0") // 3D only
19
- implementation("io.github.sceneview:arsceneview:3.0.0") // AR (includes sceneview)
18
+ implementation("io.github.sceneview:sceneview:3.1.1") // 3D only
19
+ implementation("io.github.sceneview:arsceneview:3.1.1") // AR (includes sceneview)
20
20
  }
21
21
  ```
22
22
 
@@ -100,12 +100,31 @@ Scene(...) {
100
100
  position = Position(x = 0f, y = 0f, z = -2f),
101
101
  rotation = Rotation(y = 45f),
102
102
  isEditable = true,
103
- autoAnimate = true
103
+ autoAnimate = true // plays all glTF animations automatically
104
104
  )
105
105
  }
106
106
  }
107
107
  ```
108
108
 
109
+ **Reactive animation** — drive animation selection from Compose state:
110
+ ```kotlin
111
+ var isWalking by remember { mutableStateOf(false) }
112
+
113
+ Scene(...) {
114
+ instance?.let {
115
+ ModelNode(
116
+ modelInstance = it,
117
+ autoAnimate = false,
118
+ animationName = if (isWalking) "Walk" else "Idle",
119
+ animationLoop = true,
120
+ animationSpeed = 1f
121
+ )
122
+ }
123
+ }
124
+ // When animationName changes, the previous animation stops and the new one starts.
125
+ // animationName = null + autoAnimate = true plays all animations.
126
+ ```
127
+
109
128
  ### Primitive geometry nodes
110
129
  ```kotlin
111
130
  Scene(...) {
@@ -144,6 +163,28 @@ Scene(...) {
144
163
  }
145
164
  ```
146
165
 
166
+ ### VideoNode — video on a 3D plane
167
+ ```kotlin
168
+ val player = remember {
169
+ MediaPlayer().apply {
170
+ setDataSource(context, videoUri)
171
+ isLooping = true
172
+ prepare()
173
+ start()
174
+ }
175
+ }
176
+ DisposableEffect(Unit) { onDispose { player.release() } }
177
+
178
+ Scene(...) {
179
+ VideoNode(
180
+ player = player,
181
+ // size = null → auto-sized from video aspect ratio (longer edge = 1 unit)
182
+ position = Position(z = -2f)
183
+ )
184
+ }
185
+ ```
186
+ Supports `chromaKeyColor: Int?` for green-screen compositing.
187
+
147
188
  ### ViewNode — Compose UI in 3D
148
189
  ```kotlin
149
190
  val windowManager = rememberViewNodeManager()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceneview-mcp",
3
- "version": "3.0.3",
3
+ "version": "3.1.1",
4
4
  "description": "MCP server for SceneView — 3D and AR with Jetpack Compose for Android. Give Claude the full SceneView SDK so it writes correct, compilable Kotlin.",
5
5
  "keywords": [
6
6
  "mcp",