Approaches to Planet Terrains

I’m trying to wrap my brain around creating a terrain which is NON procedural (grid based), so that the player can walk around on the terrain and load portions in chunks or tiles. However, it has to wrap or be seamless.

It’s not that difficult to create a terrain and slap the texture and bump map on a planet you view from orbit, you just get pinching at the poles. Not a huge deal.
The problem is, the terrains you create…being able to have everything work correctly so that the player can travel around the entire planet, without some weird distortion. That’s what I’m having trouble with.

If you just take a rectangular terrain, with the north pole at the top and the south pole at the bottom,

  1. you have distortion at the poles, both on the surface and from orbit.
  2. if the player travels to the north pole, they will “wrap” around to the south. Instantaneous travel from one pole to the next.

If you take a two square maps, one for the north hemisphere and one for the south. The edges of the map are the equator.

  1. You still get distortion at the corners
  2. Walking the player at the corners also produces some crazy transitions

Fine. A quad sphere. Where each face of the cube/sphere is a map. This is actually preferable to us, it gives us a 6 terrain maps per planet, so more detail.

  1. looks great from orbit.
  2. welcome to seamless terrain hell at the edges.
  3. Forget loading nice, rectangular tiles of terrain around the player from this thing. If you are at the “corner” of a face, you get some absolutely crazy stuff. There aren’t necessarily a nice grid of tiles to choose from to display around the player.
  4. Not only that…if you want to show “distant” terrain from the faces around you, they aren’t always shown to the north of you, east, in a nice grid layout. They must warp visually so that as you move to the east side of one face, the face “northeast” of you warps to become the north of you.

Again…I really do not want procedural terrains. Everywhere I look everyone does it procedurally, which helps avoid a lot of these situations.
Anyone have any thoughts on this?

1 Like

Welcome to my world, well you must edit on sphere directly, not edit into square to stitch, which is basically teh same solution than procedural.

Which is fine for viewing from orbit. But what about on foot?
Especially for a large terrain. You have to store the terrain data in some custom format, and be able to retrieve that and display it to players on the ground, in small chunks.

Okay. This one is kinda tough to answer. Ha! Ha! :smile:

How does doing it procedurally help? If you can understand that then perhaps you can use it to your advantage.

Honestly, I’d have thought that games with circumnavigable, large planets would use procedural generation not because of the issues you mention, but largely because there’s so dang much content that needs to be made. It’s a clear case for making and testing a generator rather than hand-crafting the sheer volume of stuff you’d need.

Whatever aspect of the procedural system it is that helps with these issues, you can do as well.

For instance, maybe define the planet’s properties as a set of maps, and then have a terrain re-generated around the player as they move along the planet’s surface. That way you still get to hand-craft stuff, it’s just saved to the maps instead of directly to the terrain. You’re then generating the terrain on the fly, but you’ve still been able to hand-craft it rather than let a computer do it for you. The catch, of course, is that you need to make custom tools for the whole workflow.

1 Like