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

From where it is putting 3d object. #7

Open
HardikPurohit opened this issue Feb 4, 2020 · 4 comments
Open

From where it is putting 3d object. #7

HardikPurohit opened this issue Feb 4, 2020 · 4 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@HardikPurohit
Copy link

HardikPurohit commented Feb 4, 2020

I need the place from where NFT marker detected first time and 3D animation is being put first time?

@kalwalt
Copy link
Owner

kalwalt commented Feb 4, 2020

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?

@kalwalt kalwalt self-assigned this Feb 4, 2020
@kalwalt kalwalt added help wanted Extra attention is needed question Further information is requested labels Feb 4, 2020
@HardikPurohit
Copy link
Author

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.

@kalwalt
Copy link
Owner

kalwalt commented Feb 6, 2020

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 (!world) {
plane.visible = false;
} else {
plane.visible = true;

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

@HardikPurohit
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants