Open Platform-Group opened 11 months ago
Thanks for this, there are some problems with embedded
with videoTexture
set to true, in the sense that they are not compatible.
I should be able to fix this however I cannot promise a timescale right now.
@nickw1 don't suppose you know how I can work around the rotation issue? I need to implement some buttons or a slider to manually fix inaccuracies with the compass
@Platform-Group to avoid the use of embedded
you can always overlay your buttons on the a-scene by giving them a higher z-index
and absolutely-positioning them.
See this example, for instance: https://github.com/AR-js-org/AR.js/blob/master/aframe/examples/new-location-based/basic-js/index.html
This overlays a very basic UI on the a-scene.
Not sure why changing the CSS destroys the entities, will need to look into this (again, no promised timescale, will do when/if I can)
@nickw1 I have buttons, the issue was I can't currently rotate entities on the fly with the code I have in my original post. I've been messing with look-controls though to get around the issue
My other issue is that I want to fix is the camera stretching, being able to embed the camera or change the css would help me to do that. See this code which would solve that if it wasn't for entities vanishing.
I've also noticed that if you remove videoTexture: true from the arjs attribute on the a-scene, then the embedded attribute is seemingly ignored and goes fullscreen anyway.
Also sourceWidth, sourceHeight, displayWidth, and displayHeight don't seem to do anything?
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If you try to change the CSS of say, the video to try and fix the camera stretching:
document.querySelector('video').setAttribute('style', 'width: 100vw;height: 100vh;object-fit: cover;position: absolute;top: 0;left: 0;');
Or you simply want your scene to be embedded:
Or you want to manually rotate all of your entities to calibrate true north since devices always get it slightly wrong:
All entities vanish, no errors in the console
If the current behavior is a bug, please provide the steps to reproduce.
Just did
Please mention other relevant information such as the browser version, Operating System and Device Name
Happens on all devices I've tried
What is the expected behavior?
Entities don't vanish