Skip to content

Commit ae43c36

Browse files
committed
updated ARnft example
1 parent 96ddbd9 commit ae43c36

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

dist/ARnft.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/Data/js/third_party/three.js/three.min.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/arNFT_example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
ARnft.ARnft.init(640, 480, "examples/DataNFT/pinball", 'config.json', true)
2323
.then((nft) => {
2424
let mat = new THREE.MeshLambertMaterial({color: 0xff0000});
25-
let cubeGeom = new THREE.CubeGeometry(1,1,1);
26-
let cube = new THREE.Mesh(cubeGeom, mat);
25+
let boxGeom = new THREE.BoxGeometry(1,1,1);
26+
let cube = new THREE.Mesh(boxGeom, mat);
2727
cube.position.z = 90;
2828
cube.scale.set(180,180,180);
2929
nft.add(cube);

examples/config.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"addPath": "",
33
"cameraPara": "examples/Data/camera_para.dat",
4+
"container": {
5+
"create": true,
6+
"containerName": "",
7+
"canvasName": ""
8+
},
49
"videoSettings": {
510
"width": {
611
"min": 640,
@@ -13,6 +18,7 @@
1318
"facingMode": "environment"
1419
},
1520
"loading": {
21+
"create": true,
1622
"logo": {
1723
"src": "Data/arNFT-logo.gif",
1824
"alt": "arNFT.js logo"
@@ -23,6 +29,10 @@
2329
"type": "three",
2430
"alpha": true,
2531
"antialias": true,
26-
"precision": "mediump"
32+
"precision": "mediump",
33+
"objVisibility": false
34+
},
35+
"stats": {
36+
"createHtml": true
2737
}
2838
}

0 commit comments

Comments
 (0)