Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.02k stars 1.12k forks source link

For ARKit HumanBodyTracking, is it possible for the camera feed to zoom out or in? #765

Closed yosun closed 3 years ago

yosun commented 3 years ago

For ARKit HumanBodyTracking, is it possible for the camera feed to zoom out or in?

tdmowrer commented 3 years ago

No; ARKit does not expose APIs to control the zoom.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

yshean commented 1 year ago

Hi @tdmowrer, this is an important feature for my project to capture the AR scene with a little zoom out. Do you have any suggestion or workaround to achieve that? Hello @yosun, did you manage to do that in the end? Would love to hear your ideas even if it's not done via ARKit.

tdmowrer commented 1 year ago

I no longer work at Unity but I don't believe you can control physical camera zoom (though maybe that's changed in more recent versions of ARKit?).

However, if you just want to adjust the camera image that is displayed on screen, you can provide a custom material to do so. Your virtual content would no longer line up with the camera feed, though. Depends on your needs.