Comments (14)
@vokai no worries. We may implement the multi-camera feature anyway, because it will allow a user to choose their camera.
from ar.js.
@lucas23456
I'm sorry to be harsh, but there is an issue template that has to be used.
I understand it might be a bit of work from your side, but it's a great amount of time saved for all the developers who are willing to help you.
Opening an issue with an empty description and a title saying "does it work?" is simply not a collaborative way of exposing your problems.
Anyway, what @vokai says is probably the actual problem here: on AR.js we never really managed to properly handled multicamera phones. That part needs probably a big update that is crucial for Android phones - no problem instead for multicamera iPhones.
I don't have time to prepare a PR for this but I'm okay with providing a review if someone can do the task. :)
from ar.js.
@vokai maybe for this issue our project webarkit/ARnft may help. Look at CameraRenderer class, It has a routine to use the right camera.
from ar.js.
I think I was wrong. I can't see nothing in S22 because it has by default the wi-fi support to get better position.
So I was geolocated based on wifi and not my actual location, even using mobile network data same result.
By disabling the network to determine location, I was back to being properly positioned.
Nothing about choosing camera. I'm so sorry for my wrong debug.
from ar.js.
I have little knowledge of the repository, I am not confident in doing PR but I have done some research.
In this repository there is the choice of device to use with the API.
(https://github.com/philnash/mediadevices-camera-selection --> livetest: https://philnash.github.io/mediadevices-camera-selection/)
I think we need to parameterize the camera stream then enumerating the available devices.
In my case running the test I have 4 cameras available (front: wide and normal, back: wide and normal).
So the last one in the list is the one that should go by default.
Or if you want to provide for device switching.
I am currently developing my own project using the "new location based," so I can do all available tests from that example.
from ar.js.
Hi @lucas23456 what is going wrong in your case?
Is it location-based, marker-based or NFT?
Thanks.
from ar.js.
I'm also running on my fedora "new location based" example. I got different results on samsung galaxy S7 and galaxy S22.
In Galaxy S7 (older) some examples works but in Samsung S22 nothing appear in camera.
Why this different behavior?
I think also that examples dirs need a review...I can help you. We can keep update on Telegram or give me your favourite channel. I really want this library goes good. I'm ready to collaborate. (Full stack web-developer here)
from ar.js.
I'm also running on my fedora "new location based" example. I got different results on samsung galaxy S7 and galaxy S22. In Galaxy S7 (older) some examples works but in Samsung S22 nothing appear in camera. Why this different behavior? I think also that examples dirs need a review...I can help you. We can keep update on Telegram or give me your favourite channel. I really want this library goes good. I'm ready to collaborate. (Full stack web-developer here)
Yes, we can collabrate together. I can send you my telegram username:) but not here.
from ar.js.
Hi @lucas23456 what is going wrong in your case?
Is it location-based, marker-based or NFT?
Thanks.
The examples that in Aframe website
doesn't work
from ar.js.
Hi, it's possible these need to be updated, @nicolocarpignoli would know more.
For up-to-date documentation I would recommend you look at the docs here: https://ar-js-org.github.io/AR.js-Docs/
I am maintaining the location-based side of things, while @kalwalt is looking after the NFT and marker-based parts.
from ar.js.
@vokai thanks for your offer of collaboration. It's difficult to say why the location-based examples work on some devices and not others, on the S22 I think you'd need to do a bit of debugging to try and see if any errors come up on the console.
I'm not really on any channels besides GitHub and GitLab, I can give you an email if that helps.
from ar.js.
I think the problem of different behaviors may be due to the fact that modern smartphones have 2/3 cameras.
In fact, with my S22 the wide-angle camera is opened by default.
Can this be due to this?
from ar.js.
@vokai feel free to submit a PR to fix this if you are able.
I could probably do it myself as long as the media devices API supports this (haven't checked), but I don't have a multi-camera phone to use for testing.
(If I did, I'd probably need to give it to you for testing if you are happy with this). Thanks.
from ar.js.
@vokai @kalwalt thanks for the info.
@vokai if you want to do this then feel free to code it, if not I should be able to implement it. It is likely to be in the release after next, as I have a few fixes to new-location-based
that I'd like to merge and release this week.
from ar.js.
Related Issues (20)
- Image tracking AR.js with React stuck on loading screen , please help! HOT 2
- Help please! image tracking work but 3d model and video not showing
- change "Twitter" to "𝕏 (Twitter)" in README.md HOT 3
- The camera cannot be controlled by external parameters, especially on phones with multiple cameras,help me please!
- Why the camera fails to be used now?
- Seems like the version is Updated but not the docs and example
- Document is so misleading HOT 2
- Module Import fails in Nuxt3 --- ar-threex-location-only.js --- Cannot read properties of undefined (reading 'THREE') HOT 2
- 将ar.js引入three.js 请求一个功能
- Location based compass orientation is incorrect. It always says North is direction when starting up. HOT 3
- Location Base - Entity is following HOT 3
- Event fired when user "see" an object (location based) HOT 1
- "click" events are not emitted on Android when scene is loaded dynamically HOT 1
- Replacing a building?
- Need help implementing AR.js
- New-location-based entity position problem HOT 1
- Location Based AR.JS project mixed with AFRAME Hit Test
- Place to list device models / OS versions which cause the "content sticking to camera" problem (#278)
- Raycaster intersects invisible marker roots. Is there any landmark to distinguish between displayed and hidden elements? (marker-based)
- node_modules animation-mixer not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ar.js.