Open HardikPurohit opened 4 years ago
I need the place from where NFT marker detected first time and 3D animation is being put first time?
I think you are refering to jsartoolkit5 and NFT but in specific what do you mean within the place from where NFT marker detected first time
can you elaborate a bit more your question?
My requirement is when it detects the nft marker it displays the object, but when I move the nft marker that object should not move it will be at the same position where first marker found.
So, if i get the code from where marker detected and putting the object first time I can freeze the position of object.
Ok @HardikPurohit , it depends which code are you using in this repo for NFT, i suggest to you that has the Worker like these:
https://github.com/kalwalt/kalwalt-interactivity-AR/blob/master/nft/nft_pinball_image.html https://github.com/kalwalt/kalwalt-interactivity-AR/blob/master/nft/nft_pinball_video.html https://github.com/kalwalt/kalwalt-interactivity-AR/blob/master/nft/nft_cubist_dragon.html
the others don't use WebWorker or are with threading that i don't recommend ( only for testing )
you can make visible the object simply adding a check as in this part of the code:
if you want to diplay a model instead look at the code in the jsartoolkit5 repo: https://github.com/kalwalt/jsartoolkit5/blob/master/examples/nft_improved_worker/threejs_worker_gltf.html javascript code of the gltf example: https://github.com/kalwalt/jsartoolkit5/blob/master/examples/nft_improved_worker/threejs_worker_gltf.js example to test on the web: https://kalwalt.github.io/jsartoolkit5/examples/nft_improved_worker/threejs_worker_gltf.html
I am using https://github.com/kalwalt/kalwalt-interactivity-AR/blob/master/nft/nft_threads_cesium.html I just track the nft image and displays the 3D animation.
I need the place from where NFT marker detected first time and 3D animation is being put first time?