Blog Archives

500 Balls hitting a static box(OpenGL and ODE)

Enter “Balls from heaven”! This is an improvement to the bouncing ball application I posted before, I left it as the way I found the code snippets from multiple sample projects and tutorials, now that I’ve got the hang of it more stuff can be done. The source includes links to some sites that I’ve found important for ODE and OpenGL.

The source is in standard C++, and uses (Open)GL, GLUT and GLU. To compile on Windows with MSVC++ you’d need to edit, but for MingW you’d not need to edit(linking might be hard, I haven’t done it though). On any Linux you can compile with the following commands IF you have ODE(in the repos by the name libode), OpenGL(usually comes by default, but if you are running with prop drivers make sure the linker sees that libGL.so) GLU and GLUT make sure you’ve installed those, commands that are used to install those are in the previous post.

g++ -o balls ogl2.cc -DdDOUBLE -lGL -lGLU -lglut -lode

Ball Collision with ODE and OpenGL


This is a ball colliding with an unseen surface, using ODE and OpenGL. Took a lot of time to get my head around ODE because there are no good tutorials or simpler sources to learn from.

Download Source

You need to install the following(Ubuntu)

sudo apt-get install freeglut3-dev
sudo apt-get install libode-dev

For other OSs install ODE by source, I’d recommend you to keep on to gcc.

g++ -o ball ogl.cc -DdDOUBLE -lGL -lGLU -lglut -lode

Fix ibus unprocessed keys bug on 11.10

All Oneiric users are having an ibus bug that does not let them to use any plug-in for ibus to work properly(unprocessed keys such as spaces get added to the text before the converted text). Seems it was introduced with Unity, but it is not just Unity. I am not using Unity(Kubuntu+gnome-shell), but I was affected by this bug as long as I had 11.10 installed! Now finally a fix has arrived but its not in the repositories yet(or I failed to find any). You’ll have to compile from source, hurray!

http://github.com/fujiwarat/ibus

You don’t need to git clone, you can download it in zip format. And happy compile time!

Compile notes

1. It’ll ask for gtk-doc, which I did not find in the repos. This one is a documentation generation tool but the package that’s in Ubuntu repo is just documentation about gtk+; no use in that just download the source and compile it.

2. I was not able to run ibus-setup after installing, it crashed giving a stack trace! Well I don’t like to patch around problems but hey I just want to type some Sinhala, so I just patched it with,

try:
<problematic code>
except:
    pass

Make sure you have the indentation correct using tabs.

More information is available on the bug reports,

ibus@googlecode-bugreport1

ibus@googlecode-bugreport2

ibus@launchpad-bugreport1