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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

SceneView not loading .usdz model until I tap it

I have a SceneView that's not loading/displaying my 3D model until I tap inside it. Any idea why this could be happening? Could there be a problem regarding the .usdz file? Here's the code: List{ ...
Vlada Misici's user avatar
0 votes
0 answers
22 views

Why SceneKit is so difficult to navigate and also less resources? [closed]

I have seen SceneKit being not able to catchup even with smaller engines like GODOT, which only comes under 200mb of disk size. Maybe apple is not focused towards it, but surprisingly the resources ...
Varun Sharma's user avatar
1 vote
1 answer
29 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 (...
ahmed's user avatar
  • 201
2 votes
1 answer
66 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 ...
ahmed's user avatar
  • 201
2 votes
1 answer
60 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 ...
ahmed's user avatar
  • 201
2 votes
1 answer
66 views

Rotate and Move Camera around object does not work Swift SceneKit

I have a basic 3d Interactive globe built with swift and SceneKit. When the view launches, the camera is pointing towards Africa. I want to rotate and move the camera to point at Oregon, United States....
ahmed's user avatar
  • 201
0 votes
0 answers
48 views

SCNSceneRendererDelegate Update function not called from UI thread in MAUI

In MAUI, I am trying to do a HitTest in the Update function of the SCNSceneRendererDelegate class. The problem is that the Update function is called from a background thread which results in a UIKit ...
mlxyz's user avatar
  • 62
0 votes
1 answer
77 views

How can I use a SceneKit Mesh in RealityKit?

I have SceneKit code that generates 3D Meshes stored as SCNGeometry objects: geometry = SCNGeometry(sources: [vertexSource, normalSource, texCoordSource], elements: elements) I am porting my code to ...
wcochran's user avatar
  • 10.2k
0 votes
0 answers
43 views

How to know if a usdz model contains animations & animate it in iOS swift using SceneKit?

I need help in understand how to know if a usdz model contains animation & if yes animate it from one state to another state. Below is my code class ViewController: UIViewController { ...
BraveEvidence's user avatar
0 votes
0 answers
49 views

Read GLB file with Draco and MeshCompression extensions

I want to read .glb file it has compressed file from .gltf, GLTF file was reading from GLTFScenekit and GLTFKit2 libraries. But after compressed to glb it wasn't reading and getting crashed.showing ...
Aarif's user avatar
  • 87
0 votes
0 answers
31 views

Strange physics effect on self-created SCNGeometry

I'm trying to build a pool game, downloaded a 3D model(.blend) from sketchfab, and exported it as .dae file, then I drag it into Xcode and converted to .scn file. When I finish the coding part and add ...
Nick Pengyan's user avatar
1 vote
0 answers
14 views

Getting HDR colors before tonemapping is applied in SCNTechnique shader

I am writing a custom shader to postprocess the rendering of SceneKit using SCNTechnique. I have a pass with inputs set to COLOR, which provides me the result of the SceneKit render. Unfortunately, ...
Abel Toy's user avatar
  • 328
0 votes
1 answer
51 views

Avatar falls apart in SceneKit scene in iOS 17

suddenly we found a problem in our app after iOS 17 release: Everything works well on the SceneKit scene bellow iOS16. We can load an avatar and we can rotate nodes with given quaternions. But in iOS ...
Frank's user avatar
  • 275
0 votes
0 answers
57 views

SceneKit SCNMaterial transparency texture doesn't work properly with physicallyBased lighting model

I have an IOS ARKit/Scenekit view, I have an SCNMaterial like this: material = SCNMaterial() material.diffuse.contents = UIColor(.blue) material.transparent.contents = "art.scnassets/transTex.png&...
DoubleEwe's user avatar
  • 151
0 votes
0 answers
32 views

How to get nodes of scene (SceneKit) by tap gesture in SwiftUI SceneView?

I am trying to use SceneKit in SwiftUI. SceneView makes many things easy without the need of the UIViewRepresentable but I cannot reach to the location information when I tap on the scene in the ...
BosphorusBlue's user avatar
1 vote
0 answers
43 views

Convert ARDepthData to AVDepthData with float32 or depth32 disparity

I want to create a 3D model with Photogrammetry Session. It's working fine with AVCaptureSession with Depth Data. But I want to capture a series of frames from ARKit and sceneDepth which is of type ...
noob coder's user avatar
0 votes
0 answers
105 views

SceneKit display a USDZ object on the screen with SwiftUI

I have created a carousel with a ScrollView that contains as many buttons as there are .usdz files. In the ResourceButton structure, when you tap on a button, it should: Check if a .usdz file is ...
moundji Thindji's user avatar
2 votes
0 answers
53 views

The practical effect issue of 'constant' in SceneKit's lighting model

I'm learning about SceneKit's lighting model, and I noticed in Apple's official documentation that the explanation for 'constant' is: This means that 'constant' should consider both ambient light and ...
Yasic's user avatar
  • 69
1 vote
0 answers
31 views

how to create a SwiftUI or SceneKit Controller similar to Blender Axis Controller

I want to create a controller for an axis similar to Blender either using SwiftUI or SceneKit Drag Gestures to rotate the axis and viewport of the SceneKit Grid Section. Is there any better way to ...
Krishnan PA's user avatar
1 vote
0 answers
37 views

How to set a bone/joint position of SCNSkinner object using SCNIKConstraint?

I'm trying to rig a robot model (in this case, it's Apple's robot model) using a set of keypoint data that I have. At this moment I'm trying to move all of the arm joints using SCNIKConstraint. I ...
cleanrun's user avatar
  • 580
1 vote
0 answers
31 views

How to apply a texture to a geodesic sphere in SceneKit

When I apply a texture to a non-geodesic sphere the sphere has one look, but when SCNSphere.isGeodesic is set to true, the sphere has an absolutely different look (i.e. not a rotation of the first ...
Olex's user avatar
  • 208
3 votes
1 answer
167 views

SceneKit/ARKit - Rendering a depth map of scene?

I have a scene containing SCNNode models, and a camera. I'd like to generate a depth map render of my scene (from perspective of camera) - something like this: How can this be achieved? Currently ...
Andy Hin's user avatar
  • 30.3k
0 votes
0 answers
20 views

SceneKit SceneView pointOfView == nil causes objects to not move

I'm trying to figure out how SceneKit works and came across a strange behaviour. if I set up SceneView with pointOfView == nil changing other nodes position sops working: carNode.worldPosition.x = 100 ...
s0nicYouth's user avatar
2 votes
0 answers
37 views

How to resize a node independently along a direction/axis (+x, -y, +y, etc.)?

I have a node with a resize handle for each direction (+x, -x, +y, -y, +z, -z). When the user grabs the handle to resize, it should grow in that direction only. The user can also resize multiple times ...
Andy Hin's user avatar
  • 30.3k
0 votes
0 answers
38 views

Scenekit: Dynamic Modification of Geometries

For my 3D game about a spaceship flying in a cave, I need to modify the geometries that the cave is built from. As stated in earlier posts, the cave is constructed from circular shapes by putting one ...
ULI's user avatar
  • 41
2 votes
1 answer
293 views

How to change and continuously update RealityKit's Text using a keyboard?

I have been able to do this on SceneKit in the past for whatever reason this can't be done on RealityKit. This is some code I am using to test before adding to the app I am working on. Updating AR ...
justCubesAndText's user avatar
0 votes
1 answer
21 views

How to keep track of only one image in ARKit Image detection

I’m building an image tracking app which displays a plane with AV Player to play a video on top of the image using SCNPlane. When user swipes to next image then next video will play. I was able to ...
Sai Balaji's user avatar
0 votes
0 answers
12 views

Why do I use CABasicanimate and SCNAction in scenekit to add the same animation, but with different results

I use CABasicanimation and SCNAction in scenekit to add the same animation, but with different results enter image description here I am now using CABasicanimation and SCNAction to add an animation of ...
niro sha's user avatar
0 votes
1 answer
58 views

Is there any way to invert/flip the result figure?

Using iOS - Swift Xcode 14 I have drawn an image using some points... and I got an image as output. But the image is an inverted or a flipped image. I used several code for flipping/Inverting the ...
JESTIN SAJI's user avatar
0 votes
0 answers
22 views

Car model falling through the plane in ARKit plane detection

I'm trying to make a simple drivable car using ARKit. I have found two ways to detect the plane. My first approach is this here in didUpdate delegate method I just take the existing anchor and plane ...
Sai Balaji's user avatar
1 vote
0 answers
61 views

What is the best way to maintain the position of a USDZ model using ARKit in Swift?

I'm trying to build a quality assurance app in Swift using ARKit. I'd like to position a USDZ model on top of its real world counterpart similar to this video... I have been able to successfully ...
Joel S.'s user avatar
  • 71
0 votes
1 answer
43 views

How to scale down 3D model in ARKit

I was able to make a simple RC Car AR app using ARKit and SceneKit Vehicle physics. But now I need to change the car model. I'm using the SceneKit vehicle demo car model I was able to import it into ...
Sai Balaji's user avatar
0 votes
1 answer
38 views

SceneKit and Rotation around a point due to user swipe

I am continuing a project from somebody else, in which I am looking at code that I do not really understand. I have not worked with SceneKit before ... so I am trying to learn as much as I can. We ...
Wouter's user avatar
  • 126
0 votes
1 answer
42 views

Issue with Audio Playback in ARSCNView Scene

I'm currently working on an AR app using ARKit and SceneKit, and I've encountered an issue with audio playback in my ViewController class. I have a SCNNode that represents a rotating and moving box in ...
StrongMan's user avatar
0 votes
0 answers
21 views

How to recreate Geometry by changing colour when user select at any point of node

I have a 3D SCN model i am showing it in SCNode in SceneKit, I want to implement a code when user touch on any part of node i want to change the colour of that point user select and recreate the ...
Moinuddin's user avatar
0 votes
0 answers
45 views

Does anyone have a fix for this error code: "[SceneKit] Error: Could not get pixel buffer (CVPixelBufferRef)"?

I am currently trying to build an app that will display a 360 video in vr format. The video plays fine when I have it saved as a file inside of the Xcode project. However, the error occurs when I try ...
Hugh Edney's user avatar
0 votes
0 answers
29 views

3D model removing some part and changing texture of a specific vertices

I am trying to crop and edit a 3d model which I created using photogrammetry ,I tried multiple solutions but seems like none of that worked , posting in urge of guidance , let me address what I did , ...
premanshu's user avatar
0 votes
0 answers
14 views

SceneKit collision between camera and object misses initially

I've got a camera node and a wall object node in my scene with assigned physics body properties. Basically when the camera is backing up through space and goes through a wall, I want to make the wall ...
user339946's user avatar
  • 6,011
1 vote
0 answers
28 views

How to give cel shading material in SceneKit?

I would like to know if it is possible to apply a cel shading effect in SceneKit? When I apply a toon material effect in a 3D app it is never transmitted to SceneKit... so is there a way to do it? ...
jeremyjoron's user avatar
0 votes
0 answers
21 views

Drawing Polygon Planes with SceneKit

Does SceneKit not like planes (2D objects)? I have a bunch of polygons in 3D space (think panels of a roof) but they have no thickness. Sometimes I get weird results especially if all vertices have ...
P. Ent's user avatar
  • 1,683
0 votes
0 answers
31 views

SceneKit - updating scale not updating bounding box?

I'm loading a model from a USDC file. After loading it in, I update the scale like so: modelNode.scale = SCNVector3( targetX/(modelNode.boundingBox.max.x - modelNode.boundingBox.min....
Andy Hin's user avatar
  • 30.3k
0 votes
1 answer
23 views

How to user SCNMorpher

I'm trying to use SCNMorpher but I can't do it at all... could someone explain to me where is my mistake? This is my code let cubeRoot = SCNScene(named: "Art.scnassets/shapekey.dae")! ...
jeremyjoron's user avatar
1 vote
0 answers
107 views

Changing the diffuse texture of a Reality Kit Entity to a UIImage that was constructed programmatically

I have a .usdz file for a book that the user can view both in SceneKit and Reality Kit. This book is dynamic; the user can change the base color, text on the spine, and cover photo all to their own ...
Benjamin Walbrecht's user avatar
0 votes
0 answers
37 views

How I can change material, like diffuse, on 3D model (.usdz or .obj)?

I am new to swift and AR. I'm trying a project on AR and ran into a problem that I can't change the material on the models. With geometry such as a sphere or a cube, everything is simple. Tell me what ...
Andrew's user avatar
  • 1
1 vote
1 answer
147 views

SceneKit support for HEVC with alpha channel

I am trying to use HEVC video file with alpha channel in SceneKit. Used two different video files, one from apple(puppet video in asset in this apple demo) and from another resource(video 2). Sample ...
ajith Kumark's user avatar
0 votes
0 answers
19 views

How create a shooting system in SceneKit

I would like to know how to make a shooting system with a weapon with SceneKit please? Especially taking into account the player's rotation... I can position the projectile with bullet....
jeremyjoron's user avatar
0 votes
1 answer
42 views

How to use Swift Scenekit Contact Test

I am developing a game where users can use their finger to move objects, and when the user releases their finger the game checks for overlap between objects and move the moved object back to it's ...
justinzh0905's user avatar
0 votes
1 answer
36 views

SCNText collapse to one line if font size is 0.5 or lesser. How can I show small text with multiple line properly in SceneKit?

I have a SCNText with long text content. I would like to make the text wrapped to new line by using isWrapped property and containerFrame property as specified in the document. However, the issue is ...
Rudy Huynh's user avatar
0 votes
0 answers
36 views

Using ARKit or SceneKit, how would I contour the scene geometry with a custom image?

I stumbled upon this github repo that colours the surface geometry differently from normal using the "renderer" method on ARSCNViewDelegate: https://github.com/evstinik/arkit3.5-...
pog pogtik's user avatar
0 votes
0 answers
10 views

Does echo3D iOS SDK work with RealityKit or just SceneKit?

Hi I am considering using echo3D as part of my IOS application. I know that the IOS SDK works with SceneKit but I am inquiring on whether the SDK works with RealityKit. I see that the current way to ...
BGene's user avatar
  • 1

1
2 3 4 5
82