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
0
votes
1 answer

iOS simulator issue with SceneKit displays only black shapes

I have developed a small dice rolling app using SceneKit. While everything works correctly on device my dice nodes are shown as black shapes in the simulator. This used to work fine before but I stopped working on the app for a year and Xcode…
0
votes
0 answers

Failed to load SKSpriteNode with UIImage texture into ARKit SCNNode

Failed to load SKSpriteNode with UIImage texture into ARKit SCNNode I am trying to display a barcode image on a SCNNode reside in an AR WorldTracking session, unfortunately, I just can’t make it work and am hoping someone could help me to solve this…
jluo5364
  • 1
  • 2
0
votes
1 answer

SceneKit isResting property on SCNPhysicsBody always returns false

I am loading a ball into an ARSCNView using ARKit/SceneKit and the ball moves along a floor plane until it comes to a stop depending on how much force I apply on the ball. A SCNNode has property for detecting when the node stops moving and sets its…
Alex McPherson
  • 3,185
  • 3
  • 30
  • 41
0
votes
0 answers

Index is out of bounds for axis 0 with size - python

I have 72 image to classify with my model and now I'm trying to make a prediction with my classification, but I have encountered an error about index 32 that is out of bounds for axis 0 with size 32. test_datagen =…
0
votes
1 answer

SCNParticleSystem not adding to SCNNode on touchesbegan

I am placing multiple SCNNodes in my view on load of my application. On touchesbegan I am removing whatever node is tapped on. All of this works so far so I know my code is working however just adding a SCNParticleSystem is giving me issues. I…
Cameron
  • 185
  • 2
  • 11
0
votes
1 answer

SCNLevelOfDetails delegate/notification

I'm using SCNLevelOfDetails with SceneKit. I was wondering if there's a way to know when the engine changes the levelOfDetails for a particular node's geometry. Many thanks.
Adrien Yvon
  • 662
  • 7
  • 18
0
votes
0 answers

ARKit get 2d rect of 3d object

so, I am new to ARKit and trying to figure it out. I have ARWorldTrackingConfiguration, with reference images (as shown below) ARKit gives me the image as ARImageAnchor and its position in 3d space. But I want to know it's position(CGRect) in my…
ysnzlcn
  • 558
  • 6
  • 18
0
votes
0 answers

overreleased while already deallocating (object set to nil) for SCNNodes in iOS SceneKit

Seeking for help for an issue, apologize if it is obvious as I am not experienced. My environment is Xcode 10.1 and Swift. weak var node = Label(geometry: label, labelType: labelType, index: index) if node != nil { transformTextNodeCenter(for:…
0
votes
1 answer

Updating Eye Transform Position in Swift for iOS 12.0+

I would like to continually output the updated eye transform matrices for an ARFaceGeometry in an ARSession. I have written the following so far and instead of updating the position continually, it simply outputs the initial position and continues…
A.M.
  • 47
  • 6
0
votes
3 answers

Why does only the built-in UIColors work here?

Having failed miserably at further attempts to solve this question on my own, I'm trying something I thought would work for certain: func switchColor(data:UInt32){ switch data { case 1..<200: …
Tobias
  • 37
  • 7
0
votes
1 answer

Check if SCNNodes overlap in view

How to detect if two SCNNodes are overlapping in SCNView? They are added in different x an z axis position but from point of camera they look like they overlap together. I want to detect this and then move one of them up or down.
bezoadam
  • 587
  • 2
  • 8
  • 18
0
votes
1 answer

SCNNode Rotation Multiple Axes

This Question was posted, but never answered. Similar to This Question, I am trying to understand SCNNode.rotation as a 4D vector. The prior question utilizes an example that only manipulates 1 axis, i.e., SCNNode.rotation = (0, 0, 1, degToRad(45))…
impression7vx
  • 1,728
  • 1
  • 20
  • 50
0
votes
1 answer

ValueError: Error when checking target: expected dense_3 to have 2 dimensions. But I specified dense_3 to have 1 dimension

I keep getting this error: ValueError: Error when checking target: expected dense_3 to have 2 dimensions, but got array with shape (1, 10, 1) but I specified dense_3 to have 1 dimension, here's my…
Emilio
  • 25
  • 1
  • 5
0
votes
1 answer

How to scale 3D object vertically (along y-axis) in Swift?

I created a door with ARKit and I want create a scale animation. My goal is to scale it only along the y-axis (stretch the door to be longer). I want the door to grow within a duration of 1 second. My approach was to simply scale it but I only have…
Jush KillaB
  • 151
  • 1
  • 11
0
votes
1 answer

SCNNode Pivot Location

Let's say I have 2 SCNNodes node1 and node2. I want node1 to have a position of node1.position = SCNVector3(0, 0, 0) I want node2 to have a position of node2.position = SCNVector3(0, 0, 1) Now, I want node2 to have rotate around node1. Therefore, I…
impression7vx
  • 1,728
  • 1
  • 20
  • 50