android-3D-model-viewer
android-3D-model-viewer copied to clipboard
Models are not correctly displayed when using GL_UNSIGNED_SHORT
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.
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.
What engine is used to interpret the DAE model? Is this engine suitable for IOS and PC?
Hello @Obsnold Sorry for the delay Thank you for your feedback I will take a look to your pull request Many thanks