|
Hey Lockergnome, I am currently busy with some 3D model drawing that I am converting from (wavefront) *.obj to vertex data. When I have low poly models it work quite well but when the amount just gets to big it starts to cut off some data. Objects are not being drawn completely and are cut of. Is there a maximum to the amount of vertices and triangles (the way that I draw the model) or is there something else going on? The model that I currently want to draw has ~600 vertices (X Y Z) and ~1200 faces (V1,V2,V3) Edit: I guess the OpenGL code is ok, my converter from .obj (wavefront via riptude pro in Cinema4D) to OpenGLES is messed up when handeling large amounts of data... Edit 2: Nope I just ran a test with a code generated plane, 1010 vertices goes fine, 2020 vertices get's cut of... This is my drawing code for the Vertex array and Indices array
Edit 3: I got it working! My problem was that the GL_ UNSIGNED_ BYTE only allows up to vertex 255 while I had way more then that. By changing the GL_ UNSIGNED_ BYTE to a GL_UNSIGNED_ SHORT and the Vertices array from a GLubyte to a GLushort I am now able to draw up to 32768 inicies, or around 11,000 faces! |
