Questions tagged [terrain]

Used to describe the physical geography of a location. This can include elevation, slope and orientation of features.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

Capping neighbour height difference on heightmap?

I am generating a heightmap with some basic perlin noise but I need to cap the differences between each neighbouring value. A cardinal neighbour can only be ...
1
vote
0answers
40 views

Unity Seamless Terrain

I am programmatically generating terrain using unity's terrain object and assigning height maps to it via the terrainData, the problem is that there are seams even when using the GroupingId(which is ...
0
votes
0answers
46 views

Least expensive way to build a forest in Unity3D?

I'm a programmer with some experience in Unity. My objective is to make a game (or maybe just a virtual space you can walk around in First Person perspective) featuring a forest and to make it look as ...
5
votes
2answers
107 views

Mapping noise to sphere surface

I'm attempting to create a sphere with terrain (aka planet). I managed to procedurally create an icosahedron, and I am able to subdivide it (yay), but now I'm stuck on terrain. My current idea was to ...
0
votes
0answers
32 views

LWJGL 3 - problem with flickering when rendering terrain with colors

For while now I m trying to built a terrain generator for my game engine and again I'm stuck with problem. I'm trying to generate a terrain using colors, so no textures. In short my problem is ...
0
votes
1answer
77 views

How can I destroy trees when placing a building in an RTS?

I am developing RTS game. When I build buildings on the Terrain, any trees that were in that location end up intersecting with the building. I want to remove all trees from the building's footprint ...
28
votes
6answers
6k views

Procedurally generate regions on island

I currently have islands that look like this: And I want to procedurally subdivide it into regions, like this: What algorithm does what I'm looking for? Do you have suggestions on how to create ...
0
votes
1answer
84 views

How can I get old Minecraft style terrain biome selection?

I'm using this post as a reference for what I'm doing. The real thing of interest is this: As you can see, this is a Whittaker diagram, with temperature and rain considerations. So would this be ...
5
votes
1answer
291 views

Procedurally generating non tile based top down 2d game worlds

I’ve been fascinated by procedural generation for over two years now. I have played around with many types of noise generation and even wrote some myself. I’ve been looking into water erosion and ...
2
votes
2answers
64 views

Midpoint displacement generating unsatisfactory terrain

Following this lesson for implementing mid-point displacement algorithm for terrain generation. I aim at generating a wavefront(obj) file of the terrain I have an array of dimension (2^n + 1) x (2^n +...
0
votes
0answers
47 views

Unity Terrain Tree tool - couldn't be instanced because the prefab contains no valid mesh renderer

I have a Prefab I have made which is the Obj file dragged and created from there. When I add it to the Terrain Tree tool I get the error: The tree Fir_Tree_ChristmasGreen Variant couldn't be ...
0
votes
0answers
122 views

Voxel terrain generation performance problems

I am trying to create a minecraft clone to practice some stuff in Unity including Raycasting, terrain generation and player controlls. Terrain is generating without any problem with a perlinNoise. ...
0
votes
1answer
73 views

Performance of delta force-esque voxel terrain

I've been reading about voxel terrain lately and often see people asserting that it will absolutely kill performance. What I don't understand is how games like Delta Force managed to have smooth ...
1
vote
3answers
97 views

how do I tile this generated terrain infinitely around the player?

i made a script that instantiates cubes with for loops and perlin noise. is there any way i can tile this infinitely around the player? here is the script for the generation of one tile ...
1
vote
1answer
195 views

Diamond Square Algorithm - How to fix horrible diamond shaped artefacts and spikes?

I was attempting to follow this article explaining the implementation of a wrapping version of the diamond square algorithm. I tried running it with dimensions of 128x128 and a "feature size" of 16, ...
3
votes
2answers
223 views

Procedural terrain generation is very slow

I've been trying to create procedural generated 2d terrain (similar to a game like Terraria) using Simplex noise. I was able to get the noise function working, and I set up a grid of 16 by 16 tiles ...
0
votes
2answers
96 views

How to avoid the cutoff of a Sprite when overlapping in a terrain?

I have a scene where I have a terrain as a PlaneGeometry. And I'm trying to locate a building on it as Sprite. But I'm not able to put that building/sprite centered on the terrain without getting a ...
0
votes
0answers
91 views

XNA 4.0 C# How to draw cube with the index method

EDIT NOTE: I was trying to impliment indexing to my code instead of instancing. I left the indexing method because in my case, I don't need to use it. Preview Untill now I have drawed my cube with ...
0
votes
1answer
58 views

3d game terrain creation approach

I want to create a terrain/world map for my 3d game. I want a huge map. For example, ill make it in Blender or generate from a heightmap. Then I plan to divide it in chunks so I can load/unload and ...
1
vote
0answers
68 views

Unity Shader: Make water on terrain transparent without fading

I want to create a shader for a terrain to make the water fully transparent but not invisible or faded. In this example I would want the purple square to be seen through water but not through the ...
0
votes
0answers
127 views

Unity3d getting terrain height

I am making an RTS game in unity like Total War games. As for rendering I am using Graphics draw mesh instanced method and after culling a I can easily render massive amount of soldiers on battlefield ...
2
votes
1answer
127 views

Workflow for creating spherical heightmaps

I'm wondering how I can create a spherical heightmap. In my ideal workflow, you'd see a 3D sphere that you can edit using procedural terrain techniques (like World Creator) and that spherical terrain ...
6
votes
1answer
373 views

How do I store destructible terrain that characters can walk on?

I'm trying to make a 2d game like Worms (in JS, if it's important). I found 2 possible ways of implementing destructible terrain: Bitmap. Store every pixel in a huge 2-dimensional array Represent the ...
1
vote
0answers
51 views

How can I save a local player modification into a procedurally generated terrain density octree?

So I have recently been researching how to implement DC for procedural terrain. I originally planned to use a 3D grid that just stated if the point is solid or not. I have noticed that most other ...
0
votes
0answers
274 views

Unity Terrain Grass/Detail distance. Draw distance is set to maximum but grass seems to magically appear ingame, what did i do wrong?

Hello all I am trying to learn more about using the Terrain editor in Unity. I want to add grass billboard style. It looks quite good up close, but it seems you can only set the draw distance to 250 ...
0
votes
1answer
456 views

How can I make a gradual slope with Unity Terrain tool?

As the question title states, I am trying to make a gradual slope in Unity Terrain. I want it to be many 100's metres long for a golf course and it will slope in a few directions hopefully in places. ...
0
votes
0answers
135 views

Creating Terrain of Golf Course in Unity? (use Unity Terrain or 3d software)

Hi all I wanted to create some simple, but pretty, golf courses for a Unity game. I've not found much success with the built-in terrain maker as the painting of textures is not sharp edges). Is it ...
1
vote
0answers
73 views

Is Quadtree Terrain Decimation applicable today?

It all started from that page. https://www.gamasutra.com/view/feature/131841/continuous_lod_terrain_meshing_.php?print=1 I didn't quite got what it was all about, so I've looked at this. https://www....
1
vote
3answers
258 views

SRTM data represented in 3D using Unity Terrain

I am new to using Terrain height maps in Unity. I'm trying to use real-world terrain height data, using sources including: The US Geological Survey (files like N24E054.hgt) Google Maps (SRTM hdr ...
1
vote
1answer
443 views

Terrain collision detection

How should I go about making terrain collision system without hightmap ? What I have tried is building a heightmap from a blender model, but that works only if the vertices are evenly spaced. Mine ...
0
votes
3answers
133 views

Chunked A* Pathfinding Issues

I've run into an issue with A* pathfinding in a chunked world. This is my current setup: The world is designed in Tiled and exported as a .json file. I wrote a little program that converts the .json ...
1
vote
0answers
24 views

Built-in Terrain analogs search: is it worth to use imported 3d-model?

I think 3d-model is better than the built-in terrain-component in Unity when it comes to optimization. But when it comes to texturing terrain made in 3rd party 3d-modeller, how to apply resulting ...
0
votes
1answer
104 views

In a game such as Star Wars Galaxies, Planetside, and Warcraft how would server-side collision/terrain navigation work?

I'm trying to learn some advanced topics in multiplayer networking for fun and education, specifically how server-side collision/terrain navigation works in MMOs and/or any online game. Personally, I ...
0
votes
1answer
336 views

Directional light shadow on terrain

