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

How to build the lib with more than 9 NFT Markers #120

Closed
danielpetho opened this issue Mar 2, 2022 · 8 comments
Closed

How to build the lib with more than 9 NFT Markers #120

danielpetho opened this issue Mar 2, 2022 · 8 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Comments

@danielpetho
Copy link

I'm trying to load multiple NFT markers, namely more than 9, but I'm getting the error exceed maximum pages.
I've changed the max pages count here -> https://github.com/webarkit/jsartoolkitNFT/blob/master/emscripten/ARToolKitJS.cpp#L26
based on this thread -> artoolkitx/jsartoolkit5#95 (comment).

I've rebuilt the project (based on the wiki instructions) but it doesn't seem to change anything.
Surely I'm doing something wrong or am I missing something?

@kalwalt
Copy link
Member

kalwalt commented Mar 2, 2022

@emzeperix It should be like this. But i will check again when i have a bit of time. 🙂

@danielpetho
Copy link
Author

in the meantime figured it out. Following the wiki here -> https://github.com/webarkit/jsartoolkitNFT/wiki#build-instructions
it appears that the build process produces only the bundled js files into /build and doesn't affect the bundled js file in /dist. Since I am using modules from here -> https://github.com/webarkit/jsartoolkitNFT/tree/master/dist, I had to rebuild the project with npm run build-ts.
Maybe this should be in the wiki as well?

@kalwalt
Copy link
Member

kalwalt commented Mar 2, 2022

Grest! Yes It Is not obvious. I will update the Wiki. I think also i can increase that limit in a new release. What do you think?

@kalwalt
Copy link
Member

kalwalt commented Mar 3, 2022

I have updated the wiki, tell me if you find some errors.

@kalwalt kalwalt self-assigned this Mar 3, 2022
@kalwalt kalwalt added documentation Improvements or additions to documentation enhancement New feature or request bug Something isn't working labels Mar 3, 2022
@kalwalt kalwalt changed the title More than 9 NFT Markers How to build the lib with More than 9 NFT Markers Mar 3, 2022
@kalwalt kalwalt changed the title How to build the lib with More than 9 NFT Markers How to build the lib with more than 9 NFT Markers Mar 3, 2022
@kalwalt
Copy link
Member

kalwalt commented Mar 3, 2022

@emzeperix i'm working on this PR #121 if you are interested.

@danielpetho
Copy link
Author

nice! Everything's working fine rn.

If it matters, I didn't notice any performance issues after increasing the count to 20 (running a half-decent laptop with 8gb ram), so I think it's ok to increase it in the new release. However, I don't know what the typical use-cases for the repo, so not sure if you should take my opinion into account:D

and hey, thanks for this project!

@kalwalt
Copy link
Member

kalwalt commented Mar 4, 2022

nice! Everything's working fine rn.

That's perfect!

If it matters, I didn't notice any performance issues after increasing the count to 20 (running a half-decent laptop with 8gb ram), so I think it's ok to increase it in the new release. However, I don't know what the typical use-cases for the repo, so not sure if you should take my opinion into account:D

That's good, thank you for testing. I haven't a statistic of the typical use-cases of JsartoolkitNFT, but i think most will use on Mobile devices, so 20 it can be sufficient. I think 10 was in rispect of the Mobile tech by many years ago. Maybe we can increase it? I think some testing is needed.

and hey, thanks for this project!

Thank you, you are welcome!

@kalwalt
Copy link
Member

kalwalt commented Mar 6, 2022

Merged in master with #121 and #123

@kalwalt kalwalt closed this as completed Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants