libretro / instancingviewer-libretro-gl

Libetro GL only. Instantianate object and picture by specified cube size. Can also instantiate live camera feed.
1 stars 4 forks source link

Problems with GLES port #1

Open inactive123 opened 11 years ago

inactive123 commented 11 years ago

Problem with the GL ES port is that GL ES 2.0 has no glVertexAttribDivisor -

http://gamedev.stackexchange.com/questions/31531/geometry-instancing-in-opengl-es-2-0

What are we to do here to achieve fast instancing on GL ES? We need a solution that can scale across GL 2.0 and GLES 2.0.

inactive123 commented 11 years ago

Another issue - for some reason, glMapBufferRange just returns NULL on OSX and therefore the program hangs at startup. Now, this could be because Apple has its own proprietary way of doing this and that we shouldn't use glMapBufferRange at all on OSX - or perhaps not.

For reference's sake - here it is - http://www.opengl.org/registry/specs/APPLE/flush_buffer_range.txt

We really need to just rewrite this entire thing in GLES 2.0 and be done with it - I've been going through 'Learning Modern 3D Graphics Programming' by Jason L. McKesson today - I'm currently at page 103 of 360 or so but it's quite a lot of stuff to take in at first time. Would really appreciate it if you could work with me on this maister. It would also be a good opportunity to clean up the glsym stuff for OSX since (as you can tell) I had to add a lot of dirty hacks to get GL modelviewer / GL scenewalker to run properly on OSX.