Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Finally: GL to GLES runtime (glshim from openpandora)

    Reply
    Page 1 of 5 | 1   2     3   | Next | Last
    AapoRantalainen | # 1 | 2013-08-01, 15:21 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by AapoRantalainen; 2013-08-01 at 22:25.
    The Following 34 Users Say Thank You to AapoRantalainen For This Useful Post:
    bingomion, cproc, DfLo1913, Estel, foobar, frafI, freemangordon, fw190, gidzzz, HtheB, Hurrian, int_ua, jessi3k3, kinggo, klinglerware, lexik, madry72, marmistrz, MartinK, melisa queen, MINKIN2, nokiabot, OVK, panjgoori, reinob, Sohil876, Sourav.dubey, StefanL, szopin, thedead1440, thp, wicket, xvan, zod

     
    HtheB | # 2 | 2013-08-01, 15:50 | Report

    Awesome!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to HtheB For This Useful Post:
    Sourav.dubey

     
    szopin | # 3 | 2013-08-01, 16:29 | Report

    WOW!!! Does this mean finally armagetron on N900? Awesome. So many games/progs are now open to porting. YAY!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to szopin For This Useful Post:
    AapoRantalainen, Sourav.dubey

     
    jessi3k3 | # 4 | 2013-08-01, 16:42 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to jessi3k3 For This Useful Post:
    AapoRantalainen, Sourav.dubey

     
    DfLo1913 | # 5 | 2013-08-01, 16:55 | Report

    Keep the N900 going

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to DfLo1913 For This Useful Post:
    AapoRantalainen, reinob

     
    www.rzr.online.fr | # 6 | 2013-08-01, 17:28 | Report

    something to rebuild for harmattan too

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to www.rzr.online.fr For This Useful Post:
    Jordi

     
    szopin | # 7 | 2013-08-01, 18:13 | Report

    Originally Posted by jessi3k3 View Post
    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to szopin For This Useful Post:
    AapoRantalainen

     
    AapoRantalainen | # 8 | 2013-08-01, 21:54 | Report

    Originally Posted by szopin View Post
    Heh, couldn't wait, compiled on-device. GL2 fails, I'm assuming as expected,
    Yes, https://github.com/lunixbochs/glshim/issues/13

    Originally Posted by szopin View Post
    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)

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Images
     
    The Following 4 Users Say Thank You to AapoRantalainen For This Useful Post:
    Estel, fw190, Sourav.dubey, szopin

     
    szopin | # 9 | 2013-08-02, 03:06 | Report

    The link from 1st post mentions arma as working with screenshot, so I'm hopeful. Time to learn wm_seticons of GL

    Edit | Forward | Quote | Quick Reply | Thanks

     
    seanmcken | # 10 | 2013-08-02, 03:37 | Report

    **** That N9 And Please Keep Working On N900, Keep it Up Guyssss. Goooood Luckkkkkk, May Gos Bless Ya'll

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to seanmcken For This Useful Post:
    MartinK, Sourav.dubey

     
    Page 1 of 5 | 1   2     3   | Next | Last
vBulletin® Version 3.8.8
Normal Logout