Java: Traveling Salesman Problem

Another AI project, where we had to solve the Traveling Salesman Problem. My solution is quite dumb, basically it is a simple heuristical search, where the tour of the cities is calculated by alwasy traveling to the nearest not yet visited city. I guess I put more effort into the graphics than into solving the problem itself, nevertheless I got max points to the assignment. The program uses Swing to draw graphics and the interface is in Estonian again.

Download the source code: TravelingSalesman-
 (4.6 MB)

Java: Kalah Game

In University, I took a course called Artificial Intelligence (AI) which was an introductory course to AI and had home assignments where we had to program various games and use some AI method for the game logic. One of those games was Kalah, and my version used ther Minimax algorithm. The graphical user interface is made with Swing and the graphics is made by me. The interface text is in Estonian.

Download the Kalah game binaries and source code: (376 KB)

Java 3D: Rubik’s Cube Game

Since I like 3D graphics so much, I've always wanted to program a 3D game from scratch. In the beginning of 2007 (can't remember exactly, silly brain!) I decided to try out Java 3D and create a Rubik's Cube solving game. I'm not very good at solving the cube in real life, I've only solved it a few times altogether but that doesn't mean I couldn't create a simple game about it.

So, I researched the ways one can do 3D in Java and found this library called LWJGL (Lightweight Java Game Library) which uses OpenGL to render 3D graphics. LWJGL is not a game engine, it just enables the developers to get access to 3D graphics, input and sound to write their own game code.

It can't say much about the experience writing the game with LWJGL since it was quite a long time ago and I don't remember the particulars any more (silly brain is silly again). I do remember that getting the whole thing up and running was not as hard as I imagined.

Download the source code and binaries (currently for Windows only) here: (3 MB)

Toyota Supra MKIV

This second car I modeled for rFactor in 2009 is the famous Toyota Supra MKIV. I don't like heavy visual tuning (called ricing), but this car seems to be one of the most tuned sports car. I think nowadays it is quite hard to find a real stock Supra MKIV out there... Anyway, this car only has the TRD spoiler and two sets of aftermarket wheels for upgrades in rFactor, other than that is looks stock.

The mod contains two versions of the car - the 220hp normally aspirated one (GZ) and the 320hp twin turbo (RZ).

This mod is also special because it uses two custom shaders I wrote to make the visuals better. The first shader was a modified car paint shader that added the fresnel effect, which makes the reflections more realistic. The other shader I wrote is essentially a billboarding shader that adds realisting light glares - rFactor didn't have this effect, they just used static models for light glares, which looked quite unrealistic.

The Supra MKIV mod received very high scores from the community, and again, partly it is because of Niels Heusinkveld, who created very realistic physics for the car.

The car is modeled in 3DS Max. Here is some information about the model:

  • Polycount: approximately 23200 (35000 with high quality interior)
  • Number of textures: about 20

You can download the mod for rFactor here.

Chevrolet Corvette C6 (version 1)

I modeled this car in 2007, it was my first mod for the popular racing simulator rFactor. The community gave it quite good scores and it received the rFactorCentral Street Car Of The Year award. I guess the community liked the car and they said it was done very well, the textures and models were very good. I would say that the car was a success also because Niels Heusinkveld created the physics for the car and he is really talented at this!

The mod contains 4 versions of the Corvette - the Coupe, the Convertible, the Z06 and the 2007 Indy Pace Car.

The car is modeled in 3DS Max. Here is some information about the model:

  • 4 LOD levels for most parts
  • Polycount: about 21000 for highest LOD.
  • Number of textures: around 25 (this includes all versions)

You can download the Corvette mod for rFactor here.

By the way, since I'm currently remodeling this car from scratch, I've added the "version 1" in the title to avoid confusion.