-
Notifications
You must be signed in to change notification settings - Fork 164
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
Custom image doesn't display flamingo in demo despite it being tracked #52
Comments
Hi! Probably is the Flamingo position, it is relative to the marker size, so the example position is for the Pinball image. Keep change the scale and try other positions. |
Hi @Carnaux, Thank you for your quick response! I've set the position to 0,0,0 which caused the flamingo to move to the bottom left corner of the pinball image. But when I retry with my own image, the cube still doesn't show up. To be able to visualize the location and size a bit better, I've changed the flamingo with a cube in the demo page. This works for the pinball image where at first the cube is invisible but then becomes visible after 2 seconds as it starts to increase in size. Is there a calculation which might help me to determine the range of positions and sizes which I should use? Or do you have any suggestions how I can debug this better than just randomly changing the size and reloading the page each time? I know this isn't a typical bug report where an error is encountered or a feature being requested. I am really thankful for your help in getting me started with custom nft markers! |
There is this issue kalwalt/jsartoolkit5#41, maybe it can help you |
Hi @Carnaux, I'm trying to create an NFT marker from a custom image.
The image has a rather poor quality (only 1 star) and the flamingo doesn't seem to display when I run the demo.
However when I log "scene.visible" to the console. It returns true when I try to track my image. (along with multiple logs like: "[info] Tracked page 15794384 (max 0).")
Is additional configuration required for a marker to be able to display a marker when It can already be tracked?
I tried to set the model scale to 0.0001 and multiple it by 10 every second in case it wasn't shown due to size differences. But this still didn't show anything.
When I generate a marker from the pinball image downloaded from the web, the flamingo model is shown without any issues or demo code modifications.
I've attached the image and generated markers which I generated.
![boter](https://user-images.githubusercontent.com/5862398/84089049-426d6e80-a9ee-11ea-958b-424238bbab72.jpg)
boter_marker.zip
Thank you for your help!
The text was updated successfully, but these errors were encountered: