magicien / GLTFSceneKit

glTF loader for SceneKit
MIT License
290 stars 91 forks source link

Doesn't work on iOS with png texture #35

Open jpsarda opened 5 years ago

jpsarda commented 5 years ago

I have a gltf model with an extenal .bin and .png file, but it seems thet the png file is not loaded. I've looked into the code and I see these lines which is not good news I guess... So basically it doesn't work on iOS when you have an texture image to load along with the .gltf ?

#if SEEMS_TO_HAVE_PNG_LOADING_BUG
 // FIXME: this workaround doesn't work for iOS...
return UIImage(cgImage: cgImage)
jpsarda commented 5 years ago

Well I just removed the #if SEEMS_TO_HAVE_PNG_LOADING_BUG and it seems to work on iOS now, so apparently it seems that this png bug is not present...