Skip to content

Commit

Permalink
first test with new ARnft-threejs and three.js v169
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Oct 30, 2024
1 parent bb68831 commit caea518
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 243 deletions.
4 changes: 2 additions & 2 deletions dist/ARnft.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
"@types/node": "22.7.5",
"@types/stats.js": "^0.17.0",
"@types/uuid": "10.0.0",
"prettier": "^3.1.0",
"rimraf": "5.0.10",
"prettier": "^3.3.3",
"rimraf": "6.0.1",
"stats.js": "^0.17.0",
"ts-loader": "^9.5.1",
"typedoc": "0.26.10",
"typescript": "^5.3.2",
"webpack": "^5.89.0",
"typescript": "^5.5.4",
"webpack": "5.94.0",
"webpack-cli": "^5.1.4",
"worker-loader": "^3.0.8"
},
Expand All @@ -59,9 +59,9 @@
"license": "LGPL-3.0",
"resolutions": {},
"dependencies": {
"@webarkit/jsartoolkit-nft": "^1.6.1",
"@webarkit/jsartoolkit-nft": "^1.7.1",
"@webarkit/oneeurofilter-ts": "^0.1.0",
"terser-webpack-plugin": "^5.3.9",
"uuid": "10.0.0"
"terser-webpack-plugin": "^5.3.10",
"uuid": "11.0.2"
}
}
21 changes: 16 additions & 5 deletions examples/arNFT_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,22 @@
🖼 Marker Image
</a>

<script src="js/third_party/three.js/three.min.js"></script>
<script src="js/ARnftThreejs.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/",
"arnft-threejs": "./js/ARnftThreejs.module.js"
}
}
</script>
<script src="../dist/ARnft.js"></script>

<script>
<script type="module">
import * as THREE from 'three'
import ARnftThreejs from 'arnft-threejs'
const { SceneRendererTJS, NFTaddTJS } = ARnftThreejs;

let width = 640;
let height = 480;
ARnft.ARnft.init(width, height, [["examples/DataNFT/pinball"]], [['pinball']], 'config.json', true)
Expand Down Expand Up @@ -56,11 +67,11 @@
}
}

let sceneThreejs = new ARnftThreejs.SceneRendererTJS(config, canvas, nft.uuid,
let sceneThreejs = new SceneRendererTJS(config, canvas, nft.uuid,
true);
sceneThreejs.initRenderer();

let nftAddTJS = new ARnftThreejs.NFTaddTJS(nft.uuid);
let nftAddTJS = new NFTaddTJS(nft.uuid);
nftAddTJS.add(cube, 'pinball', false);

const tick = () => {
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
"@types/node": "22.7.5",
"@types/stats.js": "^0.17.0",
"@types/uuid": "10.0.0",
"prettier": "^3.1.0",
"rimraf": "5.0.10",
"prettier": "^3.3.3",
"rimraf": "6.0.1",
"stats.js": "^0.17.0",
"ts-loader": "^9.5.1",
"typedoc": "0.26.10",
"typescript": "^5.3.2",
"webpack": "^5.89.0",
"typescript": "^5.5.4",
"webpack": "5.94.0",
"webpack-cli": "^5.1.4",
"worker-loader": "^3.0.8"
},
Expand All @@ -59,9 +59,9 @@
"license": "LGPL-3.0",
"resolutions": {},
"dependencies": {
"@webarkit/jsartoolkit-nft": "^1.6.1",
"@webarkit/jsartoolkit-nft": "^1.7.1",
"@webarkit/oneeurofilter-ts": "^0.1.0",
"terser-webpack-plugin": "^5.3.9",
"uuid": "10.0.0"
"terser-webpack-plugin": "^5.3.10",
"uuid": "11.0.2"
}
}
Loading

0 comments on commit caea518

Please sign in to comment.