SceneKit:“材质预览"始终为黑色 [英] SceneKit: Material Preview is always black
问题描述
在Xcode中,我有一个.SCN文件,该文件是从.DAE文件转换而成的.我与创建模型的人一起设置了所有基于物理的(PBR)设置.但是无论我做什么,预览始终为黑色.
In Xcode, I have a .SCN file that was transformed from a .DAE file. I've worked with the person who made the model to set all of the Physically Based (PBR) settings. But no matter what I do, the preview is always black.
此外,如果我将环境更改为"Procedural Sky",则模型也会显示为黑色.
Also, if I change the environment to Procedural Sky the model will also display as black.
我知道在场景中添加灯光会修复"此问题,但是我必须这样做吗?既然给我的模型带来了不切实际的阴影?
I'm aware that adding a light to the scene will "fix" this, but should I have to do that? Since it gives my models unrealistic shadows?
推荐答案
我将照明设置更改为纹理列表中的_m文件.我想这与模型与场景中的灯光交互的方式有关.
I changed the Illumination settings to be the _m file in my list of textures. I suppose this has something to do with the way the model interacts with the light in the scene.
这篇关于SceneKit:“材质预览"始终为黑色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!