Skip to content

Commit 944298a

Browse files
committed
Rename Camera Manipulator Sample
1 parent 85d5ce2 commit 944298a

File tree

13 files changed

+43
-52
lines changed

13 files changed

+43
-52
lines changed

.gitignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
*.iml
22
.gradle
33
/local.properties
4-
/.idea/caches
5-
/.idea/libraries
6-
/.idea/modules.xml
7-
/.idea/workspace.xml
8-
/.idea/navEditor.xml
9-
/.idea/assetWizardSettings.xml
10-
/.idea/deploymentTargetDropDown.xml
114
.DS_Store
125
/build
136
/captures
147
.externalNativeBuild
158
.cxx
169
local.properties
10+
/.idea

.idea/gradle.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
77
[![Sceneview](https://img.shields.io/maven-central/v/io.github.sceneview/sceneview.svg?label=Sceneview&color=6c35aa)](https://search.maven.org/artifact/io.github.sceneview/sceneview)
88
[![ARSceneview](https://img.shields.io/maven-central/v/io.github.sceneview/arsceneview.svg?label=ARSceneview&color=6c35aa)](https://search.maven.org/artifact/io.github.sceneview/arsceneview)
9-
[![Filament](https://img.shields.io/badge/Filament-v1.51.0-yellow)](https://github.com/google/filament)
10-
[![ARCore](https://img.shields.io/badge/ARCore-v1.42.0-c961cb)](https://github.com/google-ar/arcore-android-sdk)
9+
[![Filament](https://img.shields.io/badge/Filament-v1.56.0-yellow)](https://github.com/google/filament)
10+
[![ARCore](https://img.shields.io/badge/ARCore-v1.48.0-c961cb)](https://github.com/google-ar/arcore-android-sdk)
11+
1112
[![Discord](https://img.shields.io/discord/893787194295222292?color=7389D8&label=Discord&logo=Discord&logoColor=ffffff&style=flat-square)](https://discord.gg/UbNDDBTNqb)
1213
[![Open Collective](https://opencollective.com/sceneview/tiers/badge.svg?label=Donators%20)](https://opencollective.com/sceneview)
1314

@@ -30,7 +31,7 @@
3031
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:
3132

3233
1. **Sceneview**: 3D rendering capabilities using Filament
33-
2. **ARSceneview**: Augmented reality capabilities using Filament + ARCore
34+
2. **ARSceneview**: Augmented Reality capabilities using Filament and ARCore
3435

3536
## <a name="3d-scene-with-filament"></a>3D Scene with Filament
3637

@@ -54,30 +55,27 @@ Here's a basic example of creating a 3D scene in Jetpack Compose:
5455
// Filament 3D Engine
5556
val engine = rememberEngine()
5657

57-
// Core rendering components
58-
val view = rememberView(engine)
59-
val renderer = rememberRenderer(engine)
60-
val scene = rememberScene(engine)
61-
6258
// Asset loaders
6359
val modelLoader = rememberModelLoader(engine)
6460
val materialLoader = rememberMaterialLoader(engine)
6561
val environmentLoader = rememberEnvironmentLoader(engine)
6662

67-
// Collision System
68-
val collisionSystem = rememberCollisionSystem(view)
69-
7063
Scene(
7164
modifier = Modifier.fillMaxSize(),
7265
engine = engine,
73-
view = view,
74-
renderer = renderer,
75-
scene = scene,
66+
67+
// Core rendering components
68+
view = rememberView(engine),
69+
renderer = rememberRenderer(engine),
70+
scene = rememberScene(engine),
71+
72+
// Asset loaders
7673
modelLoader = modelLoader,
7774
materialLoader = materialLoader,
7875
environmentLoader = environmentLoader,
79-
collisionSystem = collisionSystem,
80-
isOpaque = true,
76+
77+
// Collision System
78+
collisionSystem = rememberCollisionSystem(view)
8179

8280
// Add a direct light source (required for shadows)
8381
mainLightNode = rememberMainLightNode(engine) {

samples/model-viewer-compose-camera-manipulator/build.gradle renamed to samples/camera-manipulator-compose/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ plugins {
55
}
66

77
android {
8-
namespace 'io.github.sceneview.sample.modelviewer.compose.cameramanipulator'
8+
namespace 'io.github.sceneview.sample.cameramanipulator.compose'
99

1010
compileSdk 35
1111

1212
defaultConfig {
13-
applicationId "io.github.sceneview.sample.modelviewer.compose.cameramanipulator"
13+
applicationId "io.github.sceneview.sample.cameramanipulator.compose"
1414
minSdk 28
1515
targetSdk 35
1616
versionCode 1
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3-
4-
<application
5-
android:icon="@mipmap/ic_launcher"
6-
android:label="@string/app_name"
7-
android:theme="@style/Theme.SceneViewSample">
8-
<activity
9-
android:name=".MainActivity"
10-
android:configChanges="orientation|screenSize"
11-
android:exported="true"
12-
android:label="@string/app_name"
13-
android:screenOrientation="locked">
14-
<intent-filter>
15-
<action android:name="android.intent.action.MAIN" />
16-
<category android:name="android.intent.category.LAUNCHER" />
17-
</intent-filter>
18-
</activity>
19-
</application>
20-
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<application
5+
android:icon="@mipmap/ic_launcher"
6+
android:label="@string/app_name"
7+
android:theme="@style/Theme.SceneViewSample">
8+
<activity
9+
android:name=".MainActivity"
10+
android:configChanges="orientation|screenSize"
11+
android:exported="true"
12+
android:label="@string/app_name"
13+
android:screenOrientation="locked">
14+
<intent-filter>
15+
<action android:name="android.intent.action.MAIN" />
16+
<category android:name="android.intent.category.LAUNCHER" />
17+
</intent-filter>
18+
</activity>
19+
</application>
20+
2121
</manifest>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.sceneview.sample.modelviewer.compose.cameramanipulator
1+
package io.github.sceneview.sample.cameramanipulator.compose
22

33
import android.os.Bundle
44
import androidx.activity.ComponentActivity

0 commit comments

Comments
 (0)