Archive for March, 2011

This was our project for the subject Java we studied in the IIIrd year of Engineering. We(Me, Harshal and Shaunak) decided to extend out previous version of graph plotter. Our aim was to make the GUI more pro, the plotting more accurate and include the necessary facilities like better scaling, saving graphs for future use and multiple graphs for simultaneous comparisons.


We started with designing a Layout for out project. We considered and analyzed the available options and finally decided to make a combination of GridBag Layout and Card Layout. According to the design the Main Screen will be based upon a GridBag layout. This was done to avoid positioning/shifting/alignment problems of the controls that were going to appear on the screen. The function selector was supposed to be on the left sidebar, and always visible. The function selector was based on Card Layout, which in turn had a GridBag Layout to support the controls inside each card. We added the feature for parsing the input polynomial so that the user need not follow an order as in he can enter constants and degree polynomials without concerning himself about the terms being sorted according to their power. P.S. The design was heavily inspired by Limewire 4 !!

MathCore – AutoScale 2.0 and Special Curves

After the design we worked on how we can make our graph plotter more precise and with better scaling. To make it more precise we had to overcome the problem of plotting floating points on the computer screen. After much thought we decided to divide our canvas into units and each unit in turn into 10 parts. So if we want to plot say 5.2 on any axis then it would be at 5 units and 2 parts. This method was extensible to as many decimal points as possible but due to our limited hardware and processing capabilities we limited it to 2 points.  The increase in the precision enabled us to create smoother curves. We were able to include graphs for parabola, ellipse, hyperbola and special curves like Limacon, Cardiod and Rose curves, and what curves baby !!

This being done we decided to enhance our scaling algorithm. This time we used 3 scaling factors – 2,3 and 5. We designed and coded an algorithm to determine which value will give us the best scaling considering the computed values and canvas size, and then use that number to scale our values. It also worked smoothly and our Core computing task was done.


Our design/layout was done, but it was not enough. We decided to include a multigraph feature ie the ability to plot multiple graphs on tabs in the same screen, as we have in our web browsers nowadays. We implemented a TabCtrl class and created tabs on the fly to minimize memory leaks. Each tab had its own Canvas class and would save its graph as long as it’s object is alive. We added menus and keyboard shortcuts to complete the GUI. The last feature we added was for saving the graph as a .jpg/.png… file ready for printing or saving for future reference.

Packaging and The Splash !

Finally we packaged the whole stuff in a neat way and separated the Core Math part from the GUI classes. But something was missing, you guessed it right-The Splash screen…Harshal created a great looking splash screen the night before with the fractals and the killer font Evanescent. The final run sure made us go Eureka !!

Some screenshots:

splash , sine , rose curves , polynomial , parabola , log , limacon , hyperbola, exponential, ellipse, cardiod

Black Ops

Enough of doing things legally, sometimes you have to cross the line for the greater good.

The next version of Call of Duty has gone different that its usual self and delved deeper into the covert operations undertaken by the Pentagon and CIA after WWII during the cold war. The story starts in an interrogating room with Alex Mason trying to understand meaning of a series of numbers he is hearing in his head. The interrogators are making him remember about his missions in various parts of the world. You get to play Mason and Captain Hudson in the story. The missions are really exiting like  killing Fidel Castro to bringing down the Vietnamese during the US-Vietnam war. Then obviously we kill the Russians to obtain a chemical weapon developed by the Nazi called Nova 6. The final objective is to stop “sleeper agents”(same as the movie Salt, i see a connection :P) from releasing Nova 6 against the US.

The weapons are 1960s based and the game is brutal filled with blood and gore if you like it. You get to fly a helicopter, drive a boat and even escape a prison on a 1950 motercycle. The gameplay is awesome and the graphics are lifelike. The storyline once again is the heart and soul of the game. Final verdict : If they dont like like you, they will kill you. Beware its got zombies as well :D:D.

Modern Warfare is back !

The IInd version of modern warfare returns with a bang. This edition kept the spirits high as always for the followers and fans of the call of duty franchise. The engrossing feature of the series is still present that takes you inside the story and lets you live that era again with your in-game avatars.

You play as Ramirez(Rangers) and Roach(Task Force 141). Task Force is the unit that takes covert missions including extraction, assassination and other off the record missions led by General Shephard. The game revolves around a Russian militant Makarov whose actions instigate a war between the United States and Russia. As the game moves on it comes into light that General Shephard was also involved and was actually the main villain. We also get to play Captain McTavish who is the last survivor and who reveals the true character of General Shephard. All in all the game is great as was expected, the weapons arsenal is truly high-tech(loved the heartbeat scanner 😉 ) and it has this great storyline to boast upon. The climax of the game is apt, makes you savor the glory of hard earned victory !! A great job by Activision and Infinity Ward.