Mercator is primarily aimed at terrain for multiplayer online games and forms one of the WorldForge core libraries. It is intended to be used as a terrain library on the client, while a subset of features are useful on the server.
Mercator is designed in such a way that individual tiles can be generated on-the-fly from a very small source data set. Each tile uses a fast deterministic random number generation to ensure that identical results are produced "anytime, anywhere". This enables transmission of terrain across low bandwidth links as part of the standard data stream, or server side collision detection with the same terrain that the player sees.
The use of tiles means that there is inherently a large degree of gross control of the shape of the terrain. Finer control is implemented by allowing geometric modifications - for example, a polygonal area might be flattened, or a crater could be applied.
- The latest development version of Mercator is 0.3.3. The API in the 0.3 series is not stable.
- Source Code tar.gz
- Source Code tar.bz2
Mercator depends on WFMath.
- uses deterministic random number generation and seeds to generate detailed terrain from sparse control points.
- each tile is seeded using the four surrounding control points shape of each tile is influenced by height, roughness and falloff parameters
- geometric modifications can be applied for small features
- new modifications can be added quite easily
- generate shading information based on height and gradient
- new shaders can be added quite easily
- used on the client side
Basic intersection/collision functions are implemented for
- multiple resolutions in the one terrain are unsupported
As of August 2013 Mercator is implemented and in use in the Cyphesis server as well as the Ember and Sear clients.