Questions tagged [scnscene]

SCNScene is a part of the SceneKit Framework. An SCNScene object is a container for the node hierarchy and global properties that together form a displayable 3D scene.

91 questions
0
votes
1 answer

Place node in front of the camera and rotate

I want to show a pointer when a user double taps on a sceneView. For this, I want to use SCNTorus because at some angle it is a circle. let geometry = SCNTorus(ringRadius: 0.01, pipeRadius: 0.001) let node = SCNNode(geometry: geometry) I already…
Nikolai Prokofev
  • 184
  • 3
  • 14
0
votes
1 answer

SCNAction causing scene kit renderer to crash

I have a game made of several chessboards set up in an AR environment. I need at some point to have some of the chessboards to blink. I'm doing it with a SCNAction executed in the renderer loop of the scene as described below. func renderer(_…
Jonah Begood
  • 317
  • 2
  • 14
0
votes
2 answers

How to disable double-tap in defaultCameraController?

In SCNScene, allowsCameraControl lets you move and rotate the camera, but when I "double-tap", the camera spins quickly and the object disappears. I am reading the documentation, but I'm not sure how to disable double-tap.
ichikuma
  • 23
  • 3
0
votes
1 answer

How to call a GameViewController function form SKScene which is overlaid

I have: GameViewController, where I setup a 3D scene and a function "fire". Then I have another SKScene, which is overlaid, so I cannot click the nodes on the 3D scene. On the SKScene I have a SKSpriteNode, "fireNode". After click of this fireNode I…
mptaurus
  • 21
  • 4
0
votes
0 answers

How to clone scnnode with different instance?

Currently I'm working on AR Based project which has the functionality of duplicating the AR Object , the problem Im having is when i use .clone() method to clone SCNNode ... it creates same instances and when i change name of duplicated SCNNode , it…
Hanzala Raza
  • 149
  • 1
  • 16
0
votes
2 answers

Is it possible to change the ARKit scene's object when clicking on a button Swift

I am building and ARkit project for the first time, and what I need to do is to, first of all, I have to display a 3D Sphere in the ARSCNView. and then when I click on a button, the sphere should disappear and display a 3D cube at its place. I was…
Elin
  • 105
  • 1
  • 7
0
votes
1 answer

SceneKit Animations on DefaultCameraController

and pardon my ignorance here. I am brand new with SceneKit. I am trying to get my default camera controller to animate with a sort of smooth "panning motion". I am trying to use something…
Mike Perhats
  • 533
  • 1
  • 7
  • 11
0
votes
1 answer

SCNkit: Issues with unhidden nodes

I am creating a 3-D game with a cave as the main environment. The cave is made of a large number of ring segments, one attached to the other, thus creating a currently small tunnel system. If the Player is inside the cave, only a small part of the…
ULI
  • 41
  • 7
0
votes
1 answer

The best way to replace SCNNode in AR

I am developing an AR app about human anatomy. I setup AR and place detection and everything works fine. I need to change or replace the current model with something else. For example, the first model is the human body and then I need to change it…
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
0
votes
0 answers

Combining 3D and 2D in macOS

I need to draw 2D legends, 2D frame, etc. on top of a 3D scene. Here, I am trying to display a 2D label on top of a 3D sphere, so that the label will always face the user, even if they rotate the scene. I am using a SCNView to draw the 3D scene (=>…
silberz
  • 105
  • 1
  • 5
0
votes
2 answers

How to create a angled plane given an array of scnvector3 points

I am trying to create a plane shape in scenekit using a given array of 3d coordinate points that I've converted into scnvector3 points. I've used bezier paths to create 2d planes and am wondering if there is an easy way of drawing planes in real 3d…
MweyaMutsvene
  • 543
  • 4
  • 15
0
votes
1 answer

Scenekit - Add child node (Plane node) to the parent node (sphere node) in front of camera

I am trying to add child node to the parent node which have it's own camera. on tap of the user on scene, using hit test I am adding child node (i.e plane node) to the the parent node (sphere node). But I don't know why the child node is not facing…
Jarvis The Avenger
  • 2,750
  • 1
  • 19
  • 37
0
votes
1 answer

function only placing 1 arkit object Node on scenview (Swift4)

My code below is supposed to place a user created arkit object in the scenview however its not working. It Places 1 object and can not place any more other objects. The code I commented out places scn shape balls perfectly and as many as the user…
user10764035
0
votes
0 answers

ARKit: add a virtual 2D image aside of a tracked image

I am trying to place a virtual 2D image on the screen aside of a tracked (reference) image. To do that I used the code below once the reference image is tracked, I create a plane which resembles the image on the screen and then I evaluate position…
Fabrizio Prosperi
  • 1,398
  • 4
  • 18
  • 32
0
votes
2 answers

CATextLayer not rendering properly on SCNNode

I have a hierarchy of CALayers that I am setting as the diffuse property of my SCNNode's material. I taking snapshots of the current state of the scene (that only has the one node) to save as a PNG to a file using this…
Jsdodgers
  • 5,253
  • 2
  • 20
  • 36