I want to display text next to my 3D model using SceneKit in iOS. It just has to look like it's 2D. Therefore, the text should always be facing the camera, however, I rotate the 3D model. I have an SCNNode with SCNNode geometry, and I attached SCNLookAtConstraint like this:
let constraint = SCNLookAtConstraint(target: cameraNode) constraint.gimbalLockEnabled = true textNode.constraints = [constraint]
They seem to be looking at the camera, but not so! I see all the text in a mirror! Also, sometimes the text rotates, I want it to be horizontally aligned at any time. So that’s all I don’t want.
Can anyone help me here? I just want to have some text that follows several nodes of my 3D object. I don't care how. This does not have to be SCNText for everyone that I need if it can be done with a simple UILabel: great with me! Just tell me how!
source share