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

More than one NFT markers #146

Closed
papadako opened this issue Dec 1, 2020 · 7 comments
Closed

More than one NFT markers #146

papadako opened this issue Dec 1, 2020 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@papadako
Copy link

papadako commented Dec 1, 2020

Dear all,

thanks for ARnft! Seems to be working great!

It seems that tracking more than one NFT markers is currently not available! Is this correct? Do you plan to implement this feature?

Best regards and thanks for your nice work!

@kalwalt
Copy link
Member

kalwalt commented Dec 1, 2020

Hi @papadako! You are welcome 😄

It seems that tracking more than one NFT markers is currently not available! Is this correct? Do you plan to implement this feature?

No this is not implemented, but it is one feature to add for sure. At the moment you can find this feature implemented in our jsartoolkit5 fork https://github.com/webarkit/jsartoolkit5 we haven't any examples at the moment but i hope soon that we can provide some snippet.

@kalwalt kalwalt added the question Further information is requested label Dec 1, 2020
@kalwalt kalwalt self-assigned this Dec 1, 2020
@eddiecarbin
Copy link

eddiecarbin commented Dec 6, 2020

Do you mean more than one marker with the same image and model or multiple markers with different images and models?

More than one marker is possible with the existing code. I got it to work with the artoolkit_wasm.js. I created an AR controller object for each marker. Create a new worker for each marker you want to track. It doesn't track multiple markers with the same image.

The worker returns a matrix and you have to move the 3d model and not the camera with the adjusted matrix

@kalwalt
Copy link
Member

kalwalt commented Dec 6, 2020

Do you mean more than one marker with the same image and model or multiple markers with different images and models?

More than one marker is possible with the existing code. I got it to work with the artoolkit_wasm.js. I created an AR controller object for each marker. Create a new worker for each marker you want to track. It doesn't track multiple markers with the same image.

The worker returns a matrix and you have to move the 3d model and not the camera with the adjusted matrix

I think he means more that one markers not multi markers as in Artoolkit5 ( multi markers that act as only one for a more robust feature detection and tracking) It would be easier and more efficient if i implement the loadNFTmarkers as in our jsartoolkit5 https://github.com/webarkit/jsartoolkit5/blob/7f998d00582d86fe95d573e539ddeea9380ccc4e/js/artoolkit.api.js#L579-L585
I can port this to jsartoolkitNFT and then in ARnft.

@papadako
Copy link
Author

papadako commented Dec 14, 2020

Do you mean more than one marker with the same image and model or multiple markers with different images and models?

More than one marker is possible with the existing code. I got it to work with the artoolkit_wasm.js. I created an AR controller object for each marker. Create a new worker for each marker you want to track. It doesn't track multiple markers with the same image.

The worker returns a matrix and you have to move the 3d model and not the camera with the adjusted matrix

Hello @eddiecarbin,

what I want to do is to track 15 different images and use them as a base for providing a UI on top of them for interaction using babylon.js. Can I implement something like this using babylon?

I would appreciate if you could provide a code sample for what you describe.

@kalwalt
Copy link
Member

kalwalt commented Oct 4, 2021

@papadako The multi NFT feature is in the master now see PR #199 for details.

@papadako
Copy link
Author

papadako commented Oct 4, 2021

Excellent!

BR

@albjeremias
Copy link
Contributor

close

@kalwalt kalwalt closed this as completed Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants