SceneKit:材质预览始终为黑色 [英] SceneKit: Material Preview is always black

查看:22
本文介绍了SceneKit:材质预览始终为黑色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Xcode 中,我有一个从 .DAE 文件转换而来的 .SCN 文件.我与制作模型的人一起设置了所有基于物理 (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屋!

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