Skip to main content

Posts

Cube Puzzle

So i've been hard at work polishing the prototype that i had created a few months ago for an iphone game. It is finally in a presentable state, There may be a couple of issues still hanging around, but hopefully they are not bad enough to ruin the experience. It is a simple puzzle game where you rotate layers of cubes in such a way that no two cube in two different layers overlap. Sounds simple right? well try it out and see.. :) We call it "NooBix" a simplified Rubix .. but don't be fooled.. it could get pretty tough at times. Grab the system independent Source code or The windows executable.. from http://code.google.com/p/noobix/ Hope you like it.. update: If the game is crashing on your system, you should install vc++ 8 redistributable package Visual C++ 2005 SP1 Redistributable Package (x86) ( Direct Download Link )

Setting Icon for Win32 Console Applications

Here is a scenario.. You create an application with Visual Studio Express 2008 (or some other express thing) You created a win32 console application (so that you dont' have to deal with win32 api) You want to set a custom icon for your app (instead of the generic .exe icon that shows up) Sounds Simple right, but took me a while to figure out the solution, but as it turns out is pretty easy to do. Here are the steps you have to follow Add a new (.rc) file to project (empty file) add the following line to the .rc file you just added to the project IDI_ICON1 ICON DISCARDABLE "customicon.ico" Copy the customicon.ico file to source code directory of the project. Build your application just like you would normally. (using the menu options in VC Express) Check the .exe created in the release/debug folder based on your configuration. Well i tried to put it as simple as i could, Hope you found this useful, here are the links which helped me figure out how its' done .. just ...

Key Frame Animation

Couple of years ago i worked on Adrian in which we used the Md2 models(i.e, quake2 models) but you know it was all quite troublesome for my taste. It is by no means a complicated format.. in fact it is the easiest format for storing your animated models. The problem was when i wanted to create my own models. .. May be i didn't search hard enough or may be im' just too lazy but basically i could not find anything that i could use to create my own models. .. I tried the blender exporter but due to certain limitations in the format, we had to create certain number of keyframes etc. Well after all that I thought why not create a plain text format which is inspired from the md2 key frames idea.. but with all the limitations of having predefined number of frames for a certain animation etc.. removed. Plain text formats could be really bad for big models.. but when you are targeting low end systems or handhelds im' pretty sure.. it will work out pretty well. I've got the expor...

OpenGL glRotatef

While working on a recent project, ive' decided that i wanted to give the user freedom to rotate the object about its' axis and see what it looks like. Sounds fair enough right.. i mean its' a 3d object.. so let the user view it as he wants to.... so i started coding.. now i wanted the user to be able to rotate the object on Global X axis and the Global Y axis. So i have two different angles one about X and one about Y. How do i rotate them correctly so that i produce the right rotation? (in opengl) The problem here is once you rotate about an axis, the co-ordinate system is changed and you have to figure out how to rotate around the other axis. Here is the thing.. glRotatef() actually takes in an "angle" and "vector" about which the rotation should happen. I have convinently forgotten this information and struggled to find the answer... .some where in the forums some one mentioned .. its' an arbitrary vector you can rotate about.. wel.. that fixed m...

Ubuntu Config

Ok for some weird reason the firefox on my ubuntu box has been .. you know.. really really slow.. switching between tabs etc.. are slow.. at least so I perceive ... any way.. turns out i wasn't the only one.. lucky for me i found a post on ubuntu forums which said.. i had to disable the ipv6 thing in about:config.... so here is what is supposed to be done if you are facing this issue: 1) type about:config in your address bar 2) once you see the config, search for ipv6 3) you will find only one entry in there.. double click it to toggle it to true. 4) restart firefox.. you will find that it is a definitely better than what it used to be. (well it is for me at least) Now the Video Player keeps flashing the screen while playing a video.. while compiz is enabled.. so the solution.. again... is just a config change.. i dont' see why these things are not put in by default but here you go... check out the link just in case you are lazy to hit the link.. here is the extract... * GStre...

InkScape Learning

So i've been spending time with inkscape to see how good it is for creating character art and then animations from that... essentially sprites.. so.. here is what i was able to create following some tutorial .. I kinda skipped through some of it coz i think i got the hang of it.. any way.. here we go.. the drawing...

Trying some cartoon drawings with inkscape

Some thing i drew in inkscape just after getting inspired by svg art around the web.