diff --git a/mind-ar/index.html b/mind-ar/index.html index 0a9cba5d8710b43740b03e1be1b77a0c05577154..d8f1e5e02f53501cae973ed00745a7a76f877ebe 100644 --- a/mind-ar/index.html +++ b/mind-ar/index.html @@ -53,30 +53,19 @@ > <a-camera position="0 0 0" look-controls="enabled: false"></a-camera> <a-assets> - <img - id="card" - src="https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.2.2/examples/image-tracking/assets/card-example/card.png" - /> <a-asset-item id="avatarModel" - src="https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.2.2/examples/image-tracking/assets/card-example/softmind/scene.gltf" + src="./jambe_gauche_comp_10.gltf" ></a-asset-item> </a-assets> <a-entity mindar-image-target="targetIndex: 0"> - <a-plane - src="#card" - position="0 0 0" - height="0.552" - width="1" - rotation="0 0 0" - ></a-plane> <a-gltf-model rotation="0 0 0 " - position="0 0 0.1" + position="-3 -3 0.1" scale="0.005 0.005 0.005" - src="#avatarModel" - animation="property: position; to: 0 0.1 0.1; dur: 1000; easing: easeInOutQuad; loop: true; dir: alternate" - ></a-gltf-model> + src="#avatarModel"> + <!--animation="property: position; to: 0 0.1 0.1; dur: 1000; easing: easeInOutQuad; loop: true; dir: alternate" --> + </a-gltf-model> </a-entity> </a-scene> </template> diff --git a/mind-ar/jambe_gauche_comp_10.bin b/mind-ar/jambe_gauche_comp_10.bin new file mode 100644 index 0000000000000000000000000000000000000000..2c5f101f5233891a25c7a7073eb6b8392d9654df Binary files /dev/null and b/mind-ar/jambe_gauche_comp_10.bin differ diff --git a/mind-ar/jambe_gauche_comp_10.gltf b/mind-ar/jambe_gauche_comp_10.gltf new file mode 100644 index 0000000000000000000000000000000000000000..152bd161be74de82998a5cac2ef6c6e07bf3ad41 --- /dev/null +++ b/mind-ar/jambe_gauche_comp_10.gltf @@ -0,0 +1,104 @@ +{ + "asset":{ + "generator":"Khronos glTF Blender I/O v3.6.27", + "version":"2.0" + }, + "extensionsUsed":[ + "KHR_draco_mesh_compression" + ], + "extensionsRequired":[ + "KHR_draco_mesh_compression" + ], + "scene":0, + "scenes":[ + { + "name":"Scene", + "nodes":[ + 0 + ] + } + ], + "nodes":[ + { + "mesh":0, + "name":"Jungling_Vom_Magdalensberg", + "rotation":[ + 0.7071068286895752, + 0, + 0, + 0.7071068286895752 + ] + } + ], + "meshes":[ + { + "name":"Jungling_Vom_Magdalensberg", + "primitives":[ + { + "attributes":{ + "COLOR_0":0, + "POSITION":1, + "NORMAL":2 + }, + "extensions":{ + "KHR_draco_mesh_compression":{ + "bufferView":0, + "attributes":{ + "COLOR_0":0, + "POSITION":1, + "NORMAL":2 + } + } + }, + "indices":3, + "mode":4 + } + ] + } + ], + "accessors":[ + { + "componentType":5126, + "count":642850, + "type":"VEC4" + }, + { + "componentType":5126, + "count":642850, + "max":[ + 520.5945434570312, + 316.06463623046875, + 1.436126947402954 + ], + "min":[ + 111.76576232910156, + 9.455382347106934, + -777.7801513671875 + ], + "type":"VEC3" + }, + { + "componentType":5126, + "count":642850, + "type":"VEC3" + }, + { + "componentType":5125, + "count":643254, + "type":"SCALAR" + } + ], + "bufferViews":[ + { + "buffer":0, + "byteLength":2867965, + "byteOffset":0 + } + ], + "buffers":[ + { + "byteLength":2867968, + "uri":"jambe_gauche_comp_10.bin" + } + ] +} diff --git a/mind-ar/targets.mind b/mind-ar/targets.mind index f8a4919a7d90fda3d4548fcce568b91defabb60a..a709ff2190165bf58bd88a99617d1b2889ebe79d 100644 Binary files a/mind-ar/targets.mind and b/mind-ar/targets.mind differ