SceneKit view renders as phong instead of physically based materials

ε祈祈猫儿з 提交于 2019-12-08 02:25:46

问题


I have several objects in my scene, all of which had the "lighting model" of their material set to be physically based.

When I run the app, the view I get looks nothing like the scene editor - it instead looks more like Phong materials.

Is there a root node I need to change in order to have it render physically based from the get-go? I'm new to objective-c, so I'm not sure if I need to set the lighting model of the root node to physically based, and if so, how I would access the root node (and furthermore, can the root node even have a lighting model attribute since it itself is not renderable).

My models were created in ZBrush, retopologized and UV mapped in UIViewController, and were converted to .dae files in Blender. Is it possible that one of those programs set the material shader to be phong? Wouldn't the SceneKit editor overwrite that and set it to physically based?

As far as I can tell, all versions of Xcode, iOS, and SceneKit are recent enough to support PBR.

Thank you for any help :)

来源:https://stackoverflow.com/questions/45374054/scenekit-view-renders-as-phong-instead-of-physically-based-materials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!