0x106 / uiimage-arkit-testing

Test examples to render UILabels in AR on iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UILabel testing with ARKit

  1. The problem is that UILabels have trouble rendering when presented in AR. I think this is because when they are far away from the camera, or at a particular angle, then the text won't render properly, so the label doesn't get attached to its SCNPlane.

  2. The hack is to convert each UILabel to a UIImage, and then render that instead.

Relevant class is ImageFromLabel

  • see here for my original SO question.
  • this question describes how to generate the image from the label

About

Test examples to render UILabels in AR on iOS


Languages

Language:Swift 100.0%