Questions tagged [scnnode]

SCNNode is a part of the SceneKit Framework. An SCNNode object represents a portion of a scene graph.

SCNNode is a part of the SceneKit Framework. An SCNNode object represents a portion of a scene graph. A node by itself has no visible content when the scene containing it is rendered—it represents only a position in space (and transformation of coordinate spaces) relative to its parent node. To construct a scene, you use a hierarchy of nodes to create its structure, then add lights, cameras, and geometry to nodes to create visible content.

401 questions
3
votes
3 answers

Saturn-like rings node in SceneKit

I am creating a model of Saturn and I'm having problems when creating the rings. I found this asset but when I try to set it as a diffuse, it projects like this How can I control the way a texture projects over a geometry?
Cristian Pena
  • 2,139
  • 1
  • 19
  • 31
3
votes
1 answer

Adding multiple nodes to SceneKit SCNScene without blocking main thread

I'm building an ARKit + SceneKit app which requires displaying models on to the real world. Every time a user selects a button, the model changes. I tried loading a new model apon button press into a node and then adding it to the scene's root…
royherma
  • 4,095
  • 1
  • 31
  • 42
3
votes
0 answers

Moving SCNNode on horizontal plane in ARKit

In ARKit, when a horizontal plane is detected. I add a plane like structure (SCNNode) with very small height so it looks like floor. Then i add more objects like cube etc. on tap of that plane. Now i want that user can move the cubes on that plane…
AKumar
  • 381
  • 6
  • 16
3
votes
2 answers

Create a 2D image as a SCNNode in scene kit ios swift

I am trying to create an SCNNode in scene kit based on a 2D jpg image. This image is to be placed in another 3D SCNNode. I have tried using .background.contents on my scene but this is not what i'm looking for. Any idea of how i can do that?…
mei02
  • 61
  • 1
  • 4
3
votes
1 answer

Get vector in SCNNode environment from touch location swift

I have the position and orientation of my camera, the CGPoint touch location on the screen, I need the line (preferably vector) in the direction that I touched on the screen in my 3d SCNNode environment, how can I get this? A code snippet would be…
brw59
  • 502
  • 4
  • 19
3
votes
0 answers

Add curve to SCNGeometry, and calculate normals

I've created a polygon using SCNGeometry and I'm trying to add a curve to my shape, My code is: let vertices: [SCNVector3] = [ SCNVector3Make(-0.1304485, 0.551937, 0.8236193), SCNVector3Make(0.01393811, 0.601815,…
ItayAmza
  • 819
  • 9
  • 21
3
votes
1 answer

SceneKit nodes aren't changing position with scene's root node

I'm using SceneKit with ARKit, and right now have a simple app where I tap on the screen and it adds an ARAnchor and a SCNNode to my scene. At some point, I'm going to want to move the entire scene, so I tried changing…
Andrew
  • 7,693
  • 11
  • 43
  • 81
3
votes
1 answer

Drawing text across sphere in SceneKit

I just started out using SceneKit in my UIKit app with the aim of displaying and manipulating some 3D models. I need to show a sphere with some short text written across it. I am rendering the sphere like this: let sphereGeometry = SCNSphere(radius:…
Youssef Moawad
  • 2,846
  • 5
  • 28
  • 50
3
votes
2 answers

SceneKit SCNPhysicsVehicle problems

So. I'm attempting to create an SCNPhysicsVehicle in SceneKit. The problem I am getting is that the vehicle chassis does collide with the floor in my scene, although the wheels don't. The wheels just go straight through the floor until the chassis…
3
votes
1 answer

Configure SCNNode in scene

I want to display few objects placed around one point like on sphere within SceneKit, but have some issue with object configuration. The main idea is to make camera positioned in the center (0,0,0) and all object will be configured used spherical…
hbk
  • 10,908
  • 11
  • 91
  • 124
3
votes
0 answers

SceneKit: use transform or directly manipulate rotation/position properties if goal is to rotate camera and project node X units in front of camera?

For a voxel art app, the goal is to let users move and rotate a camera in a SceneKit scene then tap to place a block. The code below lets a user rotate a camera by panning. After the gesture ends, we move an existing block so it is -X units on the…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
3
votes
1 answer

SceneKit: how to control size of imported assets, one DAE file creates SCNNode of huge size while another is "normal"

A designer provided the attached two DAE files created in Cinema 4D. Both assets are of comparable size inside of Cinema 4D. Both DAE files were produced with the same export process. Importing the DAE files into a SceneKit scene, however, produces…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
3
votes
1 answer

Extracting geometry information from SCNNode in SceneKit

I am trying to extract the geometry for each node in my scene. I create a scene using a .obj file and it renders perfectly. I would, however, like to extract the geometry from each node but I am stuck. My code is below let scn = SCNScene(named:…
user4432964
3
votes
2 answers

LookAt camera method? NOT SCNLookAtConstraint

I'm aware of the existence of SCNLookAtConstraint in SceneKit. This method, however, is not what I'm looking for. What I need is able to point the camera at any given moment to a point (not a node) in space. Having a X, Y, Z in world coordinates, I…
David Homes
  • 2,725
  • 8
  • 33
  • 53
3
votes
1 answer

Trying to detect what node was tapped on scenekit

This is my problem. I have create an object on maya that have the following hierarchy: bigButton | |-- redDome | | | |-- polySurface1 | |__ polySurface2 | |-- greenDome | |--…
Duck
  • 34,902
  • 47
  • 248
  • 470