sgolodetz / game1666

A fledgling city-building game (in C#) based in the Stuart period around the Great Fire of London (in 1666).
2 stars 2 forks source link

Make it possible to render entity names #40

Open sgolodetz opened 12 years ago

sgolodetz commented 12 years ago

For example, it should be possible to render the names of cities in world view. This will make it substantially easier for the player to distinguish between them.

sgolodetz commented 12 years ago

This isn't quite as trivial as I was expecting, because the text needs to be drawn in 3D space - the best way to do it seems to be to draw the text into a texture (with a transparent background) and render a textured billboard at the correct place in 3D. The following links are quite useful:

sgolodetz commented 12 years ago

As part of this item, I should probably implement a general billboard system, as it would also be useful to render other status information next to entities in a playing area (e.g. a progress bar showing the current construction state of a building).