iOS 12 and SceneKit: Node showing up in White

scenekit tutorial swift 4
scenekit camera
scenekit camera control
scenekit tutorial from zero to hero
scnnode
arkit scenekit tutorial
scenekit book
scenekit rotate node

The application we had have been using SceneKit for a while and never had any issues with it until recently. Compared to earlier, now the render doesnt show the node in there actual color. Please see the images attached for more detail. If anyone has a solution to it then I would highly appreciate it.

iOS 12 https://image.ibb.co/i9sVGp/PNG_image.png

iOS 11 https://image.ibb.co/bBRCU9/IMG_0145.png

I had a similar problem in an app that downloads OBJ and MTL files with their texture images and renders them. All image texture materials were just blank white.

In my case, the problem was solved by manually disabling the emission property on the model's materials:

    for (id object in self.modelNode.geometry.materials) {
        ((SCNMaterial*)object).emission.contents = [UIColor blackColor];
    }

I have no clue why the emission component was set at all and why this changed with iOS 12/13.

iOS12 SceneKit: Node showing up in white |Apple Developer Forums, Hi Guys, The application we had have been using SceneKit for a while and never had any issues with it until recently. Compared to earlier, now  Scene Kit. Let's see now an example in SceneKit. We want to add 10 to the x, y and z components of all the direct descendants of the scene node. Using the classic serial approach we can write. for node in scene.rootNode.childNodes { node.position.x += 10 node.position.y += 10 node.position.z += 10 }

I was able to solve my issues for the moment by choosing OpenGL ES as render mode:

Mastering iOS 12 Programming: Build professional-grade iOS , addChildNode(cameraNode) Setting up a basic camera isn't very complicated. All nodes in a SceneKit scene use this object to express their positions in 3D space Add the following code to create a simple white plane, a node that renders  Apple gave us the ability to invert colors on the screen a very long time ago. Then they gave us grayscale mode in iOS 8, Night Shift in iOS 9, and the red screen filter in iOS 10. While the long-awaited "Dark Mode" finally appeared in iOS 13, iOS 11 and iOS 12 both have a decent placeholder for it you can use on your iPhone.

I was able to solve this issue by setting the following properties:

self.scnView.pointOfView.camera.wantsHDR = true
self.scnView.pointOfView.camera.minimumExposure = -1
self.scnView.pointOfView.camera.maximumExposure = -1

Apart from these properties, you can also set emission and lightingmodel geometry properties of your node.

Beginning Swift Games Development for iOS: Develop 2D and 3D games , Develop 2D and 3D games Using Apple's SceneKit and SpriteKit James Goodwill, scene display efficiently: ▫ Lighting affects only moving objects in your scene. ▫ SceneKit uses only up to eight light sources per node, so making more than this this variable, you can create the setupLighting() method, as in Listing 12-2. Select iOS > Augmented Reality App. Xcode will set everything up for you, including an art.scnassets folder containing an example SceneKit file: ship.scn. Anything you add to ship.scn will show up on in augmented reality when you run the app on your device. Click on ship.scn to view the SceneKit Editor.

Scene Kit Tutorial: Getting Started, Scene Kit: The Mac OS X warrior finally comes to iOS! There's also a new component, a SceneKit View; open up Here, you're creating a new ambient light node with a 67% white color, then adding it to your scene. This code determines a URL for the OBJ model file in the app’s bundle and loads in into a MDLAsset.It then extracts the mesh from the asset. This will be used in the next section to create a SceneKit SCNNode to wrap the model.

Primitives in Scene Kit iOS Tutorial, This tutorial is made with Xcode 10 and built for iOS 12. Scene Kit is node-​based, which means the scene contains one rootNode and child  Let’s start by setting up a Pusher app. Setting up Pusher. If you haven’t already, create a free account at Pusher. Then, go to your Dashboard and create an app, choosing a name, the cluster closest to your location, and iOS as your front-end technology: This will give you some sample code to get started:

An Introduction to SceneKit: User Interaction, Animations & Physics, Create a new Xcode project based on the iOS > Application > Single View Application template. We set up the scene in the viewDidLoad method as shown below. ground = SCNNode(geometry: groundGeometry) If it is, we animate its material from red to white, using the SCNTransaction class, and  The Jump Bar is designed to make navigating between files in your workspace easier but when you're in SpriteKit, it also has all the nodes in your hierarchy. And this is great for navigating through those nodes but it would be nice if we could see the entire hierarchy at the same time. So, now in Xcode 8 you can, with the new scene outline view.

Comments
  • Thanks for your response Stefan, doesnt seem to work when I try that.I have the same output as before. Although I get this error this time around not sure how useful it is: Physically based lighting model is not supported by the OpenGL renderer, using Phong instead