A raster image which can depict a 3D environment through mapping out the height at every point. Can be thought of as a mechanically consumeable form of topographical map.

learn more… | top users | synonyms

4
votes
3answers
664 views

Heightfield terrain in ASCII games?

Is there a good way to represent variable terrain using heightfields (or heightmaps) in an ASCII game such as a Roguelike? Thanks!
5
votes
1answer
4k views

Generate islands/continents with simplex noise

Managed to get something like this using a simplexnoise port i made from the original javacode to php: Used some tips from other post: Understanding Perlin Noise basically, lowered the frequency ...
2
votes
1answer
526 views

Help me to fine tune my diamond-square algorithm

Check this map i generated: I seeded a sine wave to act as a mountain range. The lower portion of the sine wave looks fine, but the upper side is thin, the algorithm did not do its magic there ...
4
votes
1answer
741 views

Heightmap Physics Optimization/Improvement

I'm working on implementing the physics surrounding a player walking on a heightmap. A heightmap is a grid of points which are evenly spaced on the x and z axes, with varying heights. The physical ...
3
votes
1answer
2k views

Why can't I add a float4 read from a Texture2D.Sample in the Vertex Shader?

These lines work (compile fine): float4 offset = HeightMap.Sample(HeightSampler, input.Texcoord); input.Position.xyzw += float4(0, 1, 0, 0); These do not (any use of offset together with ...
14
votes
3answers
14k views

How can I make huge terrains in Unity?

How can I make extremely huge terrains in Unity? It seems like I can set width and length to large values. But the Heightmap resolution only goes up to 4097 and the Detail resolution only goes up to ...
12
votes
2answers
1k views

Heightmap-based Terrain with a Road

What's the best way to implement a detail feature, like a road, on a heightmap-based terrain? Update: It's a bit hard to see in the image, but the road descends from the top of the quarry to do its ...
4
votes
1answer
490 views

Heightmap generation

I want to implement something like this to create a heightmap: 'Place a group of coordinates evenly across a map, and give them height values within a certain range. Repeatedly create coordinates ...
2
votes
2answers
1k views

Calculating vertex normals on the GPU

I have some height-map sampled on a regular grid stored in an array. Now, I want to use the normals on the sampled vertices for some smoothing algorithm. The way I'm currently doing it is as follows: ...
3
votes
1answer
947 views

Drawing a depth map properly

I want to render a depth map by importing it from a file, then creating an array of vertices and indices, and then displaying it using a basic shader (just apply the view and projection matrices on it ...
4
votes
3answers
4k views

Voxel heightmap terrain editor

I've recently been experimenting with a simple Voxel-based 3d engine (think Minecraft) which uses heightmaps to define terrain in the following format: http://en.wikipedia.org/wiki/Heightmap Does ...
5
votes
2answers
929 views

Arrays for a heightmap tile-based map

I'm making a game that uses a map which have tiles, corners and borders. Here's a graphical representation: I've managed to store tiles and corners in memory but I'm having troubles to get ...
5
votes
4answers
835 views

How would I go about implementing a globe-like “ballish” map?

I am new to 3D development and I have this idea of having the game world like our globe is - a ball. So, there would be no corners in the map and the game is top-down RTS game. I would like the camera ...
2
votes
2answers
925 views

XNA Seeing through heightmap problem

I've recently started learning how to program in 3D with XNA and I've been trying to implement a Terrain3D class(a very simple height map). I've managed to draw a simple terrain, but I'm getting a ...
4
votes
2answers
2k views

Control diamond square algorithm to generate islands/pangea

I generated a height map with the diamond square algorithm. The thing is i do not manage to create islands, this is, restrict the height other than water level range to a certain value in the center ...