RiggedSimple.gltf 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. {
  2. "accessors": {
  3. "IBM_Armature_Cylinder-skin": {
  4. "bufferView": "bufferView_43",
  5. "byteOffset": 0,
  6. "componentType": 5126,
  7. "count": 2,
  8. "type": "MAT4"
  9. },
  10. "accessor_16": {
  11. "bufferView": "bufferView_44",
  12. "byteOffset": 0,
  13. "byteStride": 0,
  14. "componentType": 5123,
  15. "count": 564,
  16. "type": "SCALAR"
  17. },
  18. "accessor_18": {
  19. "bufferView": "bufferView_45",
  20. "byteOffset": 0,
  21. "byteStride": 12,
  22. "componentType": 5126,
  23. "count": 96,
  24. "max": [
  25. 1,
  26. 1,
  27. 4.57508
  28. ],
  29. "min": [
  30. -1,
  31. -1,
  32. -4.57508
  33. ],
  34. "type": "VEC3"
  35. },
  36. "accessor_20": {
  37. "bufferView": "bufferView_45",
  38. "byteOffset": 1152,
  39. "byteStride": 12,
  40. "componentType": 5126,
  41. "count": 96,
  42. "max": [
  43. 0.998198,
  44. 0.998198,
  45. 0.688838
  46. ],
  47. "min": [
  48. -0.998198,
  49. -0.998198,
  50. -0.644473
  51. ],
  52. "type": "VEC3"
  53. },
  54. "accessor_37": {
  55. "bufferView": "bufferView_45",
  56. "byteOffset": 3840,
  57. "byteStride": 16,
  58. "componentType": 5126,
  59. "count": 96,
  60. "max": [
  61. 1,
  62. 0.261398,
  63. 0,
  64. 0
  65. ],
  66. "min": [
  67. 0.738602,
  68. 0,
  69. 0,
  70. 0
  71. ],
  72. "type": "VEC4"
  73. },
  74. "accessor_40": {
  75. "bufferView": "bufferView_45",
  76. "byteOffset": 2304,
  77. "byteStride": 16,
  78. "componentType": 5126,
  79. "count": 96,
  80. "max": [
  81. 1,
  82. 1,
  83. 0,
  84. 0
  85. ],
  86. "min": [
  87. 0,
  88. 0,
  89. 0,
  90. 0
  91. ],
  92. "type": "VEC4"
  93. },
  94. "animAccessor_0": {
  95. "bufferView": "bufferView_43",
  96. "byteOffset": 128,
  97. "componentType": 5126,
  98. "count": 3,
  99. "type": "SCALAR"
  100. },
  101. "animAccessor_1": {
  102. "bufferView": "bufferView_43",
  103. "byteOffset": 140,
  104. "componentType": 5126,
  105. "count": 3,
  106. "type": "VEC3"
  107. },
  108. "animAccessor_2": {
  109. "bufferView": "bufferView_43",
  110. "byteOffset": 176,
  111. "componentType": 5126,
  112. "count": 3,
  113. "type": "VEC3"
  114. },
  115. "animAccessor_3": {
  116. "bufferView": "bufferView_43",
  117. "byteOffset": 212,
  118. "componentType": 5126,
  119. "count": 3,
  120. "type": "VEC4"
  121. },
  122. "animAccessor_4": {
  123. "bufferView": "bufferView_43",
  124. "byteOffset": 260,
  125. "componentType": 5126,
  126. "count": 3,
  127. "type": "VEC3"
  128. },
  129. "animAccessor_5": {
  130. "bufferView": "bufferView_43",
  131. "byteOffset": 296,
  132. "componentType": 5126,
  133. "count": 3,
  134. "type": "VEC3"
  135. },
  136. "animAccessor_6": {
  137. "bufferView": "bufferView_43",
  138. "byteOffset": 332,
  139. "componentType": 5126,
  140. "count": 3,
  141. "type": "VEC4"
  142. }
  143. },
  144. "animations": {
  145. "animation_0": {
  146. "channels": [
  147. {
  148. "sampler": "animation_0_scale_sampler",
  149. "target": {
  150. "id": "Bone",
  151. "path": "scale"
  152. }
  153. },
  154. {
  155. "sampler": "animation_0_translation_sampler",
  156. "target": {
  157. "id": "Bone",
  158. "path": "translation"
  159. }
  160. },
  161. {
  162. "sampler": "animation_0_rotation_sampler",
  163. "target": {
  164. "id": "Bone",
  165. "path": "rotation"
  166. }
  167. }
  168. ],
  169. "parameters": {
  170. "TIME": "animAccessor_0",
  171. "rotation": "animAccessor_3",
  172. "scale": "animAccessor_1",
  173. "translation": "animAccessor_2"
  174. },
  175. "samplers": {
  176. "animation_0_rotation_sampler": {
  177. "input": "TIME",
  178. "interpolation": "LINEAR",
  179. "output": "rotation"
  180. },
  181. "animation_0_scale_sampler": {
  182. "input": "TIME",
  183. "interpolation": "LINEAR",
  184. "output": "scale"
  185. },
  186. "animation_0_translation_sampler": {
  187. "input": "TIME",
  188. "interpolation": "LINEAR",
  189. "output": "translation"
  190. }
  191. }
  192. },
  193. "animation_1": {
  194. "channels": [
  195. {
  196. "sampler": "animation_1_scale_sampler",
  197. "target": {
  198. "id": "Bone_001",
  199. "path": "scale"
  200. }
  201. },
  202. {
  203. "sampler": "animation_1_translation_sampler",
  204. "target": {
  205. "id": "Bone_001",
  206. "path": "translation"
  207. }
  208. },
  209. {
  210. "sampler": "animation_1_rotation_sampler",
  211. "target": {
  212. "id": "Bone_001",
  213. "path": "rotation"
  214. }
  215. }
  216. ],
  217. "parameters": {
  218. "TIME": "animAccessor_0",
  219. "rotation": "animAccessor_6",
  220. "scale": "animAccessor_4",
  221. "translation": "animAccessor_5"
  222. },
  223. "samplers": {
  224. "animation_1_rotation_sampler": {
  225. "input": "TIME",
  226. "interpolation": "LINEAR",
  227. "output": "rotation"
  228. },
  229. "animation_1_scale_sampler": {
  230. "input": "TIME",
  231. "interpolation": "LINEAR",
  232. "output": "scale"
  233. },
  234. "animation_1_translation_sampler": {
  235. "input": "TIME",
  236. "interpolation": "LINEAR",
  237. "output": "translation"
  238. }
  239. }
  240. }
  241. },
  242. "asset": {
  243. "generator": "collada2gltf@027f74366341d569dea42e9a68b7104cc3892054",
  244. "premultipliedAlpha": true,
  245. "profile": {
  246. "api": "WebGL",
  247. "version": "1.0.2"
  248. },
  249. "version": "1.0"
  250. },
  251. "bufferViews": {
  252. "bufferView_43": {
  253. "buffer": "RiggedSimple",
  254. "byteLength": 380,
  255. "byteOffset": 0
  256. },
  257. "bufferView_44": {
  258. "buffer": "RiggedSimple",
  259. "byteLength": 1128,
  260. "byteOffset": 380,
  261. "target": 34963
  262. },
  263. "bufferView_45": {
  264. "buffer": "RiggedSimple",
  265. "byteLength": 5376,
  266. "byteOffset": 1508,
  267. "target": 34962
  268. }
  269. },
  270. "buffers": {
  271. "RiggedSimple": {
  272. "byteLength": 6884,
  273. "type": "arraybuffer",
  274. "uri": "RiggedSimple.bin"
  275. }
  276. },
  277. "materials": {
  278. "Material_001-effect": {
  279. "name": "Material_001",
  280. "technique": "technique0",
  281. "values": {
  282. "ambient": [
  283. 0,
  284. 0,
  285. 0,
  286. 1
  287. ],
  288. "diffuse": [
  289. 0.279635,
  290. 0.64,
  291. 0.210944,
  292. 1
  293. ],
  294. "emission": [
  295. 0,
  296. 0,
  297. 0,
  298. 1
  299. ],
  300. "shininess": 50,
  301. "specular": [
  302. 0.5,
  303. 0.5,
  304. 0.5,
  305. 1
  306. ]
  307. }
  308. }
  309. },
  310. "meshes": {
  311. "Cylinder-mesh": {
  312. "name": "Cylinder",
  313. "primitives": [
  314. {
  315. "attributes": {
  316. "JOINT": "accessor_40",
  317. "NORMAL": "accessor_20",
  318. "POSITION": "accessor_18",
  319. "WEIGHT": "accessor_37"
  320. },
  321. "indices": "accessor_16",
  322. "material": "Material_001-effect",
  323. "mode": 4
  324. }
  325. ]
  326. }
  327. },
  328. "nodes": {
  329. "Armature": {
  330. "children": [
  331. "Bone"
  332. ],
  333. "matrix": [
  334. 1,
  335. 0,
  336. 0,
  337. 0,
  338. 0,
  339. 1,
  340. 0,
  341. 0,
  342. 0,
  343. 0,
  344. 1,
  345. 0,
  346. 0,
  347. 0,
  348. 0,
  349. 1
  350. ],
  351. "name": "Armature"
  352. },
  353. "Bone": {
  354. "children": [
  355. "Bone_001"
  356. ],
  357. "jointName": "Bone",
  358. "name": "Bone",
  359. "rotation": [
  360. 0.70474,
  361. 0,
  362. 0,
  363. 0.709465
  364. ],
  365. "scale": [
  366. 1,
  367. 1,
  368. 1
  369. ],
  370. "translation": [
  371. 0,
  372. -3.15606e-007,
  373. -4.18033
  374. ]
  375. },
  376. "Bone_001": {
  377. "children": [],
  378. "jointName": "Bone_001",
  379. "name": "Bone.001",
  380. "rotation": [
  381. 0.00205211,
  382. 9.94789e-008,
  383. 0.000291371,
  384. 0.999998
  385. ],
  386. "scale": [
  387. 1,
  388. 1,
  389. 1
  390. ],
  391. "translation": [
  392. 0,
  393. 4.18717,
  394. 0
  395. ]
  396. },
  397. "Cylinder": {
  398. "children": [],
  399. "matrix": [
  400. 1,
  401. 0,
  402. 0,
  403. 0,
  404. 0,
  405. 1,
  406. 0,
  407. 0,
  408. 0,
  409. 0,
  410. 1,
  411. 0,
  412. 0,
  413. 0,
  414. 0,
  415. 1
  416. ],
  417. "meshes": [
  418. "Cylinder-mesh"
  419. ],
  420. "name": "Cylinder",
  421. "skeletons": [
  422. "Bone"
  423. ],
  424. "skin": "Armature_Cylinder-skin"
  425. },
  426. "node_4": {
  427. "children": [
  428. "Armature",
  429. "Cylinder"
  430. ],
  431. "matrix": [
  432. 1,
  433. 0,
  434. 0,
  435. 0,
  436. 0,
  437. 0,
  438. -1,
  439. 0,
  440. 0,
  441. 1,
  442. 0,
  443. 0,
  444. 0,
  445. 0,
  446. 0,
  447. 1
  448. ],
  449. "name": "Y_UP_Transform"
  450. }
  451. },
  452. "programs": {
  453. "program_0": {
  454. "attributes": [
  455. "a_joint",
  456. "a_normal",
  457. "a_position",
  458. "a_weight"
  459. ],
  460. "fragmentShader": "RiggedSimple0FS",
  461. "vertexShader": "RiggedSimple0VS"
  462. }
  463. },
  464. "scene": "defaultScene",
  465. "scenes": {
  466. "defaultScene": {
  467. "nodes": [
  468. "node_4"
  469. ]
  470. }
  471. },
  472. "shaders": {
  473. "RiggedSimple0FS": {
  474. "type": 35632,
  475. "uri": "RiggedSimple0FS.glsl"
  476. },
  477. "RiggedSimple0VS": {
  478. "type": 35633,
  479. "uri": "RiggedSimple0VS.glsl"
  480. }
  481. },
  482. "skins": {
  483. "Armature_Cylinder-skin": {
  484. "bindShapeMatrix": [
  485. 1,
  486. 0,
  487. 0,
  488. 0,
  489. 0,
  490. 1,
  491. 0,
  492. 0,
  493. 0,
  494. 0,
  495. 1,
  496. 0,
  497. 0,
  498. 0,
  499. 0,
  500. 1
  501. ],
  502. "inverseBindMatrices": "IBM_Armature_Cylinder-skin",
  503. "jointNames": [
  504. "Bone",
  505. "Bone_001"
  506. ],
  507. "name": "Armature"
  508. }
  509. },
  510. "techniques": {
  511. "technique0": {
  512. "attributes": {
  513. "a_joint": "joint",
  514. "a_normal": "normal",
  515. "a_position": "position",
  516. "a_weight": "weight"
  517. },
  518. "parameters": {
  519. "ambient": {
  520. "type": 35666
  521. },
  522. "diffuse": {
  523. "type": 35666
  524. },
  525. "emission": {
  526. "type": 35666
  527. },
  528. "joint": {
  529. "semantic": "JOINT",
  530. "type": 35666
  531. },
  532. "jointMat": {
  533. "count": 2,
  534. "semantic": "JOINTMATRIX",
  535. "type": 35676
  536. },
  537. "modelViewMatrix": {
  538. "semantic": "MODELVIEW",
  539. "type": 35676
  540. },
  541. "normal": {
  542. "semantic": "NORMAL",
  543. "type": 35665
  544. },
  545. "normalMatrix": {
  546. "semantic": "MODELVIEWINVERSETRANSPOSE",
  547. "type": 35675
  548. },
  549. "position": {
  550. "semantic": "POSITION",
  551. "type": 35665
  552. },
  553. "projectionMatrix": {
  554. "semantic": "PROJECTION",
  555. "type": 35676
  556. },
  557. "shininess": {
  558. "type": 5126
  559. },
  560. "specular": {
  561. "type": 35666
  562. },
  563. "weight": {
  564. "semantic": "WEIGHT",
  565. "type": 35666
  566. }
  567. },
  568. "program": "program_0",
  569. "states": {
  570. "enable": [
  571. 2929,
  572. 2884
  573. ]
  574. },
  575. "uniforms": {
  576. "u_ambient": "ambient",
  577. "u_diffuse": "diffuse",
  578. "u_emission": "emission",
  579. "u_jointMat": "jointMat",
  580. "u_modelViewMatrix": "modelViewMatrix",
  581. "u_normalMatrix": "normalMatrix",
  582. "u_projectionMatrix": "projectionMatrix",
  583. "u_shininess": "shininess",
  584. "u_specular": "specular"
  585. }
  586. }
  587. }
  588. }