Blog Archives

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

Xtreme hack

The answer to problem X, in IEEEXtreme 5.0 and I didn’t even read it properly in the competition trying to do other problems, and without a fresh mind to think it through this one slipped out too. Anyways, did it now and C++ really boosts your development time. I don’t care what others say, I’ve used Java and C enough to make a comparison between these languages. For C the hard work is awarded with performance, for Java you get a knowledge in Java API which would also change from Java version to version and drop dead slow applications. This is not a rant, but a conclusion. And here’s the answer!