News Liste Plan B: Terraform

Hexagon planet generation
Plan B: Terraform
08.05.24 15:12 Community Announcements
v0.8 is progressing well: new ocean generation, basic modding support and new views (one with visible clouds) are done. Don't hesitate to activate the beta branch to test it! Still a few features to work on before releasing it to everyone.

So, in the meantime, I would like to rewrite here an old post from twitter (2019!) that was explaining the hexagonal generation I've developped for Plan B. Here it is:


How to create a sphere made of hexagons? Hexagons of similar size and orientation?

The most common way to do that is to start from a regular icosahedron (solid of 20 of equilateral triangles), then subdiving each triangle (sphere tessellation). Each triangle vertex becomes an hexagon, as you can see in this pic (credits https://twitter.com/AndyGainey ; I'll come back to him):



Here is a sphere with 5 subdivisions (~10,000 hexagons). It's very nice, that's what I initially planned to use... but it's actually bad for a game. Not because of the 12 hidden pentagons, but because of the non-uniformity of the size, shape and orientation of the hexagons.



Here is what you can see at different positions of the sphere ; north pole being on top. Hexagons are of various shape, size, and orientation ; the result would be awful when you scroll in the game, very disturbant.



There are other ways to do this sphere tessellation, like the very interesting Healpix, which garantees the same size for each area, but have non-uniform shape, and squares instead of triangles/hexagons. https://healpix.sourceforge.io http://montage.ipac.caltech.edu/docs/HEALPix/



A very special and incredibly imaginative solution is the one of
@AndyGainey, explained in detail here: http://experilous.com/1/blog/post/procedural-planet-generation
To avoid avoid pentagones and predictable irregularities, he decided to do the total opposite: going full irregularity.



When irregularity (in size, shape and number of edges) is everywhere and random, the surface actually becomes regular - homogeneous in its irregularity. Really brillant, but not what I need for my game, as I really want regular hexagons.



So, what I do is that I divide the sphere in vertical "slices". Inside each slice, the triangles/hexagons are set in perfectly horizontal rows, and are (almost) pefectly equilateral. The non-uniformity is grouped in the links between slice.



One big advantage is that the more hexagons there are, the more regular it becomes. And for my game, I'll have a lot, lot of hexagons. Here is the sphere with a few thousands ones.



And here is a portion of the surface, with a few millions of hexagons. Can you spot the irregular shapes ? Not easy ! They should definitely not be a problem when playing on this field.



The "Icosahedron tessellation" method produces only 12 pentagons. With my method I get much more: 720 for a sphere of 14000 hexagons (5%). But the more hexagons, the better the ratio is. For 10 millions of hexagons, only 0.2% are pentagons or heptagons.
I have calculated the variation in the triangles edge lengths (are hexagons are uniform in shape and size ?): I get a coefficient of variation of 6.5% for the icosahedron tessellation ; but only 1.6% with my method.
The best advantage of my solution is about the orientation of the hexagons (are they "horizontal" ? I check the angles of the triangles edges). I get a coefficient of variation of only 3.8%, compared to the 55% with the icosahedron tessellation!


Here it is. 5 years later, i have no regret using this system, i still can't think of a more suited one. Although, i can say now that i definitely underestimated the technical complexity of using this system in a full game, to properly manage the slices borders.

If I had had more time, i would have loved to research further in this matter. Maybe find a way to avoid the slices. Or something else.
If any of you know of some interesting research about it, i'd be very interested to know about it!
Logo for Plan B: Terraform
Release:15.02.2023 Genre: Strategie Entwickler: Gaddy Games Vertrieb:keine Infos Engine:keine Infos Kopierschutz:keine Infos Franchise:keine Infos
Einzelspieler Mehrspieler Koop

Aktuelle Steam News
Neue Steam News in der ePrison Datenbank

v0.9 progress
Plan B: Terraform
06.12.24 09:03 Community Announcements
Plan B - v0.8.4
Plan B: Terraform
24.09.24 10:25 Community Announcements
Plan B - v0.8.3
Plan B: Terraform
10.09.24 10:48 Community Announcements
Plan B - v0.8.2
Plan B: Terraform
08.08.24 09:28 Community Announcements
Plan B - v0.8.1
Plan B: Terraform
05.07.24 08:49 Community Announcements
Plan B - v0.8 major update
Plan B: Terraform
27.06.24 15:34 Community Announcements
v0.8 progress
Plan B: Terraform
29.05.24 14:33 Community Announcements
Hexagon planet generation
Plan B: Terraform
08.05.24 15:12 Community Announcements
Plan B - v0.7.5
Plan B: Terraform
11.03.24 15:28 Community Announcements
Plan B - v0.7.4
Plan B: Terraform
24.01.24 15:59 Community Announcements
Plan B - v0.7.3
Plan B: Terraform
27.12.23 12:47 Community Announcements
Plan B - v0.7.2
Plan B: Terraform
04.12.23 15:24 Community Announcements
Plan B - v0.7.1
Plan B: Terraform
10.11.23 10:58 Community Announcements
Plan B - v0.7 major update
Plan B: Terraform
06.11.23 12:48 Community Announcements
Plan B: Terraform at Paris Games Week (November 1-5)
Plan B: Terraform
12.10.23 14:58 Community Announcements
Team
Plan B: Terraform
07.09.23 13:20 Community Announcements
-15% for Tiny Teams 2023 ; and dev progress news
Plan B: Terraform
03.08.23 19:11 Community Announcements
Roadmap
Plan B: Terraform
12.07.23 10:10 Community Announcements
Plan B - v0.6.9 build 701 (hotfix : build 702, 703)
Plan B: Terraform
02.06.23 06:56 Community Announcements
Why develop Plan B: Terraform?
Plan B: Terraform
05.05.23 14:23 Community Announcements
Plan B - v0.6.8 build 685
Plan B: Terraform
25.04.23 10:04 Community Announcements
Plan B - v0.6.7 build 672
Plan B: Terraform
03.04.23 07:51 Community Announcements
Demo live again, launch recap and next updates
Plan B: Terraform
10.03.23 16:18 Community Announcements
Plan B - v0.6.6 build 655
Plan B: Terraform
07.03.23 08:31 Community Announcements
Plan B - v0.6.5 build 647
Plan B: Terraform
28.02.23 14:39 Community Announcements
Early Access is live now!
Plan B: Terraform
15.02.23 08:59 Community Announcements
Plan B - v0.6.4 build 637
Plan B: Terraform
13.02.23 17:59 Community Announcements
Early Access on wednesday ($10)
Plan B: Terraform
13.02.23 17:42 Community Announcements