Skip to content

Commit 5ec3cf9

Browse files
committed
Add Spine and glTF demos
1 parent 912aa0d commit 5ec3cf9

File tree

10 files changed

+419
-1
lines changed

10 files changed

+419
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# view3dscene-mobile
2-
Mobile-friendly viewer for 3D models like VRML, X3D, Collada, Wavefront OBJ, and other formats supported by the Castle Game Engine
2+
3+
Mobile-friendly viewer for 3D models like X3D, VRML, glTF, Collada, Wavefront OBJ, Spine JSON and [other formats supported by the Castle Game Engine](https://castle-engine.io/creating_data_model_formats.php).

code/v3dmfilesdlg.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ constructor TStateFilesDlg.TFilesDialog.Create(AOwner: TComponent);
7474
FileList.Add('castle-data:/demo/chinchilla.wrl.gz');
7575
FileList.Add('castle-data:/demo/teapot (fresnel and toon shader).x3dv');
7676
FileList.Add('castle-data:/demo/teapot (time to shader).x3dv');
77+
FileList.Add('castle-data:/demo/dragon-spine/dragon.json');
78+
FileList.Add('castle-data:/demo/gltf-duck/duck.gltf');
7779

7880
Width := Min(400, StateFilesDlg.StateContainer.UnscaledWidth - 20);
7981
Height := Min(500, StateFilesDlg.StateContainer.UnscaledHeight - 20);

data/demo/dragon-spine/README.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Animated dragon in Spine JSON format.
2+
3+
You can open it e.g. in Castle Game Engine ( https://castle-engine.io/ ) that supports Spine. You can quickly test it by opening in our model viewer, view3dscene: https://castle-engine.io/view3dscene.php .
4+
5+
By Paweł Wojciechowicz from https://cat-astrophe-games.com/ .
6+
Licensed on the GNU GPL >= 2 terms.
Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
2+
dragon.png
3+
size: 4096,1024
4+
format: RGBA8888
5+
filter: Linear,Linear
6+
repeat: none
7+
body_1
8+
rotate: true
9+
xy: 2538, 182
10+
size: 389, 447
11+
orig: 389, 447
12+
offset: 0, 0
13+
index: -1
14+
body_2
15+
rotate: false
16+
xy: 2019, 128
17+
size: 517, 443
18+
orig: 517, 443
19+
offset: 0, 0
20+
index: -1
21+
claw
22+
rotate: true
23+
xy: 2538, 138
24+
size: 42, 138
25+
orig: 42, 138
26+
offset: 0, 0
27+
index: -1
28+
claws_thumb
29+
rotate: false
30+
xy: 3387, 70
31+
size: 89, 106
32+
orig: 89, 106
33+
offset: 0, 0
34+
index: -1
35+
hand_1
36+
rotate: false
37+
xy: 1572, 106
38+
size: 280, 268
39+
orig: 280, 268
40+
offset: 0, 0
41+
index: -1
42+
hand_2
43+
rotate: false
44+
xy: 3916, 726
45+
size: 171, 296
46+
orig: 171, 296
47+
offset: 0, 0
48+
index: -1
49+
head_1
50+
rotate: false
51+
xy: 3610, 466
52+
size: 300, 309
53+
orig: 300, 309
54+
offset: 0, 0
55+
index: -1
56+
head_armor
57+
rotate: false
58+
xy: 1271, 127
59+
size: 299, 247
60+
orig: 299, 247
61+
offset: 0, 0
62+
index: -1
63+
head_jaw
64+
rotate: true
65+
xy: 2987, 174
66+
size: 236, 252
67+
orig: 236, 252
68+
offset: 0, 0
69+
index: -1
70+
leg_1
71+
rotate: true
72+
xy: 526, 27
73+
size: 180, 298
74+
orig: 180, 298
75+
offset: 0, 0
76+
index: -1
77+
leg_2
78+
rotate: true
79+
xy: 3491, 196
80+
size: 214, 200
81+
orig: 214, 200
82+
offset: 0, 0
83+
index: -1
84+
neck_1
85+
rotate: true
86+
xy: 1854, 116
87+
size: 258, 161
88+
orig: 258, 161
89+
offset: 0, 0
90+
index: -1
91+
neck_2
92+
rotate: true
93+
xy: 3241, 178
94+
size: 232, 248
95+
orig: 232, 248
96+
offset: 0, 0
97+
index: -1
98+
neck_3
99+
rotate: true
100+
xy: 963, 144
101+
size: 230, 306
102+
orig: 230, 306
103+
offset: 0, 0
104+
index: -1
105+
oot_1
106+
rotate: false
107+
xy: 826, 20
108+
size: 118, 187
109+
orig: 118, 187
110+
offset: 0, 0
111+
index: -1
112+
tail_big
113+
rotate: false
114+
xy: 3912, 573
115+
size: 171, 151
116+
orig: 171, 151
117+
offset: 0, 0
118+
index: -1
119+
tail_medium
120+
rotate: true
121+
xy: 3241, 2
122+
size: 174, 144
123+
orig: 174, 144
124+
offset: 0, 0
125+
index: -1
126+
tail_small
127+
rotate: false
128+
xy: 946, 24
129+
size: 62, 118
130+
orig: 62, 118
131+
offset: 0, 0
132+
index: -1
133+
tongue
134+
rotate: false
135+
xy: 2987, 443
136+
size: 60, 128
137+
orig: 60, 128
138+
offset: 0, 0
139+
index: -1
140+
wing_0
141+
rotate: false
142+
xy: 3912, 462
143+
size: 159, 109
144+
orig: 159, 109
145+
offset: 0, 0
146+
index: -1
147+
wing_1
148+
rotate: false
149+
xy: 3065, 412
150+
size: 543, 363
151+
orig: 543, 363
152+
offset: 0, 0
153+
index: -1
154+
wing_2
155+
rotate: false
156+
xy: 2, 22
157+
size: 522, 185
158+
orig: 522, 185
159+
offset: 0, 0
160+
index: -1
161+
wing_feather1
162+
rotate: false
163+
xy: 3065, 777
164+
size: 849, 245
165+
orig: 849, 245
166+
offset: 0, 0
167+
index: -1
168+
wing_feather2
169+
rotate: false
170+
xy: 2019, 573
171+
size: 1044, 449
172+
orig: 1044, 449
173+
offset: 0, 0
174+
index: -1
175+
wing_feather3
176+
rotate: false
177+
xy: 963, 376
178+
size: 1054, 646
179+
orig: 1054, 646
180+
offset: 0, 0
181+
index: -1
182+
wing_feather4
183+
rotate: false
184+
xy: 2, 209
185+
size: 959, 813
186+
orig: 959, 813
187+
offset: 0, 0
188+
index: -1

data/demo/dragon-spine/dragon.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

data/demo/dragon-spine/dragon.png

104 KB
Loading

data/demo/gltf-duck/AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
From https://github.com/KhronosGroup/glTF-Sample-Models/

data/demo/gltf-duck/Duck0.bin

99.6 KB
Binary file not shown.

data/demo/gltf-duck/DuckCM.png

15.9 KB
Loading

0 commit comments

Comments
 (0)