• Paladin of the Pegasos
    Paladin of the Pegasos
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland

    2. MorpgOs Opengl imlpementation needs to call glDisableClientState after every glDrawArrays
    Do not know why, but without it does not render anything.

    That shouldn't be needed...

    For most drawing, I simply enable arrays that need to be enabled, and disable everything else, but then again, my drawing functions are way more complex than what you have...

    As for .obj, I assume you already realized it's rather crappy format, and not very well suited for OpenGL. Personally, I decided to do my own format instead, with .obj converter.

    Assuming you wrote a simple importer, here's where it might likely fail: The format supports >3 vertices per face (quads etc.), and if the model has any (and your code doesn't triangulate the faces properly), it will look broken.

    Easiest "fix" is to check the "triangulate faces" checkbox from blender exporter.
  • »06.01.17 - 22:24
    Profile Visit Website