Skip to main content

Posts

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.

PyWeek9

Yet another successful pyweek flies by.. well not yet.. but at least the major part of it is. Just in case you were wondering what the heck pyweek is.. just visit the website will you. I've been participating in this event ever since i found out about it during college. Enough of this stuff... let's get to the good part ... If you have a wii or heard about it.. you will have heard that its' a low end system with not much of graphics power etc, but some of the games that are available on this system are really very innovative. One such example is the game called deBlob (by THQ). This was a student project which got adopted into a commercial game. So why the hell am i talking about it in a post dedicated for pyweek?.. well this game kinda inspired me to write write something similar. I've been waiting for the right moment and PyWeek9 presented the right opportunity. Why?.. coz the theme for this pyweek was 'Feather' So i thought ill' build a game around paint...

Prototype

Prototype is a game where the player can shape shift his character and grow blades (you know just like wolverine..) and hack and slash your way through the military and infected people to find who made you the way you are.. (a freak).. now that we have the story out of our way.. let's talk about the gameplay, controls etc.. (im' referring to the pc version here) hmm let's see how i can put it in a single clear statement... "Prototype game kinda sux at combat". I really don't get the free flowing feel that i did with wolverine x-men origins, Devil May Cry, you know the list goes on.. the combat just isn't there. Running around the city is fast paced and fun for a while but it does get old quickly. So im' not sure what the other reviewers are talking about this game.. i.e, it being good and all.. but i didn't like it one bit.. the controls just dont' feel right.. again.. im' looking at the pc version here.. if your experience on the consol...

Porting To Blender

iv'e been porting this game I wrote for pyweek competetion to a blender game (i.e, using blender's internal game engine). There were a couple of things that took a while for me to get a grap of. 1) Making the trees move when it is being cut, there were a couple of different ways i tried but finally i've put in a lame hack just so it will work. 2) How to make sure each level's objectives are different even while linking it from a different file. 3) Making the smoke look right, making it fade away. 4) A little trouble fixing the camera angle etc. But the current thing seems pretty solid. I've tried to use the feedback I got for the game in the prev competetion as guidance for the dev of this game. Hopefully iv'e fixed most of them.. Well almost.. I still have to design the levels and make sure they are intuitive enough. 1) Heating up only when cutting wood, (stand still and it will cool down.. standard fair.. like in most games) 2) Instead of some weird cooling/h...