You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was mentioned on the docs that the AR engine only changes the position and the rotation of the entity in A-Frame but somehow, var rotationDegrees = this.videoPlane.getAttribute('rotation') doesn't work.
Tried getting the rotation property of both the a-entity and the a-plane, but the values don't change.
I'm planning to create a photocard that when rotated 180 degrees, plays another video and goes back to the original video when rotated back in real life.
how do I implement this?
The text was updated successfully, but these errors were encountered:
Hi I need the same, that different video are shown when rotated. In normal AR with Hiro Marker it worked but I used a different code
const markerRotation = marker.object3D.rotation;
const markerRotationX = markerRotation.x * THREE.MathUtils.RAD2DEG;
const markerRotationY = markerRotation.y * THREE.MathUtils.RAD2DEG;
but with mind-AR I could switch to image based instead of marker but this code isnt working. Also looking for a solutions
It was mentioned on the docs that the AR engine only changes the position and the rotation of the entity in A-Frame but somehow, var rotationDegrees = this.videoPlane.getAttribute('rotation') doesn't work.
Tried getting the rotation property of both the a-entity and the a-plane, but the values don't change.
I'm planning to create a photocard that when rotated 180 degrees, plays another video and goes back to the original video when rotated back in real life.
how do I implement this?
The text was updated successfully, but these errors were encountered: