Camera Aspect Ratio and Metal ARkit rendering

Hi I'm working on a project that uses RealityKit including the placement of 3d objects.

However, I want to be able to run the background camera through Metal post-processing before being rendered but haven't been able to find a working approach. I'm open to it rendering directly into the ARview or a separate MTKview or swiftui layer.

I've tried using the default xcode project of an Augmented Reality App with Metal Content. However it seems to use a 1.33 aspect camera by default instead of the iphone 15s standard ratio which works by default when I use the regular realitykit pathway and doesnt seem to have the proper ratio available as an option

Open to any approach that gets the job done here.

Thank you,

Any direction would be

Answered by DTS Engineer in 798803022

Hello @BLHimmel,

Have you explored ARView's postProcess render callback yet?

Best regards,

Greg

Hello @BLHimmel,

Have you explored ARView's postProcess render callback yet?

Best regards,

Greg

Camera Aspect Ratio and Metal ARkit rendering
 
 
Q