Skip to content
Snippets Groups Projects
Commit 0819aba1 authored by Camille PILLOT's avatar Camille PILLOT
Browse files

add arjs

parent 62e2adba
Branches
No related tags found
No related merge requests found
Pipeline #39005 failed
<!DOCTYPE html>
<html>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<!-- we import arjs version without NFT but with marker + location based support -->
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<body style="margin: 0px; overflow: hidden">
<a-scene
embedded
arjs="detectionMode: mono_and_matrix; matrixCodeType: 3x3;"
>
<a-marker type="barcode" value="5">
<!-- we use cors proxy to avoid cross-origin problems -->
<!--
⚠️⚠️⚠️
https://arjs-cors-proxy.herokuapp.com/ is now offline, Heroku has dismissed all his free plans from November 2022.
You need to host your own proxy and use it instead. The proxy is based on CORS Anywhere (see https://github.com/Rob--W/cors-anywhere).
⚠️⚠️⚠️
-->
<a-entity
position="0 0 0"
scale="0.5 0.5 0.5"
gltf-model="vending_machine_-_ps1_low_poly/scene.gltf"
></a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>
Model Information:
* title: Vending Machine - PS1 Low Poly
* source: https://sketchfab.com/3d-models/vending-machine-ps1-low-poly-1dd16274855e4da7b6dc332a30bf438c
* author: Wersaus33 (https://sketchfab.com/wersaus33)
Model License:
* license type: CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
* requirements: Author must be credited. Commercial use is allowed.
If you use this 3D model in your project be sure to copy paste this credit wherever you share it:
This work is based on "Vending Machine - PS1 Low Poly" (https://sketchfab.com/3d-models/vending-machine-ps1-low-poly-1dd16274855e4da7b6dc332a30bf438c) by Wersaus33 (https://sketchfab.com/wersaus33) licensed under CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
\ No newline at end of file
File added
{
"accessors": [
{
"bufferView": 2,
"componentType": 5126,
"count": 4,
"max": [
1.0,
1.0,
0.27836930751800537
],
"min": [
-1.0,
-1.0,
0.27836930751800537
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 48,
"componentType": 5126,
"count": 4,
"max": [
0.0,
0.0,
1.0
],
"min": [
0.0,
0.0,
1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 4,
"max": [
1.0,
1.0
],
"min": [
0.0,
0.0
],
"type": "VEC2"
},
{
"bufferView": 0,
"componentType": 5125,
"count": 6,
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 96,
"componentType": 5126,
"count": 116,
"max": [
1.0785797834396362,
1.0995588302612305,
0.278977632522583
],
"min": [
-1.0906394720077515,
-3.394082546234131,
-1.0038073062896729
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 1488,
"componentType": 5126,
"count": 116,
"max": [
1.0,
1.0,
1.0
],
"min": [
-1.0,
-1.0,
-1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 32,
"componentType": 5126,
"count": 116,
"max": [
1.0018115043640137,
0.9940674304962158
],
"min": [
-0.0018788278102874756,
-0.0019999996293336153
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 24,
"componentType": 5125,
"count": 192,
"type": "SCALAR"
},
{
"bufferView": 2,
"byteOffset": 2880,
"componentType": 5126,
"count": 16,
"max": [
0.9680508375167847,
0.982027530670166,
0.2578812837600708
],
"min": [
-0.9795780181884766,
-0.970883846282959,
0.19486869871616364
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 3072,
"componentType": 5126,
"count": 16,
"max": [
1.0,
1.0,
0.0
],
"min": [
-1.0,
-1.0,
0.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 960,
"componentType": 5126,
"count": 16,
"max": [
0.9601946473121643,
0.966732382774353
],
"min": [
0.04330413043498993,
0.5362676978111267
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 792,
"componentType": 5125,
"count": 24,
"type": "SCALAR"
}
],
"asset": {
"extras": {
"author": "Wersaus33 (https://sketchfab.com/wersaus33)",
"license": "CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)",
"source": "https://sketchfab.com/3d-models/vending-machine-ps1-low-poly-1dd16274855e4da7b6dc332a30bf438c",
"title": "Vending Machine - PS1 Low Poly"
},
"generator": "Sketchfab-15.8.0",
"version": "2.0"
},
"bufferViews": [
{
"buffer": 0,
"byteLength": 888,
"name": "floatBufferViews",
"target": 34963
},
{
"buffer": 0,
"byteLength": 1088,
"byteOffset": 888,
"byteStride": 8,
"name": "floatBufferViews",
"target": 34962
},
{
"buffer": 0,
"byteLength": 3264,
"byteOffset": 1976,
"byteStride": 12,
"name": "floatBufferViews",
"target": 34962
}
],
"buffers": [
{
"byteLength": 5240,
"uri": "scene.bin"
}
],
"extensionsUsed": [
"KHR_materials_transmission",
"KHR_materials_specular",
"KHR_materials_emissive_strength"
],
"images": [
{
"uri": "textures/vending_m_baseColor.jpeg"
}
],
"materials": [
{
"alphaMode": "BLEND",
"doubleSided": true,
"extensions": {
"KHR_materials_transmission": {
"transmissionFactor": 0.9710475308115225
}
},
"name": "Glass",
"pbrMetallicRoughness": {
"baseColorFactor": [
0.8,
0.8,
0.8,
0.25
],
"metallicFactor": 0.0,
"roughnessFactor": 0.0
}
},
{
"doubleSided": true,
"extensions": {
"KHR_materials_specular": {
"specularColorFactor": [
1.0,
1.0,
1.0
],
"specularFactor": 0.32152478940888196
}
},
"name": "vending_m",
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
},
"metallicFactor": 0.5714303129304774,
"roughnessFactor": 0.5931416171935
}
},
{
"doubleSided": true,
"emissiveFactor": [
1.0,
1.0,
1.0
],
"extensions": {
"KHR_materials_emissive_strength": {
"emissiveStrength": 10.0
},
"KHR_materials_specular": {
"specularColorFactor": [
1.0,
1.0,
1.0
],
"specularFactor": 1.0
}
},
"name": "Lights",
"pbrMetallicRoughness": {
"baseColorFactor": [
0.8,
0.8,
0.8,
1.0
],
"metallicFactor": 0.0,
"roughnessFactor": 0.8211145618000169
}
}
],
"meshes": [
{
"name": "Plane_Glass_0",
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 0,
"TEXCOORD_0": 2
},
"indices": 3,
"material": 0,
"mode": 4
}
]
},
{
"name": "Plane_vending_m_0",
"primitives": [
{
"attributes": {
"NORMAL": 5,
"POSITION": 4,
"TEXCOORD_0": 6
},
"indices": 7,
"material": 1,
"mode": 4
}
]
},
{
"name": "Plane_Lights_0",
"primitives": [
{
"attributes": {
"NORMAL": 9,
"POSITION": 8,
"TEXCOORD_0": 10
},
"indices": 11,
"material": 2,
"mode": 4
}
]
}
],
"nodes": [
{
"children": [
1
],
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
2.220446049250313e-16,
-1.0,
0.0,
0.0,
1.0,
2.220446049250313e-16,
0.0,
0.0,
0.0,
0.0,
1.0
],
"name": "Sketchfab_model"
},
{
"children": [
2
],
"matrix": [
0.009999999776482582,
0.0,
0.0,
0.0,
0.0,
0.0,
0.009999999776482582,
0.0,
0.0,
-0.009999999776482582,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"name": "a19263bec23b44b89cde89c025f6618a.fbx"
},
{
"children": [
3
],
"name": "RootNode"
},
{
"children": [
4,
5,
6
],
"matrix": [
63.02646255493164,
0.0,
0.0,
0.0,
0.0,
56.24850463867182,
2.4587004266441977e-06,
0.0,
0.0,
-2.7549744009931412e-06,
63.02646255493158,
0.0,
0.3800418972969055,
122.55294036865234,
1.6288773622363806e-05,
1.0
],
"name": "Plane"
},
{
"mesh": 0,
"name": "Plane_Glass_0"
},
{
"mesh": 1,
"name": "Plane_vending_m_0"
},
{
"mesh": 2,
"name": "Plane_Lights_0"
}
],
"samplers": [
{
"magFilter": 9728,
"minFilter": 9728,
"wrapS": 10497,
"wrapT": 10497
}
],
"scene": 0,
"scenes": [
{
"name": "Sketchfab_Scene",
"nodes": [
0
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
}
]
}
arjs/vending_machine_-_ps1_low_poly/textures/vending_m_baseColor.jpeg

6.34 KiB

Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment