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

<a-camera> and <a-entity camera> #77

Closed
snavas opened this issue Apr 8, 2020 · 1 comment
Closed

<a-camera> and <a-entity camera> #77

snavas opened this issue Apr 8, 2020 · 1 comment

Comments

@snavas
Copy link

snavas commented Apr 8, 2020

Do you want to request a feature or report a bug?

I am not that sure if this is a bug or I am requesting a feature

What is the current behavior?

As far as I understand from the documentation, <a-camera> and <a-entity camera> should have se same behaviour, in the same way as <a-box> and <a-entity geometry="primitive: box"> do. However, if I use <a-camera>, AR.js show the AR entities way off the marker. I am using the following versions of a-frame and ar.js:

<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>

From the examples in the Ar.js documentation I can asume <a-camera> should be used for location-based AR and <a-entity camera> for image and marker-based AR. However, if this is the case, I think it should be indicated more clearly in the documentation. However, which camera entity should I use if I ever want to combine location based and marker based AR?

If the current behavior is a bug, please provide the steps to reproduce.

This is my code using the <a-camera> and exhibiting the wrong behavior:
https://codepen.io/snavas/pen/yLYBPbL

Please mention other relevant information such as the browser version, Operating System and Device Name

What is the expected behavior?

I would expect <a-camera> and <a-entity camera> to behave in the same way.

@nicolocarpignoli
Copy link
Member

They behave differently. Actually is not possible to combine marker based and location based. You can find more here: #29

We can continue the discussion in there, as I think this is a duplicate of the issue linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants