Does the default camera position not change?

So, I'm trying to understand how CameraControl really works.

I have a scene and I set allowCameraControl = true. When I swing around and the scene rotates or translates (two fingers ...), I don’t understand which set of scenes really changes for me.

I was expecting the camera node to change position or rotation. Not that case. I also recorded the position and rotation of the root node of the scene ... unchanged.

Therefore, to be clear, in the rendering delegate called for each frame update, I record the position and rotation of the node camera that I set for the scene, I registered the position and rotation of the root of the node, I also recorded the position of te and the rotation of the node, which I added to the stage. None of them show a change in position and / or rotation.

Can someone explain to me which interchangeable set changes when a scene is rotated or translated using standard camera controls?

+4
source share
2 answers

A new camera is created, leaving the original unchanged.

If you show the inspector using the property showsStatistics, you will notice a change in the point of view from the camera that you had (even if it is "Untitled"), on kSCNFreeViewCameraName.

, , node.

, !

+3

, . . scnView.pointOfView

+4

All Articles