Lugaru OpenGL-ES Port Working

The place to discuss all things Lugaru.
Post Reply
Pickle
Posts: 3
Joined: Thu Apr 21, 2011 8:25 am

Lugaru OpenGL-ES Port Working

Post by Pickle » Thu Apr 21, 2011 9:05 am

Lugaru is now mobile. I successfully ran my opengles port of lugaru on the Pandora device (for those unaware think iphone with real controls)
It still has a bug to iron out, but it is working pretty well.

I hope to get many of the changes merged to the icculus tree once everthing is finished,

User avatar
Conner36
Posts: 140
Joined: Thu Oct 01, 2009 1:57 pm
Location: USA
Contact:

Re: Lugaru OpenGL-ES Port Working

Post by Conner36 » Thu Apr 21, 2011 1:20 pm

Nice! Good job!!

Pickle
Posts: 3
Joined: Thu Apr 21, 2011 8:25 am

Re: Lugaru OpenGL-ES Port Working

Post by Pickle » Thu Apr 21, 2011 7:55 pm

just to get something public patch is here http://pickle.gp2x.de/source/lugaru_gles.diff

It includes the gles portions with the define of USE_GLES
It also has some pandora change with the define PLATFORM_PANDORA, there are some changes that should be merged.

and video
http://www.youtube.com/watch?v=GDRaKVwhxHI

Pickle
Posts: 3
Joined: Thu Apr 21, 2011 8:25 am

Re: Lugaru OpenGL-ES Port Working

Post by Pickle » Sat Apr 23, 2011 11:15 am

Ive updated pickle.gp2x.de/source/lugaru_gles.diff

I used the existing interleaved array by adding the color alpha component and set the stride and offset properly in the pointer calls. This has corrected the glitches I had previously.

Ive also been learning and trying out VBO's so far the only that made sense was the skybox since data is static. Any of the other VBO's i tried to add either had to effect or made things worse.

Post Reply