Questions tagged [scenekit]
Apple SceneKit is a high-level framework for 3D data visualizations and casual games on iOS, macOS, iPadOS, tvOS and watchOS. Since 2017, SceneKit is used as an ARKit companion and a main render engine for AR apps.
scenekit
4,120
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
0
answers
22
views
Convert CGPoint into SCNVector3
I want to convert CGPoint into SCNVector3. I am using ARFaceTrackingConfiguration for face tracking.
Below is my code to convert SCNVector3 to CGPoint
let point = faceAnchor.verticeAndProjection(to: ...
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 ...
-1
votes
0
answers
37
views
Change animation scale and position with Blender Python
I'm working with 3D in SceneKit, iOS.
For my scene I take a glb model from my provider and animation for it in dae format from mixamo.com.
Problem: when I try to apply the animation on my model, it ...
2
votes
1
answer
60
views
How do I combine AudioKit and ARKit
I have a situation where I want to
Detect objects using ARKit ✅
Synthesise audio using AudioKit ✅
Pipe the generated audio to the SCNNode
First step, set up AudioKit
func initKit() {
// ...
-1
votes
1
answer
24
views
Swift program with SceneKit throws error saying that the scene is not declaring an output file
When trying to build my app, I get this error:
shell script build rule for '/Users/user/Desktop/Roomscanner/Roomscanner/RoomModel/RoomPlan Scene.scn' must declare at least one output file
To be quite ...
1
vote
0
answers
42
views
Add animation from a separate file in SceneKit, iOS
I have a model of a person in glb format, that I import to SceneKit through GLTFKit2.
I also have an animation for that model living in a separate fbx file. I convert it to dae in Blender.
Their ...
0
votes
0
answers
50
views
Cut out walls and doors in Roomplan & SceneKit
I'm working on a SwiftUI project using SceneKit to visualize a 3D room. I'm trying to draw wall nodes with cutouts, similar to the default CaptureView. The left image shows my current result, and the ...
0
votes
1
answer
38
views
How to ensure current SKScene has fully loaded before engaging it with the GamePad Controller?
How to ensure current SKScene has fully loaded before engaging it with the GamePad Controller?
The problem is this = when stopping sound is involved when I do switch SKScenes, if I press the buttons ...
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 ...
0
votes
0
answers
36
views
Finding x/y screen position of a Metal fragment shader modifier for custom ARKit/SceneKit occlusion
I have a simple ARKit/SceneKit app that draws a cube in front of the camera. Using the depth map, I want to hide the cube pixels that are occluded by an object. RealityKit supports occlusion, but ...
2
votes
1
answer
142
views
Should I convert a SceneKit app to RealityKit for VisionOS?
I have an app that displays 3D content using SceneKit. It is not an AR app; the 3D content is completely created programmatically.
I want to port it to VisionOS. The basic step is simple. I can ...
1
vote
1
answer
61
views
Why is SKNode bound to MainActor?
In the following code:
public class Foo {
public func createNode() -> SCNNode {
return SCNNode()
}
public func createNode() -> SKNode {
return SKNode()
}
}
...
1
vote
1
answer
35
views
SceneKit: Loading .scnassets inside a Swift Package
I have a shared SceneView that I should show it directly on iPad and show in a seperate window on macOS if it's requested by the user.
So, I decided to have SceneView and it's assets inside a Swift ...
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 ...