gyeben
Posts: 150
Joined: Tue Jun 19, 2012 6:38 pm
Location: Hungary, Eger

[Tutorial] OpenGL 1.x games

Fri Dec 13, 2013 12:24 pm

This is a tutorial on how to get Bloboats and some other OpenGL 1.x games to work on the Pi. NOTE: glshim, the piece of software that translates OpenGL 1.x functions into OpenGL ES ones, is entirely lunixbochs' work. I just wrote this little tutorial to bring to the attention of more users.

0. Install git if it's not installed yet:

Code: Select all

sudo apt-get install git
1. Download the glshim source files by lunixbochs (aka aegis on this forum):

Code: Select all

git clone https://github.com/lunixbochs/glshim
2. Compile it:

Code: Select all

cd glshim
cmake . -DBCMHOST=1
make GL
3. Install bloboats:

Code: Select all

sudo apt-get install bloboats
4. Start X (I'm not sure why, but this seems to be necessary):

Code: Select all

startx
5. Open a terminal emulator under X. (eg.: lxterminal or xfce4-terminal)
6. Start bloboats using this command:

Code: Select all

LD_LIBRARY_PATH=/home/pi/glshim/lib LIBGL_FB=1 bloboats
7. Have fun! :-)
Last edited by gyeben on Fri Dec 13, 2013 2:13 pm, edited 2 times in total.

gyeben
Posts: 150
Joined: Tue Jun 19, 2012 6:38 pm
Location: Hungary, Eger

Re: [Tutorial] Bloboats & other OpenGL games

Fri Dec 13, 2013 12:28 pm

Notes on working/non-working games:

Bloboats: after disabling decorations in the options menu, it runs at around 21-23 FPS and is quite playable.
Last edited by gyeben on Fri Dec 13, 2013 2:05 pm, edited 1 time in total.

4thdwarflord
Posts: 142
Joined: Mon Dec 03, 2012 4:26 pm
Location: Deep in the mines of Moria

Re: [Tutorial] Bloboats & other OpenGL games

Fri Dec 13, 2013 1:18 pm

Does this use Hardware Acceleration?

aegis
Posts: 9
Joined: Sat Jul 27, 2013 4:21 am

Re: [Tutorial] OpenGL 1.x games

Thu Jan 02, 2014 11:05 pm

gyeben wrote:4. Start X (I'm not sure why, but this seems to be necessary)
There's a pretty good chance any games using OpenGL depend on Xinput. I made X optional for the Gcw Zero, so I'll probably bring that to the Pi as a compile flag.
4thdwarflord wrote:Does this use Hardware Acceleration?
Yep, that's the point.

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: [Tutorial] OpenGL 1.x games

Fri Jan 03, 2014 8:51 am

gyeben
Interesting, are you implicating this will accelerate ANY OpenGL application to OpenGLES? (the Git ReadME file is a little sketchy).

PS you may want to change your instructions, cmake is also a dependency requirement!

Note: Have tried Mednafen & Stella from the Repos. Stella doesn't work (probably not OpenGL 1.0) and fals back to Software (SDL) Drivers. However, Mednafen does accept OpenGL Drivers but the wrapper doesn't work (blank/black Window).
"The list of things I have heard now contains everything!"

Hiradur
Posts: 96
Joined: Fri Mar 01, 2013 10:59 am

Re: [Tutorial] OpenGL 1.x games

Thu Feb 12, 2015 11:20 am

glshim is still being developed and has come quite far according to this feature matrix: https://docs.google.com/spreadsheets/d/ ... LVE0KTjU2k

So if any games didn't work properly before they may now.

PuppetHoundZ
Posts: 181
Joined: Wed Jan 21, 2015 2:57 am

Re: [Tutorial] OpenGL 1.x games

Sat Feb 28, 2015 12:10 am

So after I compile this, I can just start any OpenGL app and it should work with OpenGL support with better frame rate?

Also to what is the command to install "Make" ?

Never mind the Make thing but you guys really should add that to the directions it was very clear in the beginning.

Update I did the Cmake Gl and it doesn't work it says all kinds of errors occured. :roll:

GizmoTheGreen
Posts: 28
Joined: Mon Jul 16, 2012 12:39 pm

Re: [Tutorial] OpenGL 1.x games

Mon Apr 20, 2015 1:14 pm

anyone had luck compiling on raspberry pi 2? I'm on raspbian and I get compile error on the first file.

julienrat
Posts: 5
Joined: Fri Dec 06, 2013 12:46 pm

Re: [Tutorial] OpenGL 1.x games

Fri Sep 25, 2015 2:31 pm

If make fails with this error

Code: Select all

fatal error: X11/Xlib.h: No such file or directory
just install libx11-dev

Code: Select all

sudo apt-get install libx11-dev

Return to “Gaming”