Questions tagged [scnnode]
SCNNode is a part of the SceneKit Framework. An SCNNode object represents a portion of a scene graph.
scnnode
414
questions
0
votes
0
answers
8
views
SCNView merging two SCNNode
I'm working with Apple's RoomPlan and I'm struggling to load all the nodes from the CapturedStructure into SCNNode.
I was able to browse through the floors, doors, windows, walls and object and render ...
0
votes
1
answer
28
views
How can I wrap image around SCNTube in circular manner?
I want to make a Saturn ring wrapped by an image in circular manner, so it looks real. The Sphere is completely fine, the only issue is with ring node.
What I want:
What I have tried:
let ...
0
votes
0
answers
59
views
Problem repeating a texture over a SCNShape in ARKit/SceneKit
I have a SCNShape and need to repeat a texture over the extrusion side. Some parts are ok, some not:
image from node
The texture:
Texture
The code:
private func makeShape(geometryPath: UIBezierPath, ...
1
vote
0
answers
43
views
Wrong SceneKit hit testing results in iOS 17.2 compared with iOS 16.1 when using either OpenGLES2 or Metal
We’re experiencing an issue with wrong SceneKit hit testing results in iOS 17.2 compared with iOS 16.1 when using the two mentioned engines. Not sure is anyone has experienced the same issue and is ...
1
vote
1
answer
43
views
Make an SCNNode transparent so you see other nodes through it
How do I make the Cylinders transparent so you always see the green wall through them, regardless of the green's alpha value?
Problem description
(full code at the end)
I have an SCNNode() defined as ...
0
votes
1
answer
41
views
How to scale the material image based on user value?
I have a T-Shirt 3D Object model, and I have loaded that using SCNScene Kit. I need to change that model submesh material image size based on the user input value.
func AddNode(scene:SCNScene, ...
0
votes
0
answers
37
views
Get world bounding box of SCNNode
How can we obtain the world bounding box of an SCNNode through code?
My code to get the local bounding box:
extension SCNNode {
func getLocalNodeBoundingBox() -> (width: Float, height: Float, ...
1
vote
1
answer
30
views
How to get localCoordinates and localNormal of point of mesh(SCNNode) SCNCamera is looking at?
I have a SCNScene. Inside it, I have a mesh (SCNNode) and another SCNNode with SCNCamera.
let sceneView = SCNView()
let scene = SCNScene()
let meshNode: SCNNode()
lazy var cameraNode: SCNNode = {
...
0
votes
0
answers
108
views
Swift add custom geometry (view) to scnnode in SceneKit
I have an interactive globe built with SceneKit. The globe is a SCNNode and the dots that represent land are also SCNNodes and are children of the globe. I want to add a custom view as the geometry ...
1
vote
1
answer
125
views
SceneKit - render surface normal of a geometry
In Xcode SceneKit editor, its possible to visualise surface normals of a SCNGeoemtry
It seems that the editor uses SCNGeometrySource.Semantic to render the image:
https://developer.apple.com/...
1
vote
0
answers
70
views
Swift Modify SCNode children
I have an interactive globe where countries are represented by dots, and I have a function that calculates the position of each dot. This function then adds these dots (SCNNodes) to the rootNode (...
1
vote
0
answers
123
views
Swift Prevent Scene point of view reset prior to Camera Action
I have a 3D interactive globe built with SceneKit where countries are represented with dots. The function below takes a position and animates the camera to it.
If the user does not interact with the ...
0
votes
2
answers
508
views
Execute function from SwiftUI view to view controller
I have GlobeView() embedded in a SwiftUI view. I want to call a function to execute from the SwiftUI view to the GlobeViewController.
What's the easiest way I can achieve this given this layered view ...
2
votes
0
answers
94
views
Performing gesture on view prevents camera action
I have a basic 3d interactive globe. I'm using the function centerCameraOnDot to move the camera to center on different parts of the globe. When I run the code and call centerCameraOnDot everything ...
2
votes
0
answers
107
views
Detect touches and ignore other gestures Swift SceneKit
I have an interactive globe and I want to detect taps on the globe, so I can get their 3d position.
When I override the function public override func touchesBegan(_ touches: Set<UITouch>, with ...