maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Finally: GL to GLES runtime (glshim from openpandora) (https://talk.maemo.org/showthread.php?t=90922)

AapoRantalainen 2013-08-01 15:21

Finally: GL to GLES runtime (glshim from openpandora)
 
This is developer sneak peak for glshim (https://github.com/lunixbochs/glshim) by lunixbochs.

If you haven't read (open)pandoralive (http://www.pandoralive.info/?p=1533), glshim is runtime translation from GL 1.x to GL ES 1.x which means openGL games can be run with openGLES-hardware (without modifications, just recompilation).

Library is experimental even on Pandora and very experimental for Maemo5, but I think this is the rigth moment to keep noise about it.

Take glshim. Compile glshim under scrathbox. Get libGL.so.1. Compile unmodified GL-game against it *. Copy game and library to the device.
-> profit (check video, Bloboats on n900): http://youtu.be/ZHJ2I8rePmI

* Fix problems. E.g. (bloboats) gluOrtho2D(0, width, 0, height); -> glOrtho(0, width, 0, height,-1.0,1.0);


Issues at this moment (01 Aug 2013):
*sometimes at the start screen is messed (big blocks)
*when screen dims, screen will be messed (big blocks)


Remember: If game is using SDL:
-SDLK_RETURN
+SDLK_RETURN or SDLK_KP_ENTER
(and do something about SDLK_ESCAPE)


Talk on openpandora-forum:
http://boards.openpandora.org/index....dr-more-games/

Talk on rasberry-forum:
http://www.raspberrypi.org/phpBB3/vi...45252&p=395110
-----
EDIT:
You need this for glu-functions:
https://github.com/lunixbochs/glues

Next video: (blending test from nehe) http://youtu.be/lsS8QlO11us

Code:

wget http://nehe.gamedev.net/data/lessons/linuxsdl/lesson08.tar.gz
gcc -Wall -ansi lesson08.c -o lesson08 -lGL -lGLU -lGLUES_CM `sdl-config --cflags --libs`
#where GL and GLU are from glshim
#and GLUES_CM from GLUES


HtheB 2013-08-01 15:50

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
Awesome! :D

szopin 2013-08-01 16:29

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
WOW!!! Does this mean finally armagetron on N900? :D Awesome. So many games/progs are now open to porting. YAY!

jessi3k3 2013-08-01 16:42

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
This is awesome! I'll have to compile this in scratchbox and check it out tonight though the idea isn't exactly new. I'm more interested in the performance and compatibility.

DfLo1913 2013-08-01 16:55

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
Keep the N900 going

www.rzr.online.fr 2013-08-01 17:28

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
something to rebuild for harmattan too :)

szopin 2013-08-01 18:13

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
Quote:

Originally Posted by jessi3k3 (Post 1364272)
This is awesome! I'll have to compile this in scratchbox and check it out tonight though the idea isn't exactly new. I'm more interested in the performance and compatibility.

Heh, couldn't wait, compiled on-device. GL2 fails, I'm assuming as expected, 'make glu' worked for libGLU.so, then compiled armagetron with newly created .so's in LD_LIBRARY_PATH, sadly getting error trying to run it:
Code:

[3|user@Nokia-N900|~/libs/armagetronad-0.2.8.3.2]./armagetronad_main
Trying to start sound. Just restart Armagetron Advanced in case of crash.
libGL: built on Aug  1 2013 18:59:52
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
Segmentation fault

Would this be glshim error? Sorry for such app-specific question in general glshim thread, but maybe Aapo you've encountered it? Once again THANKS, awesome stuff

AapoRantalainen 2013-08-01 21:54

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
1 Attachment(s)
Quote:

Originally Posted by szopin (Post 1364292)
Heh, couldn't wait, compiled on-device. GL2 fails, I'm assuming as expected,

Yes, https://github.com/lunixbochs/glshim/issues/13

Quote:

Originally Posted by szopin (Post 1364292)
Code:

[3|user@Nokia-N900|~/libs/armagetronad-0.2.8.3.2]./armagetronad_main
Trying to start sound. Just restart Armagetron Advanced in case of crash.
libGL: built on Aug  1 2013 18:59:52
ERROR: EGL Error detected: EGL_BAD_NATIVE_WINDOW (0x300B)
ERROR: EGL Error detected: EGL_BAD_MATCH (0x3009)
Segmentation fault


I see these errors when quitting/ending, https://github.com/lunixbochs/glshim/issues/15

I got armagetron's menus working. Gameplay area is black, but texts top on game are working. (using this https://github.com/lunixbochs/glues and dropping SDL_WM_SetIcon for keyboard focus)

szopin 2013-08-02 03:06

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
The link from 1st post mentions arma as working with screenshot, so I'm hopeful. Time to learn wm_seticons of GL

seanmcken 2013-08-02 03:37

Re: Finally: GL to GLES runtime (glshim from openpandora)
 
**** That N9 And Please Keep Working On N900, Keep it Up Guyssss. Goooood Luckkkkkk, May Gos Bless Ya'll


All times are GMT. The time now is 15:37.

vBulletin® Version 3.8.8