简体   繁体   中英

SceneKit Floor Texture Changed Color in Xcode 8

I have a floor in my SceneKit scene that is suppose to be green based on the texture I have selected for its diffuse property. It worked perfectly in Xcode 7, however, in Xcode 8 it is red and shows up on my device as gray. Here are some screenshots below that help explain this better:

Xcode 7 中的地板是什么样子的

地板现在在 Xcode 8 中的样子

Xcode 8 中的当前楼层属性

Any and all help is great appreciated.

I suppose this is because your image has a single color channel and SceneKit handles it a R8 texture. Try converting it to RGB (what SceneKit was doing in iOS 9/Xcode7 anyway). And please file a bug.

I recently came across with the same problem and fixed that issue with using JPEG file instead PNG. That might be related with a bug in xCode 8

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM