Does anyone know if the Unity library ARFoundation works with the front-facing camera on a mobile device? I am having trouble finding recent answers online
Thanks
You can go to the AR Camera -> AR Camera Manager and change the CameraFacingDirection to User.
Now the mobile will use the Front camera if the feature works with front camera. If not, it will enable the back camera.
Disclosure: Lot's of features like Image 2D Tracking and Body Tracking can't work with front camera :(
Related
I am beginner in unity and not so much used to HoloLens 2. Actually I am trying to make a simple AR app for HoloLens 2, when I connect the external camera it is working fine but when I want to access the stream of HoloLens 2 in recognizing the marker, it does not recognize the marker and I do not know that either the HoloLens 2 camera stream is working or not. I used the main camera as the child of MixedRealityPlaySpace and add some components from AR camera but it does not work then I tried AR camera separate and as a child of MixedRealityPlaySpace but still the HoloLens camera stream is not working. It will be great help if anyone knows about the problems. Thanks In advance
Which way are you using for marker recognizing development? Vuforia or Unity AR foundation? Without any specific context the above information does not make any sense to me.
For AR Foundation, 2D Image tracking feature is not supported on HoloLens platforms for now, you can refer to this link to learn more about feature support per platform:Platform Support.
For Vuforia, there is a closed issue that show how to make Vuforia work with the MRTK: What's the current status of using Vuforia with the MR Toolkit? #1461
I'm working in unity(2018) and building for the HTC Vive VR headset. I had an idea to use the small camera on the front of the headset to make an AR system, as in run the video from the headsets camera to the headset view to then be able to overlap things from a unity environment. But unfortunately, I can't seem to find any examples of others doing this (other than the Tron blue outline system that the Vive comes with) though perhaps I'm not looking with the right keywords.
If anyone has seen something like this or know if it can be done I'd greatly appreciate it.
It is registered as a standard WebCam, so you should be able to use Unitys WebCamTexture.
But the resolution of the cameras is very low.
I am using Unity3d to create a ARCore Application on my android phone.
I can make the app work well except focusing the camera.
My question is how can i make the camera focused to a near object?
I can't find any configurations or settings in ARCore for camera.
Someone knows how to do this please help me .
thx a lot!
ARCore camera focus is locked at a value that the Google team has determined to be optimal for tracking. There are no plans to change that for v1 release.
I'd like to use Vive front camera for traking. but I'd don't know how to apply vive texture to ARcontroller in Vuforia.
So, I though that if there is a method to match video texture to ARcontroller, Vive texture could be matched also.
I use Unity program.
Do you know how to do this?
Front facing camera support was added to SteamVR - you can also see:
https://github.com/dariol/ViveTrackedCameraUnity and related blog for info on getting to the texture which you can pass into Vuforia.
Currently I am learning about ARKit.
On the Internet, there are usually sample code that uses ARSCNView and iPhone's back camera.
I would like to use ARKit with a front camera instead of an iPhone's back camera.
When I use ARKit, can I use ARSCNView and iPhone's front camera?
Does ARKit support both iPhone's front camera and back camera?
Also, could you tell me if you have sample code that uses ARKit, ARSCNView and iPhone's front camera?
Well it does exist, it is still a bit limited as the only devices capable of running it are those that have a TrueDepth front camera, which is only the iPhone X so far.
There is sample code from apple that allows it that can be found here: https://developer.apple.com/documentation/arkit/creating_face_based_ar_experiences
And here is a reference to a list of cameras supported by device: https://developer.apple.com/library/content/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Cameras/Cameras.html#//apple_ref/doc/uid/TP40013599-CH107-SW1