jsartoolkit5
jsartoolkit5 copied to clipboard
JS Newb need help
How can I use an stl file instead of the sphere in the barcode example. ?
I downloaded the "STLLoader.js from the offical page but i get an error :
Uncaught SyntaxError: Cannot use import statement outside a module (at STLLoader.js:1:1)
hi @2ant i think because the three.js version included in the artoolkitx/jsartoolkit5 repository is older that the loader you downloaded, actually they've changed a lot. You may update the three.js version accordingly and i'm quite sure you will solve this issue. Probably you need to modify something in the examples...