diff --git a/mind-ar/index.html b/mind-ar/index.html index 1ef86b1ba6f74101b4696d61168ad431885ba126..a1bbd1fb5c07bd4f35393c97676942f6467928dd 100644 --- a/mind-ar/index.html +++ b/mind-ar/index.html @@ -63,25 +63,35 @@ <template id="ar-scene-template"> <a-scene id="ar-scene" - mindar-image="imageTargetSrc: ./targets.mind;" + mindar-image="imageTargetSrc: https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.2.2/examples/image-tracking/assets/card-example/card.mind;" vr-mode-ui="enabled: false" device-orientation-permission-ui="enabled: false" > <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="./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="-3 -3 0.1" - scale="0.005 0.005 0.005" + position="-2 -2 0" + scale="0.0025 0.0025 0.0025" + rotation="0 0 0" 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> diff --git a/mind-ar/jambe_gauche_comp_10.gltf b/mind-ar/jambe_gauche_comp_10.gltf index 152bd161be74de82998a5cac2ef6c6e07bf3ad41..2ba307580a0c7482ff03e350e96182053671b1fb 100644 --- a/mind-ar/jambe_gauche_comp_10.gltf +++ b/mind-ar/jambe_gauche_comp_10.gltf @@ -1,104 +1,85 @@ { - "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" - } - ] + "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, 0, 0, 0] + } + ], + "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 a709ff2190165bf58bd88a99617d1b2889ebe79d..358b84b85aab13c29e9d33c8bbafc50d378fc0e4 100644 Binary files a/mind-ar/targets.mind and b/mind-ar/targets.mind differ