BabylonReactNative icon indicating copy to clipboard operation
BabylonReactNative copied to clipboard

Error/Crash app when using GLTF 1.0

Open cuog1598 opened this issue 3 years ago • 3 comments
trafficstars

When I try to setup the sample repos. I checked on emulator ios 15.5. when i change the sample gltf url to gltf 1.0 file. I haved Followed the setup steps in the Sample repos.

Error: ERROR BJS - [15:07:22]: Unable to compile effect: ERROR BJS - [15:07:22]: Uniforms: u_ambient, u_emission, u_light0Color, u_light0Transform, worldView, u_normalMatrix, projection, u_shininess, u_specular, u_diffuse ERROR BJS - [15:07:22]: Attributes: normal, position, uv ERROR BJS - [15:07:22]: Defines: #define NUM_BONE_INFLUENCERS 0 #define NUM_MORPH_INFLUENCERS 0 ERROR BJS - [15:07:22]: Error: Exception in HostFunction: Unrecognized uniform type. ERROR TypeError: defines.markAsUnprocessed is not a function. (In 'defines.markAsUnprocessed()', 'defines.markAsUnprocessed' is undefined) ERROR Error: Exception in HostFunction: defines.markAsUnprocessed is not a function. (In 'defines.markAsUnprocessed()', 'defines.markAsUnprocessed' is undefined) image image

Other I have try with another gltf 1.0 like my gltf 1.0 file My app has been crashed I also try playground too and that not help me to render gltf file

cuog1598 avatar Sep 12 '22 08:09 cuog1598

I don't anyone has tried with a glTF 1.0. Can I ask why you want to use glTF 1.0 and not 2.0? Hardly anyone uses 1.0 anymore.

bghgary avatar Sep 12 '22 17:09 bghgary

I don't anyone has tried with a glTF 1.0. Can I ask why you want to use glTF 1.0 and not 2.0? Hardly anyone uses 1.0 anymore.

It's just that I got gltf 1.0 from my customer and asked me to use this one. so can i have any way to render glTF 1.0. I also know glTF 1.0 out date and no one wants to use them anymore... and I also suggested they change and use 2.0 but the answer is "However when they went to GLTF 2.0 they try to make it more open, so they remove the possibility to write shader (now it also work with Direct X)" . pls ask me if have any solution. thanks...

cuog1598 avatar Sep 13 '22 09:09 cuog1598

It's an issue with the shader compiler in Babylon Native. We don't officially support glTF 1.0 right now in Babylon Native, so it might take some time before we fix this problem.

bghgary avatar Sep 13 '22 20:09 bghgary

Closing for now. If you really need glTF 1.0 support, please reopen.

bghgary avatar Apr 16 '24 16:04 bghgary