Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on the simulator when loading some 3D models in DAE format. #81

Closed
cancanw opened this issue Nov 26, 2018 · 4 comments
Closed

Crash on the simulator when loading some 3D models in DAE format. #81

cancanw opened this issue Nov 26, 2018 · 4 comments
Labels

Comments

@cancanw
Copy link

cancanw commented Nov 26, 2018

for (XmlNode controller : controllersNode.getChildren("controller")) {
This line of code has a null pointer。


java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List xxx.util.xml.XmlNode.getChildren(java.lang.String)' on a null object reference
at com.yiside.quote.dae.model3D.services.collada.loader.SkinLoader.extractSkinData(SkinLoader.java:28)
at com.yiside.quote.dae.model3D.services.collada.loader.ColladaLoader.loadColladaModel(ColladaLoader.java:213)
at com.yiside.quote.dae.model3D.services.collada.loader.ColladaLoader.buildAnimatedModel(ColladaLoader.java:55)
at com.yiside.quote.dae.model3D.services.collada.loader.ColladaLoader.access$000(ColladaLoader.java:43)
at com.yiside.quote.dae.model3D.services.collada.loader.ColladaLoader$ColladaLoaderTask.build(ColladaLoader.java:186)
at com.yiside.quote.dae.model3D.controller.LoaderTask.doInBackground(LoaderTask.java:87)
at com.yiside.quote.dae.model3D.controller.LoaderTask.doInBackground(LoaderTask.java:19)

@jiulincheng
Copy link

I got a same issues

@andresoviedo
Copy link
Member

Hi @cancanw @jiulincheng thanks for your feedback.
I can try to analyze what is the missing information.
Please, if it's possible share your model so it's easier to find the error.
Regards

@ruanbaojun1105
Copy link

ruanbaojun1105 commented Jul 5, 2019

I got a same issues.

thanks~

test.zip

@andresoviedo

@andresoviedo
Copy link
Member

andresoviedo commented Oct 16, 2019

Hello guys.

I'm working on this issue with the test example you provided. I confirm there are 2 major issues

1 - this dae model in particular has a visual scene with 693 nodes.

that's a very large uniform array to fit on all GPU.
to fix this we may need to upgrade to OpenGL ES 3.1 to support large joint structures
i fixed it augmenting the vertex shader buffer size from 60 to 700 but that won't work for everyone.
https://stackoverflow.com/questions/20647207/glsl-replace-large-uniform-int-array-with-buffer-or-texture

2 - the app does not position multiple mesh objects them on the space correctly:
I am working on it... :SS

Kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants