Questions tagged [scncamera]
24 questions
6
votes
1 answer
iOS: How to simulate default camera controls in SceneKit?
The code below is meant to simulate the default camera controls in SceneKit, specifically the zoom and rotate functionality.
However, the code isn't nearly as smooth and versatile as the default controls.
For instance, if you load these two models,…

Crashalot
- 33,605
- 61
- 269
- 439
5
votes
1 answer
Setting a Camera's Point Of View in SceneKit
How can I set the SceneKit SCNCamera properties for 2d views such as:
- top view
- bottom view
- front view
- back view
- left side view
- right side view

Anan R
- 311
- 4
- 8
4
votes
3 answers
ARKit – How to display the feed from a virtual SCNCamera placed on SCNPlane?
I put some objects in AR space using ARKit and SceneKit. That works well. Now I'd like to add an additional camera (SCNCamera) that is placed elsewhere in the scene attached and positioned by a common SCNNode. It is oriented to show me the current…

ZAY
- 3,882
- 2
- 13
- 21
4
votes
1 answer
Constraining allowsCameraControl SCNView property to just pinch/zoom gesture
I have a scene where, after some event, I want the user to be able to interact with the camera but just for the pinch/zoom gesture. I would like to enable the allowsCameraControl SCNView property for this purpose.
When you enable…

caminante errante
- 185
- 1
- 11
3
votes
2 answers
ARKit node disappear after 100m
I'm currently working on ARKit (SceneKit) app. I've noticed that if I put a node at 100m, the node will show just fine but if I set it to 101m or farther, it won't show.
Is this the distance limit?
var translation =…

pierre23
- 3,846
- 1
- 28
- 28
2
votes
1 answer
SCNCamera made programmatically not in the correct position
I am trying to programmatically create a camera for my MainScene.scn file.
I need to create the camera in code, as I am wanting to make a camera orbit node, and this is the only way I can think of. I also would like to keep using my scene file.
This…

George
- 25,988
- 10
- 79
- 133
2
votes
1 answer
Correct "Field of View" for SCNCamera
I'm trying to find out what is the correct value for field of view in scene kit on ipad and iphone. the default value of 60 degree has bad effect on a sphere at edge of screen. the sphere gets elliptical shape. A value of 34 degree causes the skybox…

Hashmat Khalil
- 1,826
- 1
- 25
- 49
1
vote
1 answer
How to move around in a SceneKit scene?
In my macCatalyst app, I try to make a SCNScene where the user should be able to move around (with w, a, s and d) but It doesn't work.
I want
to make the possibility to just move around in the scene first
and then adjust it to the direction that…

Michaelll
- 37
- 6
1
vote
2 answers
SceneKit - positioning SCNCamera and permitting object rotation
I am close to completing my first project in SceneKit but I'm struggling with the last few steps. It is probably easiest to explain my progress by sharing a short screen capture video of the Xcode Simulator displaying my current scene.
As you can…

Leden
- 21
- 4
1
vote
2 answers
Swift -What is a SCNCamera's Definition and Purpose
I can't find a good explanation of what a SCNCamera is and it's purpose. This is Apple's definition:
A set of camera attributes that can be attached to a node to provide a
point of view for displaying the scene.
This definition isn't clear…

Lance Samaria
- 17,576
- 18
- 108
- 256
1
vote
1 answer
How to smoothly change the FoV of an SCNCamera that won't animate?
I have an SCNCamera working in a 3D SceneKit view on iOS.
When I change orientation of the screen, in order to keep the world objects the same size and relative positions I need to change the FoV of the SCNCamera.
However, I can't animate this…

Elphaba
- 89
- 1
- 9
1
vote
3 answers
Change "field of view" in SceneKit
I have some camera with perspective projection and object in the (0,0,0).
I computed "bounding frame"(size in pixels on screen) of this object according to this camera and scaled it to fit the screen size. And now it in the middle of screen.
Frame…

Joker
- 263
- 2
- 16
1
vote
0 answers
SceneKit rotate camera automatically
I want my camera to keep rotating, automatically, around a object and only changing it's direction at certain moments. I saw some solutions but they were all with gesture recognizers... How can I keep it rotating at a constant velocity and change…

Pedro de Sá
- 760
- 6
- 19
1
vote
0 answers
SceneKit: Camera movement based on CoreMotion
I'm attempting to emulate ARKit but using the device's front camera instead of the back one (and not restricted to iPhone X). So far I've managed to set up a simple scene with just a 3D model loaded in front of a SCNCamera and thanks to the snippet…

leandrodemarco
- 1,552
- 1
- 15
- 22
0
votes
0 answers
Scenekit - Calculate radius of projected sphere in screen pixels to positioning label always below node
How can I calculate the radius of a projected sphere in screen pixels to position the label below my SCNNode?
Currently I place the label in the center of the node. My SCNCamera has usesOrthographicProjection = false, because the user can move the…

Emanuel Huser
- 178
- 1
- 11