magicien / GLTFSceneKit

glTF loader for SceneKit
MIT License
288 stars 90 forks source link

Material color is not reflected. #15

Open ashutoshmaurya10 opened 6 years ago

ashutoshmaurya10 commented 6 years ago

Hi, We are converting the .babylon file to .gltf format and are trying to load this converted model on the iOS application. The model is getting rendered correctly barring the material color of certain objects which we added to the .babylon file before converting. The converted model is showing all the material color properties on the .babylonSandbox for the gltf file. Attached are the screenshots of the sandbox and on the iPhone device respectively.

Any pointers regarding this issue would be really helpful.

Thanks & Regards Ashutosh

babylonsandboxloadedmodelscreenshot

iphoneapploadedmodelscreenshot

johanos commented 6 years ago

What you can try to do to debug this further is use the SceneKit write function https://developer.apple.com/documentation/scenekit/scnscene/1523577-write

to write your scene to a file, you'll lose references to things like environment maps but you can set them somewhere after you save. then you can take a look at what the materials are and maybe shed some light?