When player is walking on terrrain, around him Unity is rendering shadow coming from directional light. But after some radius in the distance, shadows are not rendered. Only when player walks close ...
1
vote
0answers
186 views

How do I create a HeightField in pybullet?

I've been looking for documentation on PyBullet, the python implementation of Bullet, but I haven't yet found a way to implement the btHeightfieldTerrainShape collision object, which I need to make, ...
1
vote
0answers
212 views

How can I make an infinte terrain with object pooling in Unity?

I am currently making a 3D endless runner game in unity in C#. I now need to make the platform(3D Tiles) infinite but I don't know how. I already did some research but I don't find the right tutorial. ...
2
votes
1answer
73 views

Working in large play-area maps, what are the performance and practical differences between Unreal Terrain and a subdivided OBJ mesh terrain?

I've managed to reliably use SRTM Geotiff Raster Data with some modifications to create decent terrains in unreal, but there is a small problem with how I go about city-building when I'm not using the ...
1
vote
0answers
175 views

How is terrain editing implemented like a sculpt tool?

Some creativity/sandbox games have a terrain editing feature. When thinking of a terrain, I'm thinking of a grid of vertices. The elevation of each vertex is then determined by a heightmap (image). ...
0
votes
1answer
104 views

How can I make the terrain infinte?

I am making a game in Unity 5 in C# and I need to make the terrain infinite. I have tried to make it infinite but it just keeps spawning the terrain too much times and then the game crashes. Does ...
1
vote
0answers
57 views

How to fix this terrain behavior?

EDIT: This is for In game Terraforming, kind of like in life is feudal. https://www.google.com/search?q=life+is+feudal+terraforming&rlz=1C1CHBF_enUS792US792&source=lnms&tbm=isch&sa=X&...
4
votes
1answer
198 views

Effective & Efficient Way to Simulate a Desert

Introduction I hope that this question isn't too broad, my apologies if it is. Anyway, getting to the point, our video game is set in ancient Egypt and, to nobody's surprise I'm sure, Egypt has a lot ...
0
votes
2answers
286 views

Perlin noise terrain: 3 coordinates from one

I am making a game with procedural terrain, like minecraft. I have a perlin noise function which takes one integer and returns a number between zero and one. However, for terrain, I need a single ...
1
vote
0answers
504 views

Large Scale GIS in a AAA-Quality Game Engine? (Unreal, Cryengine, Unity, Etc.)

I am working on a new simulation project that requires large scale, real-world terrain and imagery (GIS). By large scale, I mean that I would like to support databases that cover something on the ...
0
votes
1answer
81 views

What are some ways to make a scene without walls and infinite terrain visually appealing?

My Player Character is standing in the middle on flat infinite terrain. The player can see as far as the farplane of the camera. And there is nothing there which is... boring. I wanted to Plant a ...
2
votes
1answer
488 views

Random 2d terrain algorithm for map generator

I'm new to game development and I need some advice. I'm building a web based 2d random map generator and I wonder which algorithms there are to create such random terrains in a simple matrix as seen ...
0
votes
1answer
49 views

Infinite sidescrolling terrain in Unity

I am trying to create a horizontal line at the center of the screen that goes infinitely. I could make the line short and move it with the camera but the shape of my line actually changes as you ...
1
vote
1answer
335 views

Use heightmaps or direct vertex manipulation for runtime terrain editing in UE4?

I am creating a terrain editor and creator for in our game, in which we should be able to create hills and dales, create different shapes(forms) in the terrain etc. I came up with 2 approaches on ...
1
vote
2answers
251 views

How can I generate a random 2D surface

I'm trying to build an old game (Lander) where you try to land a spaceship on a flat platform. But I have no idea how to generate a random surface. Something like in the picture would be nice. Edit: ...
1
vote
0answers
169 views

2D Sideview Procedural Water Generation

How can I generate water in a procedural 2D sideview landscape? Here's what I currently have: First generate the heightmap of the land Then generate the water, based on the land Here's how I ...
5
votes
2answers
275 views

Scan for water in 2D procedural terrain locale

In my 2D-sideview game, I have certain biomes, each one having a unique sea level, or water height, (depending on the humidity of the biome). The terrain is composed of stacks of blocks, each being a ...