Skip to content

Commit db57cdc

Browse files
committed
[ts][threejs] Allow to load pma textures. Non-pma textures are pma on upload. Fixed blending modes. Add physics example.
1 parent 06dc94e commit db57cdc

13 files changed

+4307
-20
lines changed

examples/export/runtimes.sh

+1
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ rm "$ROOT/spine-ts/spine-threejs/example/assets/"*
456456
cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/spine-threejs/example/assets/"
457457
cp -f ../raptor/export/raptor.atlas "$ROOT/spine-ts/spine-threejs/example/assets/"
458458
cp -f ../raptor/export/raptor.png "$ROOT/spine-ts/spine-threejs/example/assets/"
459+
cp -f ../celestial-circus/export/* "$ROOT/spine-ts/spine-threejs/example/assets/"
459460

460461
rm "$ROOT/spine-ts/spine-player/example/assets/"*
461462
cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/spine-player/example/assets/"

spine-ts/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ <h1>spine-ts Examples</h1>
178178
<li>
179179
<a href="/spine-threejs/example/logarithmic-depth-buffer.html">Logarithmic depth buffer</a>
180180
</li>
181+
<li>
182+
<a href="/spine-threejs/example/physics.html">Physics</a>
183+
</li>
181184
</ul>
182185
</ul>
183186
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
celestial-circus-pma.png
2+
size: 1024, 1024
3+
filter: Linear, Linear
4+
pma: true
5+
scale: 0.4
6+
arm-back-down
7+
bounds: 324, 401, 38, 82
8+
rotate: 90
9+
arm-back-up
10+
bounds: 290, 44, 83, 116
11+
rotate: 90
12+
arm-front-down
13+
bounds: 706, 2, 36, 78
14+
rotate: 90
15+
arm-front-up
16+
bounds: 860, 138, 77, 116
17+
bench
18+
bounds: 725, 256, 189, 48
19+
body-bottom
20+
bounds: 879, 868, 154, 124
21+
rotate: 90
22+
body-top
23+
bounds: 725, 128, 126, 133
24+
rotate: 90
25+
chest
26+
bounds: 408, 26, 104, 93
27+
cloud-back
28+
bounds: 752, 378, 202, 165
29+
cloud-front
30+
bounds: 2, 2, 325, 196
31+
rotate: 90
32+
collar
33+
bounds: 786, 13, 47, 26
34+
ear
35+
bounds: 1002, 643, 20, 28
36+
eye-back-shadow
37+
bounds: 428, 395, 14, 10
38+
eye-front-shadow
39+
bounds: 704, 529, 24, 14
40+
eye-reflex-back
41+
bounds: 860, 128, 8, 7
42+
rotate: 90
43+
eye-reflex-front
44+
bounds: 726, 386, 10, 7
45+
eye-white-back
46+
bounds: 835, 23, 13, 16
47+
eye-white-front
48+
bounds: 1005, 1000, 22, 17
49+
rotate: 90
50+
eyelashes-down-back
51+
bounds: 232, 329, 11, 6
52+
rotate: 90
53+
eyelashes-down-front
54+
bounds: 913, 851, 15, 6
55+
rotate: 90
56+
eyelashes-top-back
57+
bounds: 408, 395, 18, 10
58+
eyelashes-top-front
59+
bounds: 702, 179, 30, 16
60+
rotate: 90
61+
face
62+
bounds: 514, 26, 93, 102
63+
rotate: 90
64+
feathers-back
65+
bounds: 954, 625, 46, 46
66+
feathers-front
67+
bounds: 706, 40, 72, 86
68+
fringe-middle-back
69+
bounds: 200, 6, 33, 52
70+
rotate: 90
71+
fringe-middle-front
72+
bounds: 878, 76, 60, 50
73+
rotate: 90
74+
fringe-side-back
75+
bounds: 780, 41, 27, 94
76+
rotate: 90
77+
fringe-side-front
78+
bounds: 939, 161, 26, 93
79+
glove-bottom-back
80+
bounds: 954, 572, 51, 41
81+
rotate: 90
82+
glove-bottom-front
83+
bounds: 916, 256, 47, 48
84+
hair-back-1
85+
bounds: 444, 395, 132, 306
86+
rotate: 90
87+
hair-back-2
88+
bounds: 438, 211, 80, 285
89+
rotate: 90
90+
hair-back-3
91+
bounds: 719, 306, 70, 268
92+
rotate: 90
93+
hair-back-4
94+
bounds: 438, 121, 88, 262
95+
rotate: 90
96+
hair-back-5
97+
bounds: 438, 293, 88, 279
98+
rotate: 90
99+
hair-back-6
100+
bounds: 200, 41, 88, 286
101+
hair-hat-shadow
102+
bounds: 232, 398, 90, 41
103+
hand-back
104+
bounds: 954, 673, 60, 47
105+
rotate: 90
106+
hand-front
107+
bounds: 967, 172, 53, 60
108+
hat-back
109+
bounds: 954, 802, 64, 45
110+
rotate: 90
111+
hat-front
112+
bounds: 780, 70, 96, 56
113+
head-back
114+
bounds: 618, 17, 102, 86
115+
rotate: 90
116+
jabot
117+
bounds: 967, 234, 70, 55
118+
rotate: 90
119+
leg-back
120+
bounds: 232, 441, 210, 333
121+
leg-front
122+
bounds: 444, 529, 258, 320
123+
logo-brooch
124+
bounds: 954, 545, 16, 25
125+
mouth
126+
bounds: 408, 121, 22, 6
127+
neck
128+
bounds: 232, 342, 39, 56
129+
rotate: 90
130+
nose
131+
bounds: 742, 529, 6, 7
132+
rotate: 90
133+
nose-highlight
134+
bounds: 719, 300, 4, 4
135+
nose-shadow
136+
bounds: 869, 128, 7, 8
137+
pupil-back
138+
bounds: 730, 529, 10, 14
139+
pupil-front
140+
bounds: 254, 21, 12, 18
141+
rope-back
142+
bounds: 232, 383, 10, 492
143+
rotate: 90
144+
rope-front
145+
bounds: 232, 383, 10, 492
146+
rotate: 90
147+
rope-front-bottom
148+
bounds: 954, 735, 42, 65
149+
skirt
150+
bounds: 2, 776, 440, 246
151+
sock-bow
152+
bounds: 408, 407, 33, 32
153+
spine-logo-body
154+
bounds: 879, 853, 13, 32
155+
rotate: 90
156+
star-big
157+
bounds: 939, 141, 18, 24
158+
rotate: 90
159+
star-medium
160+
bounds: 742, 537, 6, 8
161+
rotate: 90
162+
star-small
163+
bounds: 719, 378, 3, 4
164+
rotate: 90
165+
underskirt
166+
bounds: 2, 329, 445, 228
167+
rotate: 90
168+
underskirt-back
169+
bounds: 444, 851, 433, 171
170+
wing-back
171+
bounds: 290, 129, 146, 252
172+
wing-front
173+
bounds: 704, 545, 304, 248
174+
rotate: 90
Loading

0 commit comments

Comments
 (0)