Questions tagged [scngeometry]
21 questions
0
votes
1 answer
Why are the shades of black in a custom SCNGeometry lighter than in an SCNSphere
In this scene
the column of spheres on the left are created using SCNSphere()
the column of 'circles' on the right are created using SCNGeometry() using .point primitives
there is only an ambient light source
all geometries are using a .constant…

tospig
- 7,762
- 14
- 40
- 79
0
votes
1 answer
How to determine normal vector to an SCNPlane in Apple SceneKit
I have an SCNode which is dynamically created using the SCNPlane geometry to draw a plane using SceneKit.
How do I determine the normal vector to this plane?
Here is a playground demonstrating what I have tried. I have attached a screenshot of the…

drdeezy
- 39
- 1
- 5
0
votes
1 answer
Draw dashline cylinder in scenekit like measure app?
I've followed this question to try to make the dash cylinder
final class LineNode: SCNNode {
convenience init(positionA: SCNVector3, positionB: SCNVector3) {
self.init()
let vector = SCNVector3(positionA.x - positionB.x,…

Eddie
- 1,903
- 2
- 21
- 46
0
votes
0 answers
SceneKit generate pipe along path
I'm currently trying to find out how to generate a pipeline 3D object from given points P (Array of n SCNVector3) and radius r, where P[i] is the center of the cylinder. I can't simply generate n-1 SCNCylinders and place them between P[i-1] and…

Sven-Michael Stübe
- 14,560
- 4
- 52
- 103
0
votes
1 answer
Smooth out SCNGeometry using subdivisionLevel
We are working on an app similar to iPhone's Animoji app. We have created our own 3d model, which looks quite nice, the only issue is that there are edges around the eyes or nose of the model which are not smooth. Model has been prepared in Maya 3D…

AKumar
- 381
- 6
- 16
0
votes
1 answer
Custom SCNGeometry not displaying diffuse contents as texture
I'm creating a custom SCNGeometry. To start, I'm developing it as a flat plane. It displays, and I can apply a colour to its' diffuse contents, but if I try and apply anything such as a UIImage, or a CALayer, it displays as white.
Code:
let…

Andrew
- 7,693
- 11
- 43
- 81