Ah! Finally a small vacation!

I have been away this weekend, on what was a much needed time away from my daily activities. It’s been some time before I took a break from my daily routine work and this weekend presented the perfect opportunity to have some quality RnR. The beginning of the winter season here has been exceptionally hot this year with temperatures touching a scorching 32 deg celcius, almost mid summer temperatures (, talk about global warming!). A nice beach house facing the open ocean seemed too enticing an opportunity to pass by.

Here are some snaps. I haven’t had time to get all the snaps in, I will probably upload them on the main site soon.

Pic 1.

Pic 2.

Pic 3.

Violence and Videogames.

As you know I recently had a run in with the Crysis game and I am awed at the amount of graphic detail that the games manages to push through. If pushed to it’s max settings on a high enough resolution, you would be forgiven for calling it a movie instead of a computer game (, well almost). As I mentioned in my earlier post, the graphics and especially the violence can be nauseatingly real. Crysis has definitely raised the bar in video game realism. If people called Doom (1993) to be too violent, this game has like, multiplied the violence by a factor of 10. It’s not just limited to the Crysis game but most of todays games, mostly in the FPS genre, are pretty much known for extreme violence.

There is a strange thing I have observed, as a player you often don’t realize how gory the violence really is. As a computer game player you generally tend to focus more on your character. Your brain tries to rapidly compute permutations-combinations in the gameplay and is actively trying to keep your character alive. As a player you miss out on the gore the game delivers. Well not entirely, but you don’t tend to focus on it. It is the third person, observing the game who actually sees the gore in the game. As a player your priorities are different. You are more focused on achieving your intermediate goal at the same time trying to keep your character alive. It’s somewhat like a soldier in the heat of a battle, you don’t see all the pain around you. It’s like your mind tends to switch off of all the gore and concentrates it’s attention of keeping the character alive.

I generally tend to disagree strongly with people that say video games promote violence. I have always been an FPS fan until very recently, that doesn’t mean I am prone to violence. Then again, that’s not something new, it is probably the same sentiment shared by most FPS fans. It’s not like you go “Ooh! I love the blood spatter caused by the bullet when it hits”. OK, maybe some weirdos do, but majority of FPS junkies play the game because it is fast paced, and yes because “it is a game”. Believe me while playing a game you (, and even those weirdos) are very much aware that your in a middle of a game and not in the real world. That doesn’t mean you are going to enact similar actions in the real world.

Violence and violent tendencies in general maybe because of different reasons but not due to video games. I have seen people blatantly blame video games for all the violence in the world, but consider this fact, maximum violence and the most heinous of acts are carried out by people who don’t even have a clue as to what a video game is, much less played one. I am not a physiologist (, not by any stretch of imagination) but the root cause of violence is seated somewhere else and not in any computer game you can find. It is a dark nature of humans to lust for violence. In th past the Romans used Gladiatorial combat. What could be more violent that that? Yet the Romans were known as the most civilized people of their time. Some say they even ushered the modern age. Isn’t Boxing a violent game too? I could say the same thing with many others, but lets just leave it at that.

So why do some people have this uneasiness with video games that have violent content. It’s not like the game itself is physically harming someone. Not in the least. So what is the real reason behind this outcry over banning video games? I am surprised that in this day and age, people still feel the need to ban something, “something like a video game”! My personal feeling is, because a computer game is a fairly new and misunderstood entertainment medium, at least by some. The usual argument is violent video games will promote violence. With whom? With kids? They shouldn’t be playing such violent games in the first place! That’s what ratings are there for. As far as ratings for violent video games go, I am very much for that. Just like adult movie content should not fall into the hands of minors much less kids, so shouldn’t violent video games. I have seen adults fail to realize this but violence is adult content, anywhere, in any entertainment medium! And, it is the responsibility of an adult to see to that. Violence is often treated as “OK” with regards to minors and kids, and that can be dangerous. Talking about movies, what about violent movies? Should we ban those too? That’s just crazy.

In the end a game is just that “A Game”. It is an highly interactive entertainment medium that is here to stay. Games allow for more immersion than traditional entertainment mediums like theater and movies. Some people (, and their numbers are declining rapidly) haven’t fully understood it, mostly because it is new. Like with all new things, at first they are seen as a threat to society, which games are not. In the end, that too shall pass and attitudes will change.

Sneak peek at the looming “Crysis”.

Well it looks like its time to go and get the 8800 GT after all. I just had a run-in with the recently released Crysis demo and the only real thing I can say is “Superb”, about the graphics that is. The game has ultra realistic graphics, “mind-boggling” and “jaw-dropping” would be a better words. I haven’t played the demo myself but observed someone else playing it for a short while. He had pretty much maxed out Crysis settings with a resolution of 1920×1200 on a 19″ monitor and still the game was running pretty smoothly.

The first thing that caught my eye were the shadows. The game features impressive real-time soft shadows probably done using shadow maps. Other real-time techniques just seem unlikely given the complexity of geometry in the scene. I am not too sure how the team solved antialiasing issues or maybe it was the very high resolution and the setting, but there were no visible aliasing artifacts that commonly occur when using shadow maps.

When you look at the surroundings, you can help but wonder how the game manages to push so much foliage and trees per scene. I haven’t quite figured that out myself. Maybe it’s some clever instancing tricks coupled with the obvious raw power of the 8800 that allows for such incredible amount of vegetation to be simulated correctly. You can even shoot down trees and shrubs with your gun. Shooting at leaves will even leave bullet holes in them. Amazing, truly amazing.

The rest of the graphics stuff from the game is equally impressive. The atmosphere and sounds compliment the game effects nicely and the movement of the sun allows for a very diverse experience with a dynamic environment because of varied lighting. Another thing that impressed me from a game engine developer point of view were the destructible terrain environments. I had heard about the Crysis team using a voxel based terrain system which allows for exactly such type of terrains, but the results in the game are even more impressive. I remember Ken Silverman working on something like this in his Voxlap engine, interesting!

The AI seems to be good, but I haven’t played the game myself so couldn’t really tell. Post-processing effects, explosion, all look incredibly real. One thing that is really cool gameplay feature is where you can hold a guy by his throat and use him as a shield against enemy bullets, yeah, something out of a schwarzenegger movie. I am sure FPS junkies are going to get a kick out of this one.

It’s all about the graphics then. The graphics the game delivers can be nauseatingly real at times. I am usually not the one who falls over a game just because of graphics, but the Crysis game will probably be an exception. Maybe it’s just the programmer inside of me talking, maybe things will change when I play the game for myself. But I just kept thinking about (, and googling to find an answer as to) how some of those game effects were achieved. More… later!

How Linux ended up saving the day.

Sometimes in life catastrophes happen, and when they do you are generally least prepared. OK, as you recall I had a little bit of a misadventure with a failing hard-drive last month. Yes, I consider a failing hard drive a huge calamity, especially if it is on a machine that houses all my RnD projects, and that is exactly what happened. It all started one September morning when I could distinctly hear, “swwwiiing….. click.. click.. click…” sound coming out from the hard-drive.

For the people who don’t know, that sound is the hard-drive’s death chant. It’s like an angina that occurs before a heart attack. And, that is pretty much what happened. The hard-drive did fail very soon and even though I could get most of important data out on a new drive, majority of my RnD data was left on the disk. I do have regular backups of my systems, but there is a limit to how much one can backup, especially if the data on the disk is like 100 GB.

Last week I decided to try and retrieve some of my RnD projects from the failed drive. Windows refused to start, and I was left wondering what it was that I could do. Only a part of the disk had gone bad, if  some way I could access the remaining partitions I could get most of the data out. That is when I decided to try Linux to get at the partitions on the drive. I threw in a Ubuntu live CD ROM and after some tweaks to fstab, woila mounted readable NTFS partitions! I recovered 100% of my previously lost data!

Moral of the story: Always always keep a latest version of Linux Live CD ROM with you. Like an inflatable air bag, you may not use it most of the times, but if it saves you from a crash it’s well worth it.

The GUI of choice for cross-platfrom development – wxPython.

I just finished off a small project in wxPython and I must say I am pretty impressed with the library. A couple of weeks back I had to do a small assignment (, not relating to the game or the engine I am currently working on) which required a fairly amount of GUI. The specification of the project demanded that the software be able to run on Linux, Win32 and Solaris. Solaris support however, was later dropped due to time constraints. It was a pretty small project (, considering of course I am working on the engine and the game for well over 2 years now). About a sum total of 5 days of work in the end. I was a bit hesitant to take on the work initially but changed my mind once it was decided that Python and wxPython was OK.

I’ve been meaning to take wxPython for a ride for a while now and this seemed like the perfect opportunity. If you have read my Selecting a scripting language articles (1 & 2) you will know I have a secondary interest in working on Python. I am looking to integrate Python into the engine. This just gave me an opportunity to have a look at the wxPython code and bindings in detail. That actually is a totally different topic in itself and I will go in to further details in the third part of the series (whenever I get around to writing it, probably soon). Coming back to wxPython, it’s been about 2 years since I worked on wxPython and I liked it then and I like it now.

Today wxPython is probably the best python GUI according to me. I haven’t worked with PyQt but I had tried messing around with PyGTK. PyGTK to be fair is kinda OK, but is less supported than wxPython. Also the fact that wxPython is far more extensive in widget and framework support than PyGTK, makes the former a more attractive choice. PyQt was just out of the contention for me because of 2 things, a) It has a very shady license, I think it is not LGPL compatible. You can’t trust it enough to use it in commercial product without breaking some license somewhere, too controversial! AND b) Qt is just such a horrible framework! I know people are going to disagree with me on this one, but Qt’s moc compiler thing just makes me cringe. I have worked on a large project involving Qt and C++, and those moc_* files can be a nightmare at compile times. Besides Qt uses archaic and redundant C++ practices to maintain compiler compatibility. So I generally tend to “run away” from Qt and Qt projects.

Continue reading

A vest that lets you FEEL the Game!

A US surgeon has devised a vest that when worn and plugged to your computer allows you to feel the blows from virtual game characters (read here). Now that is really interesting! It will allow the player to experience another dimension of gameplay never before possible, a consequence of his action in the virtual game world occurring on himself in the physical world. The vest allows you to feel the shocks, stabs and hits occurring inside the game. Players wearing the vest will now have to deal with implications for their actions. Ah! Responsibility! No mad shooting in an FPS game from now on. That’s refreshing for a change. It’s no secret, I am a fan of games where the player has to deal with consequences for his actions. FPS games today just lack any variety, and this vest, it seems, may just provide the right impetus to what has become a rather monotonous game genre.

Response to a rant: Is OpenGL being abandoned?

It is no secret that the gaming industry is dominated by Windows platforms and the API of choice is DirectX. There are some staunch followers of the OpenGL way of life, but their numbers seem to be dwindling rather rapidly. I have read a lot of blogs claiming that OpenGL is better than DirectX or vice-versa. I even got a mail (, or two) from an unknown person recently claiming that my War of the graphic APIs was rather biased towards DirectX. Let me assure anyone and everyone that it is certainly not the case. I am supporting both APIs in my engine and let me say this again, “Both APIs are functionally equivalent. It is not the API that determines the performance of a game, but rather the underlying hardware.”

The email further went on to show some in game screen-shots to claim that OpenGL based games looked better than DirectX games. Now, anybody who has worked on a game that uses either APIs knows how much of a folly this is. “It is not the API that determines how a game looks, it is the artist that creates the content and the engine programmers that provide the technology (, like Shaders/Level Builder/Script support) to the artists which determines how the game looks.” Game design also plays an important role. In any case it’s not the API. The mail didn’t have a valid sender so I could not mail him/her with my response. In any case, Dude, you could have just posted a comment and I would have been glad to respond.

No OpenGL is not dying out. However I am sorry to say, OpenGL is falling behind. It is being increasingly abandoned in favor of DirectX. Don’t believe me? OK read this, at least you believe him. I think I made it pretty clear why that was the case in my earlier post. I am not going to outline the same points again.

New website… Finally!

Things have been very hectic lately, in the midst of which I have been franticly trying to get the blog up and running on a new website. I have finally finished migrating the database, and the blog, and the comments, without loss of anything really (Yeah!). Migrating the bugs database which involves full bug tracking for the game and the engine was a real pain and I must admit I had some anxious moments, but that too is now fully migrated.

So now my official website is www.susheelspace.com (, which by the way is still being worked on) and the blog is now at (blog.susheelspace.com). However I doubt if I will be able to move the original site very soon since there are other pressing issues at hand, but I hope to get to it in a couple of weeks.

Migrating any site that runs off a database can be painful. The only way is to have some way to export the database to a file and then reload the same at another place. That can be a pain in the neck especially if the exporter-importer (in my case phpMyadmin) are of different versions. If you thought that was painful, In my case however I had to split my original database into 3 separate ones. I ended up doing some heavy SQL work to get the old data in the new databases. Well I must admit, my SQL knife is not as sharp as it once used to be and this exercise turned out to be a nice refresher course in the end. Using raw SQL is probably the easiest and the most fool-proof way of migrating a site. Programs like phpMyAdmin will export to SQL, but be prepared for some tweaks to that. I tried other methods like using a migrator script but that just doesn’t work. My only recommendation is, “Don’t be afraid to get your hands dirty with SQL”.

Migrating the wordpress database ended up being an anticlimax. I tried messing around with the database, but there are some incompatibilities between the older version and the newer version. I tried a couple of different things, but in the end the easiest way to migrate a wordpress blog to a new site is by using the “Export” option (“Manage >> Export”) which saves the blog contents to an XML file, and then “Import” it to the new site. A word of caution, you may have to hand edit the XML file to replace the web links of your old site, example, “www.myoldsite.com/?p=64” to “www.mynewsite.com/?p=64”. Just make sure you check the entire XML file. I know it can be a pain, but at the very least check the weblinks. Also you will have to migrate the blog/wp-content/uploads directory of your old site to the new one.

Chipping the Bug.

There is an old saying in software development circles which goes something like this, “A bug can never be created nor destroyed. It can only be changed from one form to another.” While that is not to be taken too literally, bug fixes do often lead to regressions that are difficult to track down and fix. Especially the ones that occur at the end of release cycles, or the worst ones that occur at the end user’s or the customer’s machines. Well not if two researchers, Chad Sterling and Ron Olsson, from UC Davis have their way.

Their research has lead to the creation of a new technique in debugging software which reduces a large piece of software into smaller fragments called “variants” which are then used to track down the bugs (reference). The technique is called “chipping”. They have even developed a software (“chipper”) called ChipperJ in Java that they claim reduced a large program down to 20 to 35 % of it’s size. I have no idea how the program does this but apparently it uses the original software code to do it. While it is debatable if and how such a system would apply to industry level software that spans more than million lines of code, it is certainly something to be interested in if you are a developer. While the technique may not remove the human factor all together from the process of debugging, it certainly is a novel idea that could push automated testing to another level.

The authors of the ChipperJ program seem to suggest that their system could be applied to large and complex projects. Their research paper does provide interesting insights into the method. The authors are of the view that their paper is just a preliminary draft of what promises to be a new approach to debugging software. The method, they claim can be combined with other more traditional methods like “slicing” in the debugger to get even better results.

New accessory.

My old aging Nokia 6600 cell finally passed away on Monday, leaving me franticly searching for a new one. After some deliberation and after seeing a myriad of cell models, I finally settled for the Nokia 6300. To tell that truth it’s a little on the steeper side for me. I rarely use any fancy features on a phone except for the FM radio, which by the way is a must for me. Hopefully the MP3 player that this phone carries will also be another feature I will use. I rarely talk long hours with anyone except with a few close friends, and that is often not that long either. Talking on a phone too much is a waste of time ;). That is exactly why I hate spending on something like a phone.

Nokia 6300

The phone is pretty sleek and slim and looks pretty stylish. Yeah, got suckered in by the looks, couldn’t help it. Call me daft, but that was the major reason I pick this beauty up. OK to be honest, I did do a spec scan but the phone has just too many features that I know I will just never use.

The phone dimensions are 106.4 x 43.6 x 11.7 mm, about the correct size to fit into your hand. The body is metallic gray, you can see it in the pic, but leaves a lot of finger prints marks because of the metallic finish. The screen is top notch. 16 million colors give an amazing display quality. The phone features a 2 mega-pixel camera but, unfortunately, the picture quality is pretty ordinary. I think the camera needs a firmware update because the pictures appear distinctly dithered when light intensity goes down. Under normal lighting conditions the camera is kinda OK, not the best I have seen.

The best feature of the phone is probably the music player. It can play all your songs when loaded in a custom converted format. Nokia music manager does this very nicely and neatly for you. The sound quality is pretty good. This I think is one feature that I am going to thoroughly use and maybe overuse. The FM tuner of the phone is pretty ordinary. My 6600 had a better tuner. It’s not the music quality that is bad but the tuner. Since music files play just fine, I can only conclude it’s not the preamp but the tuner which is at fault. It is clearly not up to the mark. I am disappointed with the FM tuner. I had expected Nokia to give better quality for the FM radio.

The phone has an impressive OS. No issues like slow navigation or faulty menus. I had initially feared that the OS would be poor since earlier phones with Symbian OSes were known to be particularly weak in these areas. Nothing of that sort. The phone is built for connectivity. It has a “push-to-talk” (PTT) feature that allows you to use your phone as a walki-talki radio, haven’t used it though. It has a mini USB connector and is just way too easy to connect to your PC. There is also a bluetooth connectivity option that I haven’t tested.

The phone has a lot of applications that come preloaded. Browsing the internet is just a charm with the the pre-loaded Opera browser. There are a few games, (and you thought I wouldn’t….;)) ), but they are pathetic. However in my opinion, playing any game on this phone will be a nightmare. The controls and keys are tightly packed and pretty flat, not suitable for gaming. The (large) screen to (small) keypad ratio makes playing anything awkward. The phone comes with a 128 MB micro SD card that is like way too less if you are a big music fan like I am. You will have to go for another 2 or 4 GB card to have your entire collection on the phone.

Lastly the battery. The phone is power hungry and the battery discharges pretty quickly. That is too be expected from such a power guzzling display. The battery life is about 2 days with moderate usage. That is pretty low, but since I use the phone pretty sparingly, this is OK for me.

In conclusion, not too much. I am still pretty new with the phone, but I am quite happy with it. There is a lot of functionality that I haven’t tested, so there may be parts missing in this short review. The phone is “good value for money ” and if you get a good bargain, well worth it. If you are a heavy camera user or plan to run a lot of multimedia applications, maybe not the ideal choice. If you are looking for a decent good looking phone which can double up as a music player and a small PIM, this could be one for you.