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:
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.