An OpenGL game of poolFooBillard is a free OpenGL-billard game for Linux with realistic physics, AI-player and many gametypes like pool carambol or snooker. The main physics is quite mature but not yet perfect. If you are a billard-pro and you're missing some physics, please tell me. Cause I've implemented it like I think it should work, which might differ from reality.
The following features are implemented:
- wood paneled table with gold covers and gold diamonds
- reflections on balls
- shadow pixmaps
- detail switching of balls according to distance
- zoom in/out - hold right mousebutton
- FOV +/- - hold right mousebutton + CTRL
- rotate - hold left mousebutton
- animated queue
- 8ball, 9ball, snooker, carambol
- simple AI-Player
- strength adjustment
- eccentic hit adjustment (button2-Shift)
- red/green 3D stereo view !!!
- sound
- network play
- free view mode
License: free
Requirements:
- An OpenGL implementation
- libGLU
- libPNG
- freetype2
- SDL or GLUT
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | yes | yes | yes | yes |
Submitted by tjwhaynes on 2002-02-02.

Since you're asking if you may be missing some physics in your simulator, and I can't try it, let me ask if you implemented these :
If you've got all that physics right, with adjustable friction coefficients and all, I'll send you money for your efforts. I've tried to code a french billiard simulator long ago (only 3 balls and no pockets) and when I finally realized the abysmal complexity of an accurate simulation, I gave up. Billiard physics is a very though cookie.
There is also ball-to-ball friction that must be taken into account.
font.c:25: `#include' expects "FILENAME" or [FILENAME]
which was... src/font.c:#include FT_FREETYPE_H
angle brackets instead of square of course :-)
More game types (snooker, true billiards)
Natural cue motion (i.e. move the mouse back and forwards to actually strike the ball, rather than using a power meter.
Jump shots (I don't think this is possible yet) :-)
One glaringly bad thing is that you can see the AI player move his cue *through* the other balls when there is a tight pack of them around the cue ball. That's important because he ends up having a wider range of possible shots than he should.
Still, this is looking like a *great* project - and it's clearly going to get much better as time goes on.
- a fullscreen mode (using SLD?)
- with XFree 4.x, the wheel is mapped to the mouse buttons 4 &5 instead of page-up and page-down.
- When the opponent play, the view could automatically move to a predefined location where the table is fully visible.
- a free movement mode (to inspect the balls closely)
what is SLD?
i use imwheel in XFree 4.X unfortunately buttons 4,5 are not supported in glut.
a seperate opponent view might be an idea, maybe switchable, becaus i like to mouse around while the opponent is playing
the free movement is somehow in work. i only ponder around how to pack it most useful in a mousebutton (or combination). i want to keep the keyboard hits minimized.
the wheel is properly reported by glut. the argument 'button' of MouseEvent takes the value 4 or 5. It works 'wheel' with XFree 4.1
btw, could you try to leave the glut code intact (using some #define USE_SDL)
button==4,5 - ah, i didnt dare to use un#defined values :-)
I have played about 10 games and i haven't been able to beat the AI :)
But i have noticed 3 minor details while playing it:
- While placing the white ball after a fault you can place it "overwriting" another balls
- When AI plays with full colored balls (balls like number 8) he/her hits the nr 8 ball like if it wasn't fault to hit it before a colored ball.
- Sound effects would be great, just the sound of balls colliding... Maybe if the game uses SDL as someone suggested this would be easy? uh i dont know much about programming, nor about writing in english :)
My rating: 6 / 5 stars
Very nice job
point 2 - i see..., added to my todo list
point 3 - sound effects - yes, its about time, actually im familiar in sound programming, but there are still a few features i want to implement before this (network-play, free move mode, menu)
I hope FooBillard developer(s) should see how users of this game is satisfied with it.
FooBillard has already took 40 hours of my life! :)
But all in all a very good gmae..
Keep up the good work!
xlibmesa-dev-d 2002.10.17-1 DRI CVS mach64 version of Mesa 3D graphics l xlibmesa3-dri- 2002.10.17-1 DRI CVS mach64 version of Mesa 3D graphics l
I remember an old ms-dos billiard where the que shot were directly controlled by the mouse, with several controls (ctrl, alt, shift...) the mouse controlled angle, point of strike on the ball, and then you move the mouse just as if you handled the que in you hand, it gave an amazing realism to the game.
It would be great to have what is called "english billiard" in France (red and yellow balls in a triangle, each player get a color at the beginning)
First off, this game has a very high potential, but where there is light there's shadow too.
Pros:
Cons:
With the above errors/drawbacks fixed, FooBillard will easily get 5 stars.
snooker code is poor, i admit - just sloppy coded in a few hours (not ever having played snooker)
-floh
Got it to work with the help of another player and have therefore increased my rating to 4 stars.
i think theres even a template in the distro.
Thanks, I am using it now.
snooker code is poor, i admit - just sloppy coded in a few hours (not ever having played snooker)
You can find the proper rules on billiardworld.com. This page also contains information about snooker fouls.
Octav'
Shift "char str[256];" from line 570 src/billard3d.c to line 566, right after "char filename[512];".
I have already reported this problem, and it should have been fixed in version 2.2. At the time of this posting, version 2.2 is not on the main page, but you can get it at http://foobillard.sunsite.dk/dnl/.
Cort
I´m kind of new with Linux and when I tried to install this game (the rpm version) on RH8.0 it says I need two files installed. One has the name something-sound.so.2
Anyone knows what to do? Í have the SDL that come with RH8.0.
-craiger (computer science graduate, can't get foobillard to work on redhat)
replay ability better multiplayer support (with betting) trick shot mode ...and possibly something to load in a background, by VRML file or something.
Apart from those points its an amazing game, good to play, while waiting for a download.
Please understand, I am not taking issue with the rating you gave Foobillard, I am taking issue with the apparent thoughtlessness with which you did it.
Yes, we do have classics such as Archer McCleans Pool, or Jimmy Whites Snooker. These are either dated, closed and now gathering dust. FooBilliard is open source, very popular (with good reason), and will no doubt develop into a even more splendid game given time.
Hopefully in the future, we may see FooBilliard ranked as one of the top open source projects, up their with Flightgear.
Did you ever play with Virtual Pool 3? Once i tried it and its real-time ball traces were amazing (means that it will show the ball traces while still lining up the shot.
and actually, what you are suggesting isnt implemented intentionaly (wouldnt be a big deal after all).
but i think one should play billiards with foobillard instead of playing around with something named foobillard that can be used for playing billiards.
ok, maybe this was terrible english...
what i mean is, very often some extended features tend to kill the game behind the program, which i really want to avoid.
however, maybe one could think of something like this in training mode, but even then, somehow restricted to the 1st collision or such.
-harpin
So yeah, the game is great. You are just lacking a file needed by most OpenGL games.
Everything about this game is excellent except:
* The AI player fouls by not hitting his ball first * When the AI player misses the black on his last turn, but game is not forfeited. * A few other rule-type problems.
The winner rotating text is hard to read due to camera angles. Also, the game should start with the menu visable, and the "restart game" menu options could be simplified.
Thanks for this game.
NB : The rpm asks for nvidia rpm drivers, but if you have installed drivers from nvidia executable, you must do rpm -i --nodeps foobillard
Thanks a lot ;-) Keep the good works guys !
There are, however, a couple of minor points with the snooker rules that stop it attaining perfection. (I'm not sure if this is the best place to post this, but here goes anyway...)
Firstly, after potting the cue-ball, I find that the opponent is unable to move the cue-ball within the D after it is re-spotted. This can be very irritating if your opponent pots the white, and the ball is re-spotted putting you in a snooker behind a bulk colour. In addition, on the shot subsequent to this shot, the cue-ball can be moved about (and shouldn't be able to be).
Secondly, it would be nice if after your opponent commits a foul (of any type), that you have the option to "put your opponent back in" and make them take the next shot. This prevents situations where you end up in a snooker after your opponent fouls.
There are probably a few other subtle rules changes, but I think these two would make a huge difference. In any case, I really like this game and always look forward to each release. Keep them coming please. I'll shut up now...
I also noticed that when only the black ball remains and the computer player misses the black completely, that this is not recorded as a foul and game over. Or if he sinks the white off the black in this scenario, it should also be game over.
Also how about some chalk?
There are just few things I miss:
3) try F2
4) in non-cue-view (F3) this is the case already
Foo Billard is a wonderful discovery. It met all my expectations and just added those beautiful graphics.
So much for the praise. The user interface is not intuitiv enough, although all information is quickly accessible. It is especially tricky to change the game type and players' names. I am never sure about which of my selections is already accepted and which state I am actually in.
Computer opponents ignore the rules a little too often and they rather randomly do the black 8 prematurely.
A beautiful game and even the physics are alright, for a change.
But the fouls HAVE to be sorted out! I only play 8 ball and 9 ball. The foul line is the problem. In almost all versions of 9 ball and the best versions of 8 ball, the opposting player gets cue ball in hand over the whole table...the foul line doesn't come in to play at all. For those who want the foul line it should be an option to toggle on and off. Also, when the foul line is in play, you shouldn't be able to hit a ball behind it without first hitting a rail in front of it.
It would also be nice if you could configure the game to play different versions of the games.
AI is very simple even at the highest skill level...but gives me an opponent I can beat. A counter of some sort would be nice...how about one of those built into the table? Or maybe coins under the points like in pool halls?
Have you thought about adding a Trick Shot game to this? One with props would be AWESOME and it seems like you're into this for athestics. There is a new billiard game that is a golf course on a pool table. That'd be fun if, too.
Then I saw the screenshots on this site for the first time and noticed, that it should actually not look like this. I'm using SuSE10.0OSS, Radeon9800Pro/fglrx, SuSE's own distro-package.
What are the --poslight/--dirlight options actually for? Doesn't make a difference on my machine...
-Andy.
The graphic engine is otherwise very appealling. Good work!
As I am the one who implemented these rules in foobillard, I'd like to see a reference on this. In the rules on worldsnooker.com, section 3 7.d says:
(d) If a colour has to be spotted and its own spot is occupied, it shall be placed on the highest value spot available.
I can't find anything about the next higher value spot.
http://www.reference.com/browse/wiki/Cutthroat