Oct 28, 2009

The sound of Skype

What is actual sound of "Skype", which is one of the famous internet voice phone service.

Some of Chinese friends around me keep sounding "Sky-py" or "Sky-Pee", but I believe American doesn't sound "pee".

One of example sound is from one of Ted presentations: http://www.ted.com/talks/david_pogue_on_cool_phone_tricks.html

He sounds "Sky-ee-p" or "Sky-ip".

One of rules on English sound is that if "e" follows any consonant, the sound of "e" comes first.

Examples are "Swipe", "Plane" and "Pane".

Oct 14, 2009

House Centipede in my house

From Sep 1st, I am living in a new house, which was owned by a chines. I have lived there about one and half month so far.

One of the serious problems the house has is house centipedes; there are other serious problems as well.Today I found that what kind of centipedes they are from Wikipedia. There are House Centipedes.

It says that it is generally considered as harmless to human, dogs and cats, because their bites cannot penetrate human skin; I hope they don't attempt on my skin at night.

As the Wikipedia says, they seem nocturnal. Interestingly they seem to have well developed eyes, because whenever I try to hit it, it run away fast.

Fortunately they eat many harmful insects such as cockroaches, bedbugs, spiders and termites. In addition, they are harmless to human. I like to give some credit for them in this sense.

Only one problem of them is, however, that they look extremely ugly. One day I saw one centipede in my room, and it was as big as my palm. I even had a bad dream in the night; I was killing several centipedes in the dream.

Sep 18, 2009

virtual methods and polymorphism

Today I had an interview. One of questions was about polymorphism in C++. The questions was whether we need to have "virtual" keyword in order to use polymorphism in C++. The correct answer is that C++ doesn't allow any methods to be used as polymorphism if it is not virtual method.

The confusion came from Java syntax, because every methods in Java are virtual methods. Although it is an understandable mistake for Java programmers, it should be always clear for C++ programmers.

Let's see an example here:
#include windows.h

class BaseClass
{
public:
void printSome() { OutputDebugStr( L"Base\n" ); }
};

class DerivedClass : public BaseClass
{
public:
void printSome() { OutputDebugStr( L"Derived\n" ); }
};

int _tmain(int argc, _TCHAR* argv[])
{
BaseClass * const obj = new DerivedClass();
obj->printSome();
delete obj;

return 0;
}
Which message should we expect to see? A correct answer is "Base" not "Derived", because it doesn't have "virtual" keyword.

The guy who raised this question to me was evaluating my technical skills on my interview. I doubt whether he graded me fairly. I wish he can find this article and correct his misunderstanding.

Sep 10, 2009

Billiard game

I have spent about 5 weeks for this personal project. The purpose of this project is to show my technical fluency. I have chosen to develop a simple billiard game with Collada, PhysX, and Shader programs.

Requirement:
  • DirectX 9 end-user runtime
  • Graphic card that can support Shader Model 2. ( Pixel shader 2.0 will be enough )
  • PhysX must be installed.
  • OpenAL must be installed.
Demo video:


Source code is available on Google Code: http://code.google.com/p/mybilliard01

Used technique:
  • PhysX
  • Collada
  • DirectX 9
  • HLSL
  • OpenAL
  • Microsoft C++/CLI unit testing framework
  • std::tr1
Note
The balls colliding to each other under Physical calculations. Shadow is drawn by shadow map. The graphic model data are from 3DS Max through Collada XML standard. Sound is powered by OpenAL.

Screen shots
The captured video lost some graphical details, so that I like to attach some screen shots here. Click each image to enlarge it.



*PS : Background needs to be added soon.

Jul 25, 2009

My first Torque X game on XBox 360

Today I spent about 2 hours making this simple game. I just followed the chapter 2 on a book, "The complete Guide to Torque X for XNA."I found that TorqueX is a very easy and fast game developing engine. Although I don't think we can use it for commercial game development, it seemed good for personal use.

I'm still reading the book, and I expect to see some interesting functionality for 3D part on latter chapters.