Skip to content

Commit fffef0b

Browse files
felixtrzmeta-codesync[bot]
authored andcommitted
fix(examples): restore metaspatial project for audio example
Summary: Bring metaspatial back for audio to demo the new filepicker Reviewed By: wangpingsx Differential Revision: D95829702 fbshipit-source-id: 66f78944da3e75e999bd1e8c8d5b1e758a7fedc1
1 parent c407aea commit fffef0b

118 files changed

Lines changed: 4325 additions & 104 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
scene: docref:Main.scene
2+
entities:
3+
com.meta.models.AssetRoot:
4+
- components:
5+
com.meta.components.AssetMetadata:
6+
{}
7+
com.meta.components.AssetRoot:
8+
defaultScene: ref:Scene
9+
scenes:
10+
- ref:Scene
11+
metadata:
12+
version: 1.35
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
entities:
2+
com.meta.models.Scene:
3+
- components:
4+
com.meta.components.Name:
5+
{}
6+
com.meta.components.Scene:
7+
nodes:
8+
- ref:level
9+
- ref:Panel1
10+
- ref:robot
11+
- ref:Environment
12+
- ref:robot duplicate
13+
- ref:robot duplicate1
14+
tag: Scene
15+
com.meta.models.SceneNode:
16+
- components:
17+
com.iwsdk.components.LocomotionEnvironment:
18+
{}
19+
com.meta.components.Animatable:
20+
{}
21+
com.meta.components.DocumentReference:
22+
transformType: None
23+
documentReference: projref:environmentDesk/Main.metaspatialobj
24+
com.meta.components.Name:
25+
name: Environment
26+
com.meta.components.PointerNodeInverseComponent:
27+
{}
28+
com.meta.components.SceneNode:
29+
rotation.data:
30+
- 0
31+
- 3.14159274
32+
- 0
33+
- 0
34+
rotation.format: Euler
35+
scale:
36+
- 1
37+
- 1
38+
- 1
39+
translation:
40+
- 0
41+
- -0.106921583
42+
- 0
43+
componentVersion: 1
44+
com.meta.components.Visibility:
45+
visible: true
46+
tag: Environment
47+
- components:
48+
com.iwsdk.components.AudioSource:
49+
src: ./audio/beepboop.mp3
50+
coneInnerAngle: 45
51+
coneOuterAngle: 180
52+
maxInstances: 5
53+
com.iwsdk.components.RayInteractable:
54+
{}
55+
com.iwsdk.components.Spinner:
56+
{}
57+
com.meta.components.Animatable:
58+
{}
59+
com.meta.components.DocumentReference:
60+
transformType: None
61+
documentReference: projref:robot/Main.metaspatialobj
62+
com.meta.components.Name:
63+
name: robot
64+
com.meta.components.PointerNodeInverseComponent:
65+
{}
66+
com.meta.components.SceneNode:
67+
rotation.format: Euler
68+
scale:
69+
- 0.5
70+
- 0.5
71+
- 0.5
72+
translation:
73+
- 0
74+
- 0.949999988
75+
- -1.79999995
76+
componentVersion: 1
77+
com.meta.components.Visibility:
78+
visible: true
79+
tag: robot
80+
- components:
81+
com.iwsdk.components.AudioSource:
82+
maxInstances: 5
83+
playbackMode: 3
84+
coneOuterAngle: 180
85+
coneInnerAngle: 45
86+
src: ./audio/beepboop.mp3
87+
com.iwsdk.components.RayInteractable:
88+
{}
89+
com.iwsdk.components.Spinner:
90+
{}
91+
com.meta.components.Animatable:
92+
{}
93+
com.meta.components.DocumentReference:
94+
transformType: None
95+
documentReference: projref:robot/Main.metaspatialobj
96+
com.meta.components.Name:
97+
name: robot duplicate
98+
com.meta.components.PointerNodeInverseComponent:
99+
{}
100+
com.meta.components.SceneNode:
101+
rotation.format: Euler
102+
scale:
103+
- 0.5
104+
- 0.5
105+
- 0.5
106+
translation:
107+
- -0.5
108+
- 0.949999988
109+
- -1.79999995
110+
componentVersion: 1
111+
com.meta.components.Visibility:
112+
visible: true
113+
tag: robot duplicate
114+
- components:
115+
com.iwsdk.components.AudioSource:
116+
src: ./audio/beepboop.mp3
117+
coneInnerAngle: 45
118+
coneOuterAngle: 180
119+
playbackMode: 1
120+
maxInstances: 5
121+
com.iwsdk.components.RayInteractable:
122+
{}
123+
com.iwsdk.components.Spinner:
124+
{}
125+
com.meta.components.Animatable:
126+
{}
127+
com.meta.components.DocumentReference:
128+
transformType: None
129+
documentReference: projref:robot/Main.metaspatialobj
130+
com.meta.components.Name:
131+
name: robot duplicate
132+
com.meta.components.PointerNodeInverseComponent:
133+
{}
134+
com.meta.components.SceneNode:
135+
rotation.format: Euler
136+
scale:
137+
- 0.5
138+
- 0.5
139+
- 0.5
140+
translation:
141+
- 0.5
142+
- 0.949999988
143+
- -1.79999995
144+
componentVersion: 1
145+
com.meta.components.Visibility:
146+
visible: true
147+
tag: robot duplicate1
148+
- components:
149+
com.iwsdk.components.PanelUI:
150+
config: ./ui/welcome.uikitml
151+
com.iwsdk.components.RayInteractable:
152+
{}
153+
com.iwsdk.components.ScreenSpace:
154+
top: 20px
155+
height: 40%
156+
left: 20px
157+
com.meta.components.Animatable:
158+
{}
159+
com.meta.components.Name:
160+
name: Panel1
161+
com.meta.components.PointerNodeInverseComponent:
162+
{}
163+
com.meta.components.SceneNode:
164+
rotation.format: Euler
165+
scale:
166+
- 1.79999995
167+
- 1
168+
- 1
169+
translation:
170+
- 0
171+
- 1.60000002
172+
- -2.20000005
173+
componentVersion: 1
174+
com.meta.components.Visibility:
175+
visible: true
176+
tag: Panel1
177+
- components:
178+
com.iwsdk.components.DomeGradient:
179+
{}
180+
com.iwsdk.components.IBLGradient:
181+
{}
182+
com.meta.components.Animatable:
183+
{}
184+
com.meta.components.Name:
185+
name: level
186+
com.meta.components.PointerNodeInverseComponent:
187+
{}
188+
com.meta.components.SceneNode:
189+
rotation.format: Euler
190+
scale:
191+
- 1
192+
- 1
193+
- 1
194+
componentVersion: 1
195+
com.meta.components.Visibility:
196+
visible: true
197+
tag: level
198+
metadata:
199+
version: 1.35
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
data:
2+
tabs:
3+
- Composition
4+
- environmentDesk
5+
current_tab: Composition
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
entities:
2+
com.meta.models.TargetModel:
3+
- components:
4+
com.meta.components.TargetComponent:
5+
platform: immersive_web
6+
metadata:
7+
version: 1.33
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Meta Spatial Project Files
2+
3+
This directory is reserved for Meta Spatial SDK project files and configurations.
4+
5+
## Purpose
6+
7+
The `metaspatial/` directory is intended to house:
8+
9+
- Meta Spatial project configuration files
10+
- Component mapping configurations
11+
- Spatial environment definitions
12+
- Integration settings with the Meta Spatial ecosystem
13+
14+
## Component Integration
15+
16+
The framework automatically generates component XML definitions in the `../generated/components/` directory that are compatible with Meta Spatial projects. These definitions can be referenced from Meta Spatial project files placed in this directory.
17+
18+
## Usage
19+
20+
When setting up a Meta Spatial project:
21+
22+
1. Place your Meta Spatial project files in this directory
23+
2. Reference the component XML files from `../generated/components/`
24+
3. Configure asset paths to point to the organized `../public/` structure
25+
26+
This organization ensures that both developers and designers can work with the same component definitions and asset structure.

0 commit comments

Comments
 (0)