Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS Newb need help #118

Open
2ant opened this issue Feb 19, 2024 · 1 comment
Open

JS Newb need help #118

2ant opened this issue Feb 19, 2024 · 1 comment

Comments

@2ant
Copy link

2ant commented Feb 19, 2024

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)

@kalwalt
Copy link

kalwalt commented Feb 20, 2024

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants