🧵#Camera intrinsics

marwi123

Hi, I think you need to request camera-access for that

You can add camera access as a required feature requiredFeatures: [“camera-access”] via the onBeforeXR callback in one of your components.

https://engine.needle.tools/docs/reference/api/xr-events.html#modify-xr-session-init-options

and in onBeforeRender(frame:XRFrame) use the xr frame to access the camera. let viewerPose = xrFrame.getViewerPose(xrRefSpace);

https://github.com/immersive-web/raw-camera-access/blob/main/explainer.md#using-the-api

hymnkey

alright, I'll try that, thank you! Sorry, I will ask it here but is there a way to access other features of iOS arkit like the Object Scanning?

marwi123

We'll likely support this in the future (not right now). What is your usecase?