Questions tagged [heightmap]
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.
140 questions
0
votes
1
answer
126
views
How do I get a 3D collision with a Heightmap in Raylib?
I'm presently trying to do a sorta Starfox clone with Raylib, using the heightmap example here: https://www.raylib.com/examples/models/loader.html?name=models_heightmap
In order to handle collision in ...
0
votes
1
answer
105
views
How to make a texture glide in the terrain slope direction
I would like to make a water texture glide on the terrain (heightmap), in the direction of the slope of the terrain, to make a flowing water effect.
In the fragment shader used to draw the terrain, I ...
0
votes
0
answers
273
views
Height gradient generation from height map,using compute shader has weird artifacts
I am trying to generate the height gradient (the slope) for a heightmap of mine using a compute shader in Unity, and the result has weird ringing artifacts and I completely lost what could be wrong. I ...
3
votes
1
answer
324
views
Is it possible to use a pre-existing texture buffer containing vertex data to initialise a vertex buffer for rendering in OpenGL v4.6?
I'm generating a heightmap in a compute shader in OpenGL v4.6 and storing it to a texture.
Lets say I actually store the full vertex data in that texture instead of just the height, which is a trivial ...
0
votes
2
answers
164
views
How should I implement a terrain raise/lower brush? [closed]
I am trying to make an terrain editor. The terrain is described by a grayscale height map.
When I click at somewhere in the terrain map with the brush, the terrain should raise or lower about that ...
1
vote
1
answer
185
views
How to fix diamond artefacts in diamond square algorithm?
I'm trying to implement the Diamond Square Algorithm. In order to do this I'm following this tutorial: Diamond Square | Procedural Generation | Game Development Tutorial
I store the height values into ...
0
votes
0
answers
341
views
How can I prevent height map artifacting when wrapping a texture around a sphere?
So, I have been on a bit of a journey wrapping a texture around a sphere. So, if you are reading this looking for spherical texture wrapping solutions, I would suggest checking out my last post as ...
0
votes
0
answers
464
views
Python Generating a Shadowmap from a Heightmap
I've recently been experimenting with Python and PIL to generate heightmap images using simplex noise. The generated heightmaps are simply 2D numPy arrays with height values ranging from 0-1. I ...
0
votes
1
answer
270
views
Quadtree UV mapping texture
I need help coming up with dynamic uv values (general formula) so that my texture looks continuous through all levels of my quadtree. level 0-1 works perfectly, level 1 subdivision looks great. but ...
0
votes
1
answer
564
views
Perlin noise terrain generation around given road mesh
I am generating terrain around a route. The route already exists. I am using the Perlin Noise function implemented in Unity to generate terrain tiles that merge seamlessly.
I generate the terrain ...
0
votes
1
answer
581
views
How to get height from a mesh
I have a terrain which is a mesh. Given the x and z coordinates in which a character is placed, I would like a function that ...
0
votes
1
answer
2k
views
find one meter to scale in earth heightmap
I have a heightmap that scales from 0 to 255. the map is only for elevation (discluding water and ice) what would be the appropriate way to calculate the scale of one meter? heightmap below
1
vote
1
answer
1k
views
Deriving shadow position from a 2D heightmap
I have a 2D heightmap with discrete values. Based on these values they should cast a fixed position shadow (constant angle respective to the "sun"). I can figure out how to cast it on a flat ...
0
votes
0
answers
252
views
How to use the Moon Trek API to make grayscale heightmaps?
I have a game project where the player will explore the moon's surface.
For the terrain I thought I could use this particular image height-map, but it is so massive that my computer can not handle it. ...
1
vote
1
answer
450
views
Collision Resolution for Height Maps
GameDev StackExchange!
I've written height map collision detection into my game, but I've been struggling on how to get the resolution step to work well with player movement. (This is in 3D, by the ...