Is there any way to make a SceneKit scene with dark / low light?

I searched, and there seems to be no way to make a dark SceneKit scene ... Like in a low-light scene. I removed all the lights from my scene, set my autoenablesDefaultLighting to false, made sure it was not marked in the storyboard, I even tried to add black light, but did nothing. Is there any way to make a SceneKit scene with low / dark lighting?

+4
source share
2 answers

You have to try it for yourself, as it does not sound like that. Removing all lights from the default SceneKit game template does indeed cause the model to be lit by ambient light. I expect this to be some kind of default that fires when SceneKit determines that you have no light in your scene.

enter image description here

Adding black ambient light does not seem to change it, however adding one dark non-ambient light (omni, directional, spot) leads to a dark scene. The following image has a dark gray omni light and no ambient light.

enter image description here

I do not think this is too important for real use, you are unlikely to have a scene without any external lights. Of course, understand the confusion in this case.

+5
source

SCNLightingModelConstant is worth a look.

SceneKit (, apple.com) 2014 2013 . .

0

All Articles