Simple 3dModels displays, but more complex ones don't. Memory limit, buffer size, etc... ?,
Members - Reputation: 100
Posted 05 February 2012 - 04:39 PM
I have recently created an importer which loads Blender 3D generated models into my under-development iphone app.
For simple objects such as cube, cone, etc... it works perfectly fine. However, as soon as the objects reach a certain degree of complexity such as a donut shape , sphere; the engine display only a part of the objects; e.g half of it; sometimes less. I have checked the vertices and indices in the data model and they are perfectly fine.
It looks like there would be a hard limit such as a number of vertices, memory allocation etc...but i can't exactly figure it out. As i am not yet quite confident in OpenGL ES there might be quite a direct answer to this problem ; but hasn't found it yet.
Any pointer, tips are more than welcome to draw the second half of this sphere ;)
PS. some screenshots to complement this post:
The model in Blender:
The model in the Iphone simulator; as you can see quite not the same:
Members - Reputation: 507
Posted 06 February 2012 - 09:49 AM
There should be problem with your allocations in VBO (indexes probably) which should be OK for simple objects like cube in front view
- check your index count and vertex count in VBO creation state
- also check for quads vs. triangles (index count from 4 to 6), are you exporting direct triangles?