initial version from sourceforge/horde3d