Home

Awesome

Screenshot

Description

This tool can be used to view the space backgrounds from the game Homeworld 2.

What makes backgrounds these special from a technical viewpoint is that they are not background or cubemap textures but tesselated spheres with vertex colors. The geometry is more finely tesselated in places where more precision is needed in the image.

For further information on the way that the Homeworld 2 backgrounds work please refer to these Simon Schreibt articles:

Dependencies

The following Python 3.x dependencies are needed to run the program:

pip3 install --user pyopengl numpy glfw

Usage

Launch the program from the command line with the name of the background to display,

./visualize.py background/m01.hod 

Drag with the left mouse button pressed to rotate the view.

Extracting the data files

The data files in background/* are part of the original game and cannot be distributed with this program.

Extracting the .hod files can be done in the following way:

These are the following:

background/black.hod
background/m01.hod
background/m02.hod
background/m03.hod
background/m04.hod
background/m05.hod
background/m06.hod
background/m07.hod
background/m08.hod
background/m09.hod
background/m10.hod
background/m11.hod
background/m12.hod
background/m13.hod
background/m14.hod
background/m15.hod
background/white.hod

The hod files in other directories space ship models and such. These can not currently be viewed with this tool as the vertex format is different.