Questions tagged [scnscene]

SCNScene is a part of the SceneKit Framework. An SCNScene object is a container for the node hierarchy and global properties that together form a displayable 3D scene.

91 questions
0
votes
0 answers

Swift, SceneKit and camera position

I'm developing an app showing a 3D human body - in the SceneKit editor, I've set up the camera pointing to the model. As I did set sceneView.allowsCameraControl = true, the user can move around the object, zoom in and zoom out with simple…
Ulrich Vormbrock
  • 369
  • 2
  • 13
0
votes
0 answers

ARKit – Drawing lines/pipes/tubes relative to "CLCoordinates" and user position

I've stucked with the task of drawing lines between coordinates. In fact I need to draw 20 tubes between some CLCoordinates. So I took as base this project. I've managed to draw some tubes, but stack with the quantity. My code only can store 2…
0
votes
0 answers

SCNNode Collision Detection not recognized in ARSCNView

Im having trouble with detecting collisions in AR/SCNKit. Ive found this: How to set up SceneKit collision detection, although helpful, I still dont have my code working. The main goal is to detect when two scene nodes touch, one is a ball, the…
user287474
  • 325
  • 1
  • 5
  • 19
0
votes
1 answer

Adding SCNNode multiple time shows only once

I am trying to add SCNNode mutiple time in a loop at different position but I can see same type of node at once with the last position. Below is the code let entityArray:[entity] = [.coin, .coin, .coin, .brick, .coin, .coin, .coin, .brick] func…
Jasmeet Kaur
  • 1,538
  • 14
  • 16
0
votes
0 answers

Timer Not Firing

The first time I call this it works great. Enemies are loaded in exactly where I'd like them to be... The goal is when the current wave of enemies are defeated... a second wave of enemies are loaded in exactly the same repetitive way. The second…
R Bradshaw
  • 173
  • 11
0
votes
1 answer

How to Zoom .DAE 3D model using ARKit iOS

I have a 3D model with .scn extension. How to zoom it with pinch gesture without virtualobject file from iOS sample Placing Objects application. Pinch gesture works well with .scn's if its converted from .obj file. But its not working with .dae…
0
votes
1 answer

[Swift]nil when loading scn files downloaded in runtime

I am working on a project to load a model into a ARKit powered app by scanning a qrCode. I have the qrCode working and .scn file downloaded into a .tmp file. However, when I tried to catch the scene by SCNScene(url:), all what returns is a nil. I am…
0
votes
1 answer

3D model scn file does not rotate or scale in AR kit

I started a new Xcode project with the ARKit template and simply replaced the "ship.scn" with my "test.scn" filename asset. The object is about 16.5mm wide and 4.8mm tall. The ship worked fine of course, but my test object that reads "test" does not…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
0
votes
1 answer

ARSCNView's root node's "heading" doesn't match the device heading

I want a node which I add to my scene to point north. I get the heading data from Core Location, so that represents the direction the device is currently facing at the point my scene was created (and thus the direction my root node faces), and then…
Andrew
  • 7,693
  • 11
  • 43
  • 81
0
votes
1 answer

I have an SCNScene instance. How do I extract each SCNGeometry instance?

In a Metal app written in Swift I want to extract the SCNGeometry instances from an SCNScene instance to go on and build MDLMesh's. I see no API call that pulls out the geometry (similarly for cameras, and lights). How do I do this?
dugla
  • 12,774
  • 26
  • 88
  • 136
0
votes
1 answer

How to position a SCNNode to cover the whole SCNView?

I am very new to SceneKit and your help will be really appreciated! I have a 200x200 sized SCNView in my UIView, which is at the centre of super view. I want to put a SCNCylinder inside, such that the SCNCylinder covers full SCNView. I read that…
Anshuman
  • 46
  • 6
0
votes
1 answer

Creating SCNCylinder in SceneKit at touch position isn't accurate

I'm trying to create a flat cylinder in SceneKit using SCNCylinder. I want the cylinder to be placed in the scene at the position where the user taps the screen. My current approach works, but for some reason the cylinder is not accurately placed at…
Kevin Goedecke
  • 1,553
  • 2
  • 14
  • 26
0
votes
1 answer

Adding Multiple SCNViews at different depths with same camera

I am programming a card game with a 3D battlefield I am adding with SceneKit. The battlefield has a depth to it where the top of the 3D object is the top of a castle and the bottom layer is further down on the z-axis, representing the ground. When…
0
votes
1 answer

How to create a User Generated Animation in SceneKit with .dae (COLLADA) file from Blender

I’m trying to animate specific parts of a SCNScene object in SceneKit (in my case I want to animate fingers of a hand). I import the .dae (COLLADA) file easily from Blender with the respective bones to generate articulation on the model. override…
Joao
  • 1
  • 4
-1
votes
2 answers

Change SCNScene scale

I am trying to downscale my object using SCNNode here is my code : SCNScene * scene = [SCNScene sceneNamed:@"ship.dae"]; SCNNode *node = [SCNNode node]; //This line doesn't do anything ! node.scale = SCNVector3Make(11, 11, 11); …
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162