*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1] 2
Print
Author Topic: Quake1 and Quake2 running on the XO-1 !  (Read 20731 times)

Quake1 and Quake2 running on the XO-1 !

atphalix
Commenter

Posts: 12


WWW
June 21, 2009, 04:13:34 AM



This is a video of the original Quake1 demo running on the xo.it's the first 3D game
to run on the xo limited hardware (without OpenGL).
the I'm trying to make an educational 3D game based on quake, so any ideas for the game
are welcome!

more info at the project page: http://wiki.laptop.org/go/Projects/abcube

UPDATE: QUAKE2 is running too on the XO!

for instructions and how to: http://olpc-maroc.blogspot.com/2009/08/quake-2-game-on-olpc-xo-1-laptop.html
« Last Edit: October 01, 2009, 01:07:06 PM by atphalix » Logged

OLPC Morocco developer: http://olpc-maroc.blogspot.com

#1 Re: Quake1 running on the XO !

Wayan Vota
OLPC News
Administrator
OLPC News Forum Expert
*****
Posts: 533


OLPC News Editor


WWW
June 21, 2009, 08:54:37 AM

I love that you are trying to take a first-person shooter and turn violence into positive educational fun.  If only someone had done this with Doom ages ago.
Logged

#2 Re: Quake1 running on the XO !

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


June 23, 2009, 12:30:19 AM

3D software rendering looks pretty smooth on the XO. Well done!

I do not know what is the target user segment and how much of the original game will be kept, but neither the layout nor the shooting would be appropriate for ages 5-10. A village maze and water-balloons/water-hose/water-buckets would be better.  For 11 and above the environment could be acceptable though a laser gun could be better than the realistic quake guns. However, keep in mind that the XO is destine for many conflict areas where (as you may know) real guns might be used by kids, so I would think that is better without, even if it decreases the “thrill of the game”.

Plot-wise it could start from basic letter recognition (keyboard learning), to rooms that will have a word at the door and must shoot only the right letters in (or out) of order, to words forming by shooting letters and then use it to open the proper “synonym”, “opposite”, “sound like” room from a selection of doors, to finding the missing word, to a full riddle that must be identified and solved to “liberate the wizard/family member/friend”. If vocal instruction/clues can be provided, comprehension tests can be devised, though a written paragraph could also do the job. For example determine the “enemies” from the story and in a mixture of characters, shoot only these ones.  

Math-wise similarly you can have number recognition from the very fundamental (how many balloons it takes to bring down “5”) to more formal math, geometric shape recognition, problem solving etc. Of course you can advance to more “discreet” clues like up-down, bigger-smaller, straight-bended, circular-rectangular  etc. Or shoot only shapes similar to the entrance, numbers bigger than the steps up or smaller than the steps down etc.
In any case a curriculum with the required skills would be the guide for the battles and signs/shapes/numbers on doors/corridors in addition to the characters, the “plot”.

Would be important the  “battles” to be easily customized, since different school systems may have different order/priorities in teaching and thus “disagree” with the original build/order.

It is also important that a detailed playing record will be kept so the teacher/guardian can identify strengths and weaknesses at a latter point, if not on line.

My 2 cents.

Again. Well done!
Keep it up.
« Last Edit: June 23, 2009, 12:36:55 AM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#3 Re: Quake1 running on the XO !

atphalix
Commenter

Posts: 12


WWW
June 23, 2009, 12:09:57 PM

First thanks for all your ideas, I will seriously consider them once I will get over some important technical problems like displaying the game in full screen at playable rate
(now it is 800x600 and bigger make it unplayable and slow).
I just got the XO last week from the OLPC's Contributors program so I'm still trying to get used it, and into it's unique hardware features.

Another thing must be clear by now is that the project, is not about making violent video games on the XO (neither for children or adult), but it's just an experiment to see
if 3D games can be run and customized to be educational in someway, despite of the technical difficulty imposed by the hardware : slow CPU and no OpenGL rendering.  
Logged

OLPC Morocco developer: http://olpc-maroc.blogspot.com

#4 Re: Quake1 running on the XO !

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


June 24, 2009, 12:37:41 AM

First thanks for all your ideas, I will seriously consider them once I will get over some important technical problems like displaying the game in full screen at playable rate
(now it is 800x600 and bigger make it unplayable and slow).
I am probably off my league but you may not need to make it work at full resolution but just change the screen resolution  for this application. 800x600 in a 7.5" screen should be very playable.
It may need a new version of the os to include the latest Xorg driver or some other way, but it may allow you to focus on the application sooner.

Just another 2 cents Smiley

Quote
Another thing must be clear by now is that the project, is not about making violent video games on the XO (neither for children or adult), but it's just an experiment to see
Good to hear.
Apologies for any misunderstanding.
Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#5 Re: Quake1 running on the XO !

atphalix
Commenter

Posts: 12


WWW
June 26, 2009, 02:24:37 AM

Finnaly it's running at fullscreen!

First you'll need to install the latest driver using:
rpm -vU
http://ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/updates/10/i386/xorg-x11-drv-geode-2.11.0-1.fc10.i386.rpm

that way you can switch to a lower resolution to make quake playable
you'll have to add the following to .xsession your home folder
xrandr --newmode 800x600 0 800 0 0 0 600 0 0 0
xrandr --addmode default 800x600
and finnaly write the following into a file inside the quake directory and
run it.

#!/bin/sh
# lower the resolution
xrandr --output default --mode 800x600
# add below your activity:
./sdlquake -mem 32 -winsize 800 600
#go back to normal resolution mode
xrandr --output default --mode 1200x900
Logged

OLPC Morocco developer: http://olpc-maroc.blogspot.com

#6 Re: Quake1 running on the XO !

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


June 26, 2009, 09:04:06 AM

Nice Grin
Now as I said you need to convince OLPC Shocked  to release 8.2.2 and include this geode diver because (as far as I know) you can not include it as part of the activity installation. Would be unlikely to expect (or expect to be allowed by the schools) kids to tinker with the core system.
Hopefully, by the time the activity is ready some service release (not F11/F12 based) will come out.

PS: By the way FreeDoom also runs on the XO though I had only tested it with the Fedora7-based os656. It may be "lighter" on the XO, though I do not know if it has the same capabilities as an activity platform. The XO activity is still around
« Last Edit: June 26, 2009, 09:36:24 AM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#7 Re: Quake1 running on the XO !

Destarus
Commenter

Posts: 9


July 15, 2009, 11:32:28 AM

Hello all,

I'm running Ubuntu Intrepid and have tried numerous times to get xrandr to work as you describe.

First and foremost, I can't install the geode drivers you've posted above.
I'm assuming the drivers are exclusively for Readhat and won't work on Ubuntu?  If so, where would I get the latest Ubuntu drivers?  I've been trying to install the latest drivers for a while now, and honestly, as a linux n00b, I'm not even sure what version I have anymore.

How can I check what version of my xorg geode drivers I have?

Heres the results of xrandr:

$ xrandr --newmode 800x600 0 800 0 0 0 600 0 0 0
works with no errors

$ xrandr --addmode default 800x600
works with no errors

$ xrandr --output default --mode 800x600
Yields the following error:
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:   145 (RANDR)
  Minor opcode of failed request:   7 ()
  Serial number of failed request:  15
  Current serial number in output stream:   16

$ xrandr
Yields the following information:
Screen 0: minimum 800 x 600, current 1200 x 900, maximum 1200 x 900
default connected 1200x900+0+0 (normal left inverted right) 0mm x 0mm
    1200x900            51.0*
    800x600                0.0

Hopefully, it's something simple.  Thanks for the help.

Jeff
Logged

#8 Re: Quake1 running on the XO !

atphalix
Commenter

Posts: 12


WWW
July 18, 2009, 02:26:07 PM

The driver I posted is an update to the driver on the fedora linux
on the xo,so obviousely you can't use it on the ubuntu.
unfortunately I don't have ubuntu so I can't test or help Sad
to know the installed version of a particular package:
Code:
apt-cache showpkg package name
to search by name:
Code:
apt-cache search package name

p.s: Note that you can switch to a lower resolution to play all other SDL based games that use low resolution (e.g. zsnes emulator) in fullscreen on the xo.

Logged

OLPC Morocco developer: http://olpc-maroc.blogspot.com

#9 Re: Quake1 running on the XO !

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


July 20, 2009, 12:00:40 AM


Hopefully, it's something simple.  Thanks for the help.

Jeff

It is not Sad
As described in the original xrandr thread, will work in DebXO and Sugar but NOT in Ubuntu 8.10. The new driver is in Ubuntu 9.04 but 9.04 is not on the XO yet... Sad
Trying to "force the issue"  in Ubuntu 8.10 may not be a good idea either, though it should be feasible. People have also tried compiling the driver in 8.10
Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#10 Re: Quake1 running on the XO !

Destarus
Commenter

Posts: 9


July 29, 2009, 01:34:36 PM

I appreciate the responses, even if they weren't what I was hoping.

I am curious:  Above atphalix said I could play SDL games (or emulators) at a lower resoultion.  I installed ZNES and it functions at '640x480' but the XO remains at 1200x900 with the 640x480 rendering centered in the middle.  Any attempt to run it at a higher resolution uses OpenGL... which reduces the framerate to like 0.25 FPS.

So... if I can't play Quake fullscreen, how can I play any SDL based games in fullscreen? (starting with ZSNES)  I realize this isn't the right thread, but you guys know what you're talking about.

Thanks,
   Jeff
« Last Edit: July 29, 2009, 02:53:45 PM by Destarus » Logged

#11 Re: Quake1 and Quake2 running on the XO-1 !

RalleyWolf
Contributor
*
Posts: 47


Go linux or go home.


WWW
October 03, 2009, 08:35:00 AM

Woa. And now Quake2? holy crap I gotta try this...  http://olpc-maroc.blogspot.com/2009/08/quake-2-game-on-olpc-xo-1-laptop.html

I'm a bit of a linux newbie so I'm having some trouble with the instructions. can some one tell me exactly what to enter into the command line?  It says I need to create a new directory quake2/ but where do I make it, and how?
« Last Edit: October 03, 2009, 08:40:51 AM by RalleyWolf » Logged

#12 Re: Quake1 and Quake2 running on the XO-1 !

atphalix
Commenter

Posts: 12


WWW
November 01, 2009, 04:08:46 AM

Woa. And now Quake2? holy crap I gotta try this...  http://olpc-maroc.blogspot.com/2009/08/quake-2-game-on-olpc-xo-1-laptop.html

I'm a bit of a linux newbie so I'm having some trouble with the instructions. can some one tell me exactly what to enter into the command line?  It says I need to create a new directory quake2/ but where do I make it, and how?

You can download a binary archive here: http://abcube.googlecode.com/files/quake2-demo.tar.bz2
just uncompress with :
Quote
tar xjf quake2-demo.tar.bz2
cd quake2
./run.sh

P.S: sorry for the delay, I was not checking this thread often  Undecided

Logged

OLPC Morocco developer: http://olpc-maroc.blogspot.com

#13 Re: Quake1 and Quake2 running on the XO-1 !

RalleyWolf
Contributor
*
Posts: 47


Go linux or go home.


WWW
November 08, 2009, 01:53:59 PM

Okay so I finally got around to trying quake2 on my two xo's. Both machines are running different firmware, and operating systems. It runs consistently on the older sugar, fedoracore11 build8(gnome and sugar) and teapots ubuntu.

One annoying thing is that any mouse input makes the screen spin wildly. Even when using a usb mouse. I couldn't seem to get around this problem.

I've also been playing with Marathon on the XO and no mouse problems what-so-ever! (I recomend a usb mouse for better acuracy.)
Logged

#14 Re: Quake1 and Quake2 running on the XO-1 !

atphalix
Commenter

Posts: 12


WWW
November 08, 2009, 02:52:20 PM

Thanks for your tests.
I tried the game on the new XO 1.5 with Fedora 11 but unfortunately
the graphic driver is still buggy and incomplete (no 3D acceleration even that there is a chip capable of), no video scaling (can't play video in fullscreen without CPU doing the whole work).
So this is still a long way to go for the XO until we can do some impressive graphical activities...
Logged

OLPC Morocco developer: http://olpc-maroc.blogspot.com
Pages: [1] 2
Print
Jump to:  

Members
Total Members: 2406
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 30
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 11
Total: 11