2

I've been looking for an answer to whether ARKit, specifically ARSCNView, shows the same screen/view/scene size on all devices. I only have an iPhone XS so I am unable to test my ARKit app on other devices.

Currently I am overlaying it with an SKScene from SpriteKit, and in SpriteKit there are 2 different sizes all devices run on.

Through print statements I've been able to find that with the front-facing camera, thus presenting my face on-screen, and overlaying it with an SKScene, that the size of the screen/view/scene/etcetc is 375x812.

Does anyone happen to know if all devices present the same size with ARKit + SpriteKit overlay?

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
syds
  • 322
  • 3
  • 12
  • Might I suggest my utility [Projector](https://github.com/aheze/Projector)? It's experimental, but simulates different screen sizes. – aheze Mar 27 '21 at 06:00

1 Answers1

1

Of course different iPhone models present different resolutions. There's a big difference between iPhone's screen size and viewport size. Look at this table. In some cases viewport size is 1/9 of screen size, sometimes – 1/4. Though, some models have identical screen size and viewport size.

Device Screen Size Viewport Size
iPhone 12 Pro Max 1284 x 2778 428 x 926
iPhone X 1125 x 2436 375 x 812
iPhone SE 2 750 x 1334 375 x 667
iPhone 8 Plus 1080 x 1920 414 x 736
iPhone 6s 750 x 1334 375 x 667

For more details, you can read this SO post.

This guide gives you a visual representation.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
  • 1
    Thanks Andy for the chart and link to the SO post, it was a very educational read! In short, the viewport basically renders a 1x screen? Am I correct to assume that? Thank you :) – syds Mar 27 '21 at 07:38
  • Hi @syds, simply put – yes. – Andy Jazz Mar 27 '21 at 07:51