madman2k
12-25-2009, 08:56 AM
hi, I am writing on my first 3D engine which is supposed to run on GL3/GLES2. Currently I am wondering which model format to choose. As I am only going to render static objects (only camera and lighting changes), I was thinking about throwing all vertices+attributes of an model in an VBO and then render it as a triangle-strip using offsets for texturing different parts. like:
VBO: [v1, v2, v3, .. ,vN]
bindTexture(foo)
glDrawArrays(GL_TRIANGLE_STRIP, 0, N/2);
bindTexture(bar)
glDrawArrays(GL_TRIANGLE_STRIP, N/2, N);
since I would like to use existing models, I would rather use an existing format then inventing my own. Do you know any Model format which allows this kind of rendering without too much work?
VBO: [v1, v2, v3, .. ,vN]
bindTexture(foo)
glDrawArrays(GL_TRIANGLE_STRIP, 0, N/2);
bindTexture(bar)
glDrawArrays(GL_TRIANGLE_STRIP, N/2, N);
since I would like to use existing models, I would rather use an existing format then inventing my own. Do you know any Model format which allows this kind of rendering without too much work?