-
Notifications
You must be signed in to change notification settings - Fork 20
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
Errors testing the NFT examples #35
Comments
I think the problem is with the artoolkit.min.js I have attached a screenshot of the 2 errors I am getting with the js file and also, by looking at line 13 in artoolkit.min.js I thing there is something wrong with ArcameraParam I am using chrome on windows and Oneplus 5T for testing. And, I generated the tracking files on linux machine as I do not have Windows 10 pro or above for installing docker. Thanks again @kalwalt @nicolocarpignoli |
@manojahuja11 i need also other infos: where did you grab the code: did you git clone the repo? or do you download the package? Are you trying to rebuild the libs with emscripten?
If you mean the (.fset .iset .fset3 files) i think it is not needed to install Docker at all. You need only node and npm installed. |
Hi @kalwalt . I followed the steps from the readme file. I git cloned the repo and rebuild the project using docker on Ubuntu 18.04 LTS Desktop. and I installed npm as mentioned in the readme. Thank you |
Sorry, I can' t reproduce your isssues. All works fine for me. Maybe @nicolocarpignoli has an idea? |
I think the issue is with the build. All those errors can be there because the file is not complete. You should try with docker, the other way is kind of deprecated and may not work. Try with docker and let us know :) @kalwalt I think we have to remove the non-docker way from the Readme or at least state that is deprecated and may not work. |
@nicolocarpignoli he has compiled the libs with Docker. |
Sorry I mistaken. So @manojahuja11 after using docker, the error you encounter is the same? |
Here's the link to the whole jsartooklit5 folder. Let me give you some more details on how I have build the files:
And this is it, please let me know if I have done something wrong or if I have missed any steps. And one more thing, once the .fset .iset .fset3 files are generated, do we need those other files? like the emscripten folder and all those other ones? Or we just need to put those 3 files in dataNFT folder and modify the html and js files and run it. |
@manojahuja11 i will look at your files. But one question: Do you need to build the libs? Do you want to make your modifies to the jsartoolkit5 libs (artoolkit.min.js and so on?) if not, if you want only create your html files with your NFT markers this step is not necessary at all.
i don't see something wrong.
If you want only test your NFT marker ( the 3 files: .fset .iset and .fset3) just put them ina folder in the DataNFT folder and change the url in the .js script. The emscripten folder it'is only needed if you want to build your own modified libs as said above. |
it seems that latest could be updated in the meantime running this command
i get:
but could be also an issue with npm using a different uglifyjs version /type i think, i need to investigate into this. |
Hi @kalwalt So, I did something. And its working now. Now, all the examples are working. Let me explain what I did: Previously, I generated the 3 files in my linux machine, and imported in my windows machine. Now, what I did is, I took the whole folder from the linux machine and imported it in my windows machine and on my server too. And magically, everything is working fine now. Only one problem, camera quality is very bad in 2nd and 3rd example (Android Phone). It cannot track any image. It works fine in google chrome (Windows) Thank you again guys! |
Then probably an issue with the browser or the server you used. You may try with Firefox or another browser, and if you can report the browser version and the server version (python, node or what else) can be useful for other users.
That is another issue. Anyway we want improve this. We let a low resolution to increase performances. You can try to change the width and the height in this part of the code: jsartoolkit5/examples/nft_improved_worker/main_threejs_worker.html Lines 95 to 96 in 244b2b2
Changing these settings will improve the quality of the video, but maybe lower performances. We need to find an optimal solution for this. |
I am using Chrome Version 79.0.3945.130. Sure @kalwalt . I will try to modify the settings and make it work. And I use FileZilla software as a server (FTP client). |
Hello @kalwalt @nicolocarpignoli I am not able to replace the flamingo.glb model with some other model. Please help. Thanks in advance. |
Hi @manojahuja11 have you solved the initial problem? I can help you but please open another issue here or in https://github.com/artoolkitx/jsartoolkit5/issues if it is not related. |
Hi @kalwalt Please look into it. |
Thanks, so closing this one. |
Hi @kalwalt @nicolocarpignoli @ThorstenBux.
Hope you all are doing well. Great work guys. Congratulations!!!
I tested your examples.
I can run "main_threejs_wasm_worker.html" without any errors and I can see the sphere with my custom image.
Remaining 4 scripts which are:
All gives common error which is: Uncaught SyntaxError: Unexpected end of input
at artoolkit.worker.js:1 @ /build/artoolkit.min.js: 13
and additionally, main.html also throws : main.js:108 Uncaught ReferenceError: ARCameraParam is not defined
at load (main.js:108)
at start (main.js:199)
at HTMLVideoElement. (main.html:52) main.js:108
Please help guys.
Thanks in advamce
Originally posted by @manojahuja11 in #1 (comment)
The text was updated successfully, but these errors were encountered: