webarkit / ARnft-threejs

A rendering package for https://github.com/webarkit/ARnft
GNU General Public License v3.0
22 stars 7 forks source link

Toggling multiple gltf models #17

Open Najaf93 opened 3 years ago

Najaf93 commented 3 years ago

Hi guys, I am trying to achieve an AR experience for the Restaurant menu, so multiple models involved in this project. How can I achieve toggling multiple models on a single NFT marker? Please guide me to achieve this.

My Suggestion: ARnft is an awesome framework for image tracking compared to other frameworks like AR.js etc. The only thing lack in this project is documentation, if there is proper documentation then I think more people will choose this framework for WebAR. Kudos to the developer @kalwalt . 👍

kalwalt commented 3 years ago

Hi @Najaf93 thanks for this. I am adding multi NFT support to jsartoolkitNFT with this PR https://github.com/webarkit/jsartoolkitNFT/pull/102 and then in ARnft. This will load differents NFT marker a in the same Web Worker. In the meantime you can try to develop a function that create multi Worker ( each one that load a single NFT marker). @eddiecarbin already did this. Regarding documentation: yes, It would be awesome but at this period i have limited time, maybe after September i will be more free...

kalwalt commented 2 years ago

Reading after some time this post. I think it should be better for you methods to remove the mesh or model. There is already an issue https://github.com/webarkit/ARnft-threejs/issues/13 Regarding the multi marker feature see webarkit/ARnft#199

kalwalt commented 2 years ago

linked issue #9