Hexagons at the Heart of Terra Engine

Hexagons at the Heart of Terra Engine

Introduction to the H3 System

The physical representation of the world in Terra Engine relies on H3, a hexagonal grid system developed by Uber for geographic indexing. This technology partitions the Earth's surface into uniform hexagonal cells:

H3 system illustrating the progressive division of the globe into hexagonal cells of various sizes.

Why Model the World with a Hexagonal Grid?

Dividing the world into regular units facilitates calculations and interaction management between zones. It also enables efficient simulation of complex phenomena at large scale.

The choice of hexagonal shape, rather than square or triangular, is based on several major advantages:

Homogeneous neighborhood
Each hexagonal cell has exactly six neighbors, ensuring uniform propagation of phenomena in all directions.
Regular distances
The distance between the center of a cell and its neighbors remains constant, simplifying calculations for movement, diffusion, or effect zones.
Less geographic distortion
The hexagonal grid reduces aliasing and distortion effects, especially when projecting onto a sphere, improving geographic accuracy.

In conclusion, the hexagonal grid offers the best compromise between realism, performance, and simplicity for modeling the world.

Use Cases

Damage Simulation

The hexagonal mesh allows calculating damage based on event intensity and each cell's vulnerability. The system takes into account population density and local infrastructure to estimate human and material losses.

The capture illustrates damage propagation on hexagonal cells: damage is maximal at the center (for example, at the epicenter of an explosion) and gradually decreases with distance.

See the H3 system in action: Discover on YouTube the simulation of natural disasters in Terra Engine v0.0.14.

Territory Generation

H3 also serves to shape territory boundaries. The system automatically converts GeoJSON from open data sources into hexagonal cells, producing clean and continuous boundaries. This method ensures consistent and accurate territorial representations without overlaps or gaps between adjacent territories.

Representation of territory and country boundaries in Latin America.

Geospatial Phenomenon Modeling

The H3 system uses hexagonal cells to model the shape and trajectory of phenomena such as tropical cyclones and earthquakes. This approach allows simulating the impact of these events by precisely identifying the most affected areas.

The cyclone's shape, built from hexagonal cells, evolves dynamically according to its category: the higher the intensity, the more extensive and destructive the cyclone. The impact in terms of damage and casualties is directly linked to this intensity.

Dynamic Cell Management

Terra Engine uses an H3 resolution fine enough to accurately model small territories and complex geospatial phenomena. This technical parameter generates a global mesh composed of more than 14 million hexagonal cells!

To ensure optimal performance, Terra Engine activates or removes hexagonal cells on demand, according to simulation needs. This dynamic management optimizes memory consumption.

Timelapse of dynamic cell management: observe the progressive creation and deletion of cells as damage occurs and reconstruction progresses after natural disasters in the Philippines.

Future Prospects and Conclusion

Terra Engine's hexagonal grid lays the foundation for robust and evolving geopolitical simulation. Soon, the H3 system will enable modeling of trade routes, production chains, and integration of military operations management, with dynamic control of territories and borders.

Subsequently, this mesh will allow adding advanced features: strategic infrastructure modeling, resource management, population flows, and other geopolitical systems requiring high geographic precision.

Technical Hexagonal grid
Share

Connect With Us

Newsletter

Follow Terra Engine's development and be among the first to experience the simulation!

© 2025 Terra Engine. All Rights Reserved