Saturday, May 27, 2006

World Cup Friendlies

In preparation for the upcoming World Cup in Germany, the teams are warming themselves up as well as the fans with a set of friendlies. Italy came with a strong start with their 4-1 win against Germany in the friendly played in March. Hope they keep up the good work and bring that cup back!
The next match is with Switzerland - that tiny petite landlocked country with all the stinkin' cheese and good chocolate - Apparently the Swiss know how to play, so this match I got to see. It is clear that it will be like taking candy from a baby for the Italians.

FORZA ITALIA !



Thursday, May 25, 2006

Concorde at 1000mph, FlightGear, DTK - FUN, fun, fun

After a couple of days working at it, I finally got one of the software components of the project working. The people who made Flight Gear are really smart and gave users a way to read and write values into the game simulation. This is smart because it means reading the accelerations from the game can be done, which then can be mapped into translations for the Moog Motion Base (the actual Flight Simulator) and together this gives the user the 'flying experience'. With a little motion and watching the screen, the brain can be tricked and the person is immersed in a virtual flying experience - this is also known as motion queuing. The same can be applied to race car simulators, boat simulators, etc. etc.

Now some fun stuff! On the FlightGear website you can download more scenery and planes. I chose to download a Souther Ontario map, a U.A.E. map and a Concorde plane. Installing them was easy - just unpack into the correct directories and you are ready to fly. The Hamilton, Abu Dhabi and Dubai maps were really boring. Dubai was not as bad as Abu Dhabi which was all desert and a one runway airport - but still boring. So I ran the simulator with the Concorde model and took some screenshots. The one below was the best - flying at 100mph! (woops..I turned off the speedometer without realizing it so you cannot see that - tough luck)


For those who are interested in knowing the details...
FlightGear
So for those who are interested in knowing how this works - continue reading. Like I said FlightGear gives the user a lot of control in the simulation. You can read the simulation parameters from a browser, write to serial ports, send TCP or UDP packets and whole suite of other protocols. UDP packets are easy to deal with, just reading and writing to the UDP port - just like a file. Using an XML document you can tell FlightGear which values you are interested in. In my case these were the accelerations in all six dimensions - x,y,z, roll, pitch and yaw (look those up to know what axis they are). Now what is left is to write a little UDP listener that will listen to the port you specify and read the packets as they arrive. Because it will arrive as a string of numbers, the easiest way to read each parameter is through defining the format yourself in the XML file. I used a '*' to separate them and broke the string that way when it arrived.

DIVERSE - Device Independent Virtual Environments - Reconfigurable, Scalable, Extendable (DTK)
The next step involves this library which can be found here. DTK is the 'glue' that 'glues' everything together. A whole collection of C++ client, server and utility programs that manage the shared memory and allow other applications on other computers on the network to read and write from it. Since the graphics will be running on its own on one machine and another machine will run the physics engine for FlightGear this makes communication easy. After reading the UDP packet it can be written to the shared memory using DTK and then these values can be read by any remote computer that is connected to this shared memory. All you have to learn is how to read and write from it, and that is covered by the beginner's tutorial on the website. You might be asking yourself why can't we just run everything on one computer like any other game? The answer is simply quality. One machine might start lagging if it has to take care of user input from the joystick, filtering it and then passing it to the FlightGear engine and produce graphics on the screen. Having one high-end computer do the graphics can make the simulation much smoother and more realistic which is really the whole point of having a simulator.

Monday, May 22, 2006

Shakira by me


I wanted to continue working on that Mustang but I had trouble doing the wheels and lights so I decided to start working on something else - a black and white Shakira line sketch. It turned out to look pretty hot. Why did I pick Shakira? Well, comeon she is hot! plus shes half Arabic and she is an awesome belly dancer! Here is the sketch, let me know what you think.

Sunday, May 21, 2006

Pigeons in the house!!


Damn those pigeons!! I am never going to finnish from them. We just went out on the balcony to watch some mad fireworks outside and a pigeon got scared and flew into the house! Good thing it did not knock stuff over or shit all over the place. It was funny chasing after it trying to get it to go out. After a few minutes running after it I finally caught it and took a picture with it before letting it go in the building hallway...haha I am just kidding, I let it go outside.

R.I.P Pigeons

Remember the pigeons that lived on the balcony? I took a picture of the baby pigeons every couple of days documenting how fast they grow. It's 3am and I was asleep on the couch in the living room when Ali -my housemate and cousin- woke me up saying there was a big comotion on the balcony and when he walked to the door to check it out a big bird flew and hit the rail before flying off. So I got up, and what I saw was very strange. One of the baby pigeons was not there, and the other one was dead in the nest! None of the parent pigeons were around, but there were ALOT of white feathers on the balcony - one of the parent pigeons was white -
So what flies around at 3am in the morning? My guess is that it was an owl, maybe an eagle? but I do not think eagles fly at night. I am almost convinced it was an owl.

Saturday, May 20, 2006

Ford Mustang line art

On my previous blog I posted some line art I have created of a few of my friends. Today I decided to work on some more line art in Photoshop. I chose a picture of a Ford Mustang and started working. There are some very nice tutorials on the web on Photoshop line art, so just Google them if you are interested.


There are a few bits and pieces left to do but it should look awesome when I am done giving it some shades and tones.

How To: Reset 'root' password on Mac OS X

I purchased my Apple PowerBook G4 a year off eBay. I got a really good deal for it and saved around $500 on the retail price and it was only 4 months old. Anyway, the lady I purchased it off gave me an 'administrator' password which I thought would also be the 'root' account password. To my surprise it was not, and today when I was trying to install FlightGear on my PowerBook I could not since I did not have permission! So a little search on Google was useful because I learned that I can reset it without having to restore my machine and lose my stuff (no isn't porn!). It was real easy:
  1. Pop in the restore CD/DVD
  2. Restart the machine
  3. Follow the re-installation until you can access the menu
  4. Choose the 'reset password' option
  5. From there you can reset any password including the 'root' account
That's it, now I have access to my 'root' account. Thanks to my infinite wisdom I decided to restore while maintaining my files (another option available) and then found out that I lost all the Unix tools available including 'gcc' and 'make' and now I cannot compile and install FlightGear. All of this to install the damn flight simulator! I guess it was not meant to be.