-
Notifications
You must be signed in to change notification settings - Fork 948
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
AR-NFT not working properly when using within React #177
Comments
Probably not a bug, try to change the position or the scale of the model. If it is tracked it should show up. |
@kalwalt, thanks for the prompt response. |
It really depends on the model. Try to use something simpler for your testing purposes - like a-box or a-text entity and see if that works. |
@AdamVI2 When I use a simple scene with primitives like box, the scene appears. |
@ShimantaBhuyan Have you find a solution? Maybe there is a conflict between AR.js and React css styling, that make shift the model. It would be useful, to root the issue, try with different models... |
@kalwalt, not yet, no. |
Hi @ShimantaBhuyan how do you imported AR.js into react? We are working on the ES6 feature in this PR #116 i think it will solve most of the issues. |
I loaded it on the index.html from the cdn. |
@ShimantaBhuyan If you are interested the @ar-js-org/ar.js npm package will be available soon, but if you want to test follow this instructions in this issue #234 |
Sure Walter, will have a look at it and get back to you.
…On Tue, 20 Apr, 2021, 3:28 am Walter Perdan, ***@***.***> wrote:
@ShimantaBhuyan <https://github.com/ShimantaBhuyan> If you are interested
the ***@***.***/ar.js* npm package will be available soon, but if you
want to test follow this instructions in this issue #234
<#234>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#177 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHYO3GQSM2W3N6KPKCBMDT3TJSRP3ANCNFSM4RKTP4KQ>
.
|
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When using ar-nft in my project made with React, the elements inside the nft tag do not show up. However I can see that the image is being tracked based on console log.
If the current behavior is a bug, please provide the steps to reproduce.
Here's the react component which contains the aframe scene:
Here's the index.js which renders onto the DOM
Here's the web browsers console log which shows that the image is being tracked:




Please mention other relevant information such as the browser version, Operating System and Device Name
Chrome Version: Version 85.0.4183.102
A-Frame Version : 0.9.2 (Date 2019-12-09, Commit #c4432e7c)
three Version : ^0.111.3
WebVR Polyfill Version : ^0.10.10
AR.js Version : 3.3.0
What is the expected behavior?
The scene inside the ar-nft tag should show up when the image is tracked
If this is a feature request, what is motivation or use case for changing the behavior?
N.A.
The text was updated successfully, but these errors were encountered: