Questions tagged [scenekit]

SceneKit is an OS X and iOS framework for building apps and games that use 3D graphics.

Filter by
Sorted by
Tagged with
0 votes
1 answer
360 views

How can I scale the SCNPhysicsShape when scaling a SCNNode?

I wrote a script that would match all models to one size, no matter the original size of the source model. So now these models fit precisely in the scene, but unfortunately when I add ...
idchlife's user avatar
  • 167
1 vote
1 answer
392 views

Why does my 3d model become invisible as I move the camera away?

I'm trying to load a 3d model from Mixamo: // let scene = SCNScene(named: "art.scnassets/ship.scn")! let scene = SCNScene(named: "art.scnassets/Ch45_nonPBR.dae")! ...
Kaizer Sozay's user avatar
1 vote
1 answer
369 views

Draw textured circle / 2D shape in SceneKit

I have the following code to create a circle Path and a SCNShape from this path. orbit_gradient.png is a horizontal 1px high image that represents a gradient. ...
BinaryGuy's user avatar
  • 141
1 vote
0 answers
75 views

Excluding some scene elements from bloom effect

I've enabled HDR and bloom effects in my SceneKit app, but I don't want some of the elements in my scene to bloom. For example, the lighter spots on the skybox are currently glowing. Is there some ...
BinaryGuy's user avatar
  • 141
1 vote
1 answer
467 views

SceneKit - Creating a sense of scale

I'm experimenting with 3D using SceneKit on iOS. I'm trying to create a galaxy but would appreciate some guidance on the following things: I'm having a hard time working out how to make the galaxy ...
BinaryGuy's user avatar
  • 141
1 vote
1 answer
607 views

SceneKit flickering with Ambient and Omnidirectional lights

I have a project where I have a sphere with a png texture that represents a planet (or a moon in the videos I'm attaching). Wrapped around that sphere I have a hexasphere (implemented using the ...
PKCLsoft's user avatar
  • 225
1 vote
0 answers
69 views

Affect of timeStep on PhysicsBodies in SceneKit

In SceneKit, I had a problem on collision of two dynamic spheres, when the one strikes to another with fast speed, it was passing through inside of it. After i have reduced physicsWorld.timeStep value ...
Sunrise17's user avatar
  • 111
3 votes
2 answers
177 views

Impact of increasing physics simulation rate

I am working one Mini Golf game development using Scenekit (iOS). To fix one of the problem with Scenekit, I have to increase the physics simulation rate by 4 times. Questions: What is the impact ...
Nimesh Chandramaniya's user avatar
0 votes
0 answers
136 views

Collision physics error

I am working on a game developed using Scenekit (iOS). I am facing some strange issues with collision physics. I have added one 3D table (with a hole at its center) to the scene. I am setting physics ...
Nimesh Chandramaniya's user avatar
1 vote
0 answers
231 views

Using a MTLTexture as the environment map of a SCNScene

I want to set a MTLTexture object as the environment map of a scene, as it seems to be possible according to the documentation. I can set the environment map to be ...
halileohalilei's user avatar
2 votes
1 answer
2k views

Get the up vector of the camera in ARKit

I'm trying to get the four vectors that make up the boundaries of the frustum in ARKit, and the solution I came up with is as follows: Find the field of view angles of the camera Then find the ...
halileohalilei's user avatar
0 votes
1 answer
1k views

Fixed camera rotate to follow character

I have a camera in a fixed position in the middle of a field, and I would like to rotate the camera to follow the character as it moves around. There is no point lower than the camera, but I would ...
さりげない告白's user avatar
2 votes
1 answer
576 views

Process for converting unity asset to scenekit scene/resource

Has anyone successfully figured out a method for converting a unity3d asset to a 3d SceneKit model/scene? I imagine it would require exporting the asset into some third party file type, and then ...
Ryan James's user avatar
1 vote
1 answer
561 views

Nothing gets rendered in SceneKit

I have this code in OpenGL: ...
user1009013's user avatar
0 votes
1 answer
1k views

The object can't rotate around z axis in SceneKit

I am doing an app with a functionality like a 3D compass, it can point to the direction where I want. The code is ...
OtakuFitness's user avatar
1 vote
1 answer
976 views

Load large .obj file

I am working with the 3D model and I am using the Scene Kit for rendering and Model I/O for loading the obj file. It works perfectly fine for the small size of obj. But now I have 250MB of file and ...
DeveshM's user avatar
  • 121
1 vote
0 answers
269 views

Map individual images to the surface of a sphere

I know this is a FAQ but I don't know the terms to search on. I even saw something like this with a blue globe, but now I can't find it any more! I'm trying to make a UV map to apply to a sphere (in ...
Maury Markowitz's user avatar
1 vote
2 answers
3k views

How can I create a "wireframe" texture for a sphere in SceneKit?

I've been struggling to figure this out. I would like to have a sphere in SceneKit that looks like this: I think the easiest way would be to create a mostly transparent texture with the wireframe ...
ndbroadbent's user avatar
5 votes
1 answer
4k views

How do I pixelate a scene with SceneKit and Metal, in Swift?

I managed to get pixelation working by using the OpenGLES2 rendering API, and a CIFilter. But it was way too slow, so I want to use the Metal API and just have a very simple filter that pixelates ...
ndbroadbent's user avatar
1 vote
0 answers
539 views

Failed to pass uniform in Metal shader modifier

I'm trying to write a simple shader able to pass the color to be used for drawing in the fragment shader, through a uniform. I load the shader modifier and pass the uniform: ...
Ramy Al Zuhouri's user avatar
4 votes
2 answers
2k views

How to add a bump map in scene kit?

I'm trying to draw an Earth, as I've found the textures in this site: http://planetpixelemporium.com/earth.html I loaded the diffuse, specular and bump maps: ...
Ramy Al Zuhouri's user avatar
2 votes
1 answer
2k views

Is it possible to use Metal and SceneKit at the same time?

All the tutorials that I've found online speak about using Metal alone, without any other supporting library. But I don't understand if it's possible to create a SceneKit game and then use a Metal ...
Ramy Al Zuhouri's user avatar
2 votes
1 answer
7k views

Why is SCNNode.rotation property a four dimensional vector?

I don't understand why SCNNode's rotation property is a SCNVector4 instead of a SCNVector3. The documentation states that: The four-component rotation vector specifies the direction of the rotation ...
Ramy Al Zuhouri's user avatar
-1 votes
1 answer
393 views

SceneKit – White layer covering my tube

I have a simple tube node in my scene that isn't displaying properly. When I rotate it to face the camera, more than half of it is covered by some invisible sheet. When I rotate the tube enough, it ...
Christian Kreiter's user avatar
0 votes
0 answers
109 views

Ball movement simulation

I'm doing a little demo with scene kit and i want to simulate the rotation of a ball on a table. How can i achieve this? This is the scene that i prepared:
Fabrizio Duroni's user avatar
4 votes
3 answers
405 views

How to fill in crevices on a height map

I am a very experienced iOS Developer, but I am beginning my very first foray into 3D graphics (specifically with SceneKit). I'm trying to model a planet, and I have it working with a height map ...
Nerrolken's user avatar
  • 174
1 vote
0 answers
581 views

Render cylinder tube along 3D Path

I'm working on a roller coaster game, and I have computed a function that represents the path of the track in the 3D space. Since the track will be tubular and will be dynamically generated(as opposed ...
Robin Thuran Malhotra's user avatar
1 vote
1 answer
1k views

problem with SCNTransaction in Scene Kit

I'm trying to move an object over a period of ten seconds from y coordinate 0 to y coordinate 10. the object is created at y coordinate 0. The problem is when the animation starts, the object pops ...
tedesignz's user avatar