Questions tagged [terrain]

Terrain, or land relief, is the vertical and horizontal dimension of land surface. Terrain is used as a general term in physical geography, referring to the lie of the land. This is usually expressed in terms of the elevation, slope, and orientation of terrain features. In games, terrain is the "land" or "world" on which the game environment, roads, buildings, vehicles, characters are placed and interact with each other.

Terrain, or land relief, is the vertical and horizontal dimension of land surface. Terrain is used as a general term in physical geography, referring to the lie of the land. This is usually expressed in terms of the elevation, slope, and orientation of terrain features. In games, terrain is the "land" or "world" on which the game environment, roads, buildings, vehicles, characters are placed and interact with each other.

This tag is for question related to terrain, its properties, problems related to setting different properties, lighting, textures, simulating gravity, friction etc for use in games or simulations.

574 questions
11
votes
6 answers

Multiple texture images blended together onto 3D ground

How do computer games render their ground? I will be using a heightmap for geometry (though I will later optimize it) but I am wondering what the best technique is, for example, to 'paint' my ground; grass most everywhere, dirt paths here and there,…
Ricket
  • 33,368
  • 30
  • 112
  • 143
10
votes
4 answers
10
votes
4 answers

3D maps rendering in games

I have some questions about maps in 3D games (i.e. World of Warcraft) and how programmers render them: Is it possible to "smooth" the edges of mountains via some technique, or the only possible solution would be to use more vertices in a…
McLovin
  • 3,295
  • 7
  • 32
  • 67
9
votes
1 answer

On-the-fly Terrain Generation Based on An Existing Terrain

This question is very similar to that posed here. My problem is that I have a map, something like this: This map is made using 2D Perlin noise, and then running through the created heightmap assigning types and color values to each element in the…
Maltor
  • 553
  • 6
  • 16
9
votes
5 answers

Quickly find and render terrain above a given elevation

Given an elevation map consisting of lat/lon/elevation pairs, what is the fastest way to find all points above a given elevation level (or better yet, just the the 2D concave hull)? I'm working on a GIS app where I need to render an overlay on top…
Charles
  • 6,199
  • 6
  • 50
  • 66
9
votes
5 answers

Where to get Terrain Data - both free and paid?

Where can you get terrain data? What resolution data can you get for free? What resolution data can you get when you buy the data? How much is that data? I found this site that has free terrain data. The resolution is 30m x 30m. Is that the…
zooropa
  • 3,929
  • 8
  • 39
  • 61
8
votes
1 answer

Marching Cubes, voxels, need a bit of suggestions

I'm trying to construct a proper destructible terrain, just for research purposes. Well, everything went fine, but resolution is not satisfying me enough. I have seen a lot of examples how people implement MC algorithm, but most of them, as far as I…
Jeffers
  • 183
  • 2
  • 7
8
votes
3 answers

Pseudo random number generator from two inputs

I need a pseudo random number generator that gives me a number from the range [-1, 1] (range is optional) from two inputs of the type float. I'll also try to explain why I need it: I'm using the Diamond-Square algorithm to create a height map for my…
Jón Trausti Arason
  • 4,548
  • 1
  • 39
  • 46
8
votes
2 answers

OpenGL Texture sampling different depending on camera position

I am rendering a point based terrain from loaded heightmap data - but the points change their texturing depending on where the camera position is. To demonstrate the bug (and the fact that this isnt occuring from a z-buffering problem) I have taken…
jProg2015
  • 1,098
  • 10
  • 40
7
votes
0 answers

MapLibre GL JS with terrain layer: How to pin a horizontal plane to a specific altitude?

I based some code on the "Add a 3D model" example at maplibre.org in order to draw only a horizontal plane on a map which uses setTerrain to add a terrain layer. My intention is to draw a couple of semitransparent layers at a given heights above sea…
Daniel F
  • 13,684
  • 11
  • 87
  • 116
7
votes
1 answer

creating elevation/height field gdal numpy python

I would like to create some elevation/heightfield rasters using python, gdal and numpy. I'm stuck on numpy (and probably python and gdal.) In numpy, I've been attempting the following: >>> a= numpy.linspace(4,1,4, endpoint=True) >>> b=…
Chris
  • 1,647
  • 1
  • 18
  • 25
7
votes
1 answer

Vuforia – Can't see terrain when using Cardboard

I'm developing an AR experience with a terrain (not smart terrain, just terrain in Unity) in Augmented Reality app, everything works perfect! But when I'm trying to use the see-through mode of Google VR, I see the clipping planes, that are making…
7
votes
1 answer

Three.js texturing terrain on a spherical hexagon grid map

This is more of an approach question, rather than just technical question. I have a generated sphere, broken down into hexagons as one mesh. Every hexagonal tile is a different kind of terrain, for instance, mountains, hills, ocean, planes, etc. I…
user1617735
  • 451
  • 5
  • 16
7
votes
1 answer

Best CLOD Method for Planet Rendering

I'm currently working on my thesis, it is an engine to render terrains of planetary size. I'm still finishing my researh and I have encountered a lot of stuff about this subject, the problem is that I can't decide on wich LOD method I should use. I…
nosmirck
  • 666
  • 9
  • 31
7
votes
1 answer

Perlin terrain pages mismatched: elusive bug

I've been developing a game in the Unity Game Engine that I hope will be able to use paged terrain for an infinite world (common theme nowadays). My terrain generator uses perlin noise exclusively. But at this time, development has been seriously…
Miles
  • 1,858
  • 1
  • 21
  • 34
1
2
3
38 39