Mahmoud Anwar
Mahmoud Anwar

Reputation: 11

Is there a way to change the device camera FOV with ARFoundation Face Tracking (Unity)?

While developing a face filter app in Unity, we faced challenges with the device camera's default field of view (FOV), which appeared overly zoomed in, limiting the user's zooming capabilities within the app. Our goal was to enable a customizable camera FOV, allowing seamless zoom adjustments for a more natural experience.

Efforts to integrate the XR Origin camera feed into a UI RawImage using RenderTexture led to the AR face filter not appearing on the RawImage feed. Attempts to address this involved adding a Parent GameObject to the "Camera Offset" GameObject. However, adjusting its position only affected the FaceFilter's position on the human face, and scaling the Parent GameObject altered the FaceFilter's size undesirably.

Exploring access to the iOS native camera FOV didn't yield the desired zoom effects. Unfortunately, these attempts didn't achieve our goal of adjusting the camera's FOV without impacting the FaceFilter's scale or other AR Foundation subsystems.

Upvotes: 1

Views: 195

Answers (0)

Related Questions