You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-24Lines changed: 37 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,8 @@
29
29
30
30
SceneView enables developers to easily incorporate 3D and AR capabilities into Android applications using Google's Filament rendering engine and ARCore. The library offers two main components:
31
31
32
-
1.**SceneView**: 3D rendering capabilities using Filament
33
-
2.**ARSceneView**: Augmented reality capabilities using Filament + ARCore
32
+
1.**Sceneview**: 3D rendering capabilities using Filament
33
+
2.**ARSceneview**: Augmented reality capabilities using Filament + ARCore
34
34
35
35
## <aname="3d-scene-with-filament"></a>3D Scene with Filament
36
36
@@ -50,8 +50,11 @@ dependencies {
50
50
Here's a basic example of creating a 3D scene in Jetpack Compose:
51
51
52
52
```kotlin
53
-
// Core rendering components
53
+
54
+
// Filament 3D Engine
54
55
val engine = rememberEngine()
56
+
57
+
// Core rendering components
55
58
val view = rememberView(engine)
56
59
val renderer = rememberRenderer(engine)
57
60
val scene = rememberScene(engine)
@@ -60,6 +63,8 @@ val scene = rememberScene(engine)
60
63
val modelLoader = rememberModelLoader(engine)
61
64
val materialLoader = rememberMaterialLoader(engine)
62
65
val environmentLoader = rememberEnvironmentLoader(engine)
66
+
67
+
// Collision System
63
68
val collisionSystem = rememberCollisionSystem(view)
64
69
65
70
Scene(
@@ -99,25 +104,30 @@ Scene(
99
104
// Add a glTF model
100
105
add(
101
106
ModelNode(
107
+
// Create a single instance model from assets file
-[AR Model Viewer (Compose)](https://github.com/SceneView/sceneview-android/tree/2bed398b3e10e8e9737d6e4a38933e783c1ee75e/samples/ar-model-viewer-compose)
226
-
-[AR Model Viewer (Layout)](https://github.com/SceneView/sceneview-android/tree/2bed398b3e10e8e9737d6e4a38933e783c1ee75e/samples/ar-model-viewer)
227
-
-[AR Point Cloud](https://github.com/SceneView/sceneview-android/tree/2bed398b3e10e8e9737d6e4a38933e783c1ee75e/samples/ar-point-cloud)
236
+
-[AR Model Viewer (Compose)](/samples/ar-model-viewer-compose)
237
+
-[AR Model Viewer (Layout)](/samples/ar-model-viewer)
0 commit comments