android-3D-model-viewer icon indicating copy to clipboard operation
android-3D-model-viewer copied to clipboard

Models are not correctly displayed when using GL_UNSIGNED_SHORT

Open Obsnold opened this issue 4 years ago • 3 comments

I'm working on a device that does not have support for GL_UNSIGNED_INT. the models end up looking like the attached pictures. you can replicate in an emulator by setting drawUsingUnsignedInt to false. Screenshot from 2021-02-10 10-12-32 Screenshot from 2021-02-10 10-13-23

Obsnold avatar Feb 10 '21 03:02 Obsnold

So it seems the issue is that the buffer passed to glDrawElements is an Int Array and not a Short Array. solution is just to convert to short array before passing it in. I've added a fix to the "Fix error checking when when a device does not support GL_UNSIGNED_INT" pull request.

not sure if this also affects the drawPolygonsUsingIndex function call.

Obsnold avatar Feb 16 '21 09:02 Obsnold

What engine is used to interpret the DAE model? Is this engine suitable for IOS and PC?

17601614169 avatar Mar 09 '21 11:03 17601614169

Hello @Obsnold Sorry for the delay Thank you for your feedback I will take a look to your pull request Many thanks

andresoviedo avatar Feb 13 '22 10:02 andresoviedo