有没有一种方法可以制作一个暗/暗的SceneKit场景? [英] Is there a way to make a dark/low light SceneKit scene?

查看:78
本文介绍了有没有一种方法可以制作一个暗/暗的SceneKit场景?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进行了搜索,似乎没有办法制作一个黑暗的SceneKit场景……就像在光线不足的场景中一样.我已经从场景中删除了所有灯光,将autoenablesDefaultLighting设置为false,确保在情节提要中未选中它,我什至尝试添加黑色环境光,但此操作无济于事.有没有办法在低光/暗光下制作SceneKit场景?

I've searched and there doesn't appear to be a way to make a dark SceneKit scene... As in a scene with low lighting. I've removed all lights from my scene, set my autoenablesDefaultLighting to false, made sure it's unchecked in the storyboard, I even tried adding a black ambient light but that didn't do anything. Is there a way to make a SceneKit Scene with low/dark lighting??

推荐答案

必须自己尝试一下,因为听起来不正确.从默认的SceneKit游戏模板中删除所有灯光确实会导致模型被环境光照亮.我希望这是某种默认设置,当SceneKit识别出场景中没有灯光时,它就会生效.

Had to try this for myself, as it didn't sound right. Removing all lights from the default SceneKit game template does indeed result in a model lit with an ambient light. I expect it's some kind of default that kicks into action when SceneKit identifies you have no lights in your scene.

添加黑色环境光似乎并没有改变,但是添加单个黑暗的非周围环境(全向,定向,点)会导致场景变暗.下图是暗灰色的全向光,没有环境光.

Adding a black ambient light doesn't seem to change this, however adding a single dark non-ambient (omni, directional, spot) does result in a dark scene. The following image is with a dark gray omni light, and no ambient light.

我认为在实际使用中这没什么大不了的,您不可能有没有非环境光的场景.当然可以理解这种情况下的困惑.

I don't think this matters too much in real use, you'd be unlikely to have a scene with no non-ambient lights. Certainly understand the confusion in this instance however.

这篇关于有没有一种方法可以制作一个暗/暗的SceneKit场景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