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
3
votes
1 answer

How do I change the maptype in ggmap?

I am having trouble changing the background of my ggmap. When I try to change the maptype it always comes out as terrain. I would like to change it to satellite. Any suggestions? Here is my code: library(ggmap) # Long and Lat Coordinates Cuba_all…
3
votes
1 answer

Cesium: can cesium work with float .tif as terrain tiles?

For now I'm using cesium-terrain-builder for producing terrain tiles in .terrain format, but I wonder can Cesium work with float .tif tiles? I can't see any information about this in documentation
mrgloom
  • 20,061
  • 36
  • 171
  • 301
3
votes
7 answers

Playable Heightmap

I have a game with infinity procedually generated terrain. I'm using 1/f noise for the height (I think this is perlin noise?). Anyway it looks nice, but its not very playable since it doesn't really have flat areas. Just decreasing the amplitude…
Hannesh
  • 7,256
  • 7
  • 46
  • 80
3
votes
1 answer

How do I calculate which chunks should be loaded first in a voxel game?

I am developing a voxel game (i.e. Minecraft, Cube World, InifiniMiner, etc.) in the Unity3D game engine using C# as my programming language. One chunk is 16x16x16 blocks big. My code loads one chunk from file in ~12ms and generates its mesh in…
3
votes
1 answer

Box2d - Bike Game - Terrain

I'm using Box2d for a Bike Physics Game, Box2d lets you have fixtures that are convex polygons with 8 points or less, would anyone know of an easier way have a complicated concave terrain, other than just making a whole bunch of fixtures? Or is that…
Artur
  • 1,125
  • 11
  • 17
3
votes
2 answers

Cesium path onto terrain: line connecting 2 points goes under the terrain

I have a path moving over time. I use Cesium.sampleTerrain to get positions elevation and drape them on the terrain. The problem is that, even if all points are on the terrain, the line connecting 2 points sometimes goes under the terrain. How can I…
sabrina
  • 1,567
  • 2
  • 12
  • 15
3
votes
1 answer

navigating on cesium terrain map , corrupts position of graphics

i am using cesium on my gwt project and i am using cesium-terrain-server for terrain. (Not cesium-gwt , devoloping my own code with jsni) My problem : i am creating graphic on terrain (polygon , polyline) , when i navigate on map , graphics are…
hkn
  • 371
  • 1
  • 14
3
votes
1 answer

Create texture from Array THREE.js

I'm working on a terrain generator, but I can't seen to figure out how to do the colors. I want to be able to generate an image that will take up my whole PlaneGeometry. My question is how can I create a single image that will cover the entire…
James McDowell
  • 2,668
  • 1
  • 14
  • 27
3
votes
0 answers

Procedural terrain generation not copying splatmaps

I'm developing a game that is using procedural terrain generation based on chunks using Unity. My terrain has to be splatmapped in runtime, so I've developed an algorithm to do that. I use "chunk" prefab, that is instantiated every time the world…
noisy cat
  • 2,865
  • 5
  • 33
  • 51
3
votes
1 answer

Duplicating Terrain Across Multiple Scenes in Unity 5.1.1

I am trying to duplicate terrain for multiple different scenes and alter the terrain slightly, such as the grass and trees. However, when doing so, making one change to one terrain changes the terrain on another scene. I am aware of why this happens…
Bharathi Sara
  • 73
  • 3
  • 13
3
votes
6 answers

What is the point of heightmaps?

I've been pondering this question awhile now... many 3d engines support advanced terrain rendering using quadtrees, LOD... all the features you expect. But every engine I've seen loads height data from heightmaps... grayscale bitmaps. I just can't…
Jake Petroules
  • 23,472
  • 35
  • 144
  • 225
3
votes
0 answers

Perlin Noise as a Density Function in Dual Contouring (Terrain Generation)

The issue that I'm having is working out how 3D Perlin Noise is used as a density function with the Dual Contouring Algorithm. I've found it difficult to find any Dual Contouring implementations or blogs/write ups that use or discuss the specifics…
3
votes
1 answer

Tiled Terrain Generation with Perlin Noise - Java

I'm currently generating 2d Perlin noise to a 2d array and (after interpolation) rendering the results held as a height map (essentially array[x][z] = y). This is fine for one array, but not for tile loading based on the camera position, and I'm…
3
votes
1 answer

OpenGL glVertexPointer returning 1281 - Can't figure out why

I have created a class to load Terrain points from a heightmap file; but drawing them causes a crash. I have narrowed down the error to the glVertexPointer() function which returns 1281 (invalid value I am led to believe). I have been through the…
jProg2015
  • 1,098
  • 10
  • 40
3
votes
0 answers

three.js - stuck on shaders

This is my first post here; please excuse me if it seems like I'm lost, because I am. I'm working on implementing a large terrain in WebGL and three.js using a heightmap. I can do everything I want to (so far) with a regular PlaneGeometry - setting…
icannotfly
  • 31
  • 1