Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [terrain]

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

2
votes
2answers
50 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
20 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
51 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
42 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
86 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
131 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
186 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
79 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
57 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
73 views

C# 2D Perlin Noise Heightmap By Seed

I need a function of 'Perlin Noise' in this format: public int PerlinNoise_maxY(int seed, int x, int z) { // ... } The function gets Seed, X cordinent and a ...
0
votes
1answer
52 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
37 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
62 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
81 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
276 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
47 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
159 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
249 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
100 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
56 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
176 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
256 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
115 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
21 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
85 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
172 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
votes
0answers
265 views

Campaign Maps like Total War

How do I make a map similar to the campaign maps of the total war series? Here is another game with a similar concept: Using Unity I tried creating a massive terrain and zooming out, and scaling ...
1
vote
0answers
125 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
149 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
69 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
150 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
103 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
56 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
186 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
230 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 ...
0
votes
0answers
52 views

flow map for water flowing given a terrain

I have a terrain ( in the form of mesh/element), and I want to indicate how the water flows in the terrain, subjected to gravity force and the terrain condition ( of course). A crude way of doing ...
1
vote
0answers
427 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
75 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
383 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
48 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
233 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
226 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
160 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
262 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 ...
5
votes
2answers
557 views

Unity: Create large Terrain with accurate raycast detection?

I'm not using the Unity Terrain because it lacks certain features. Amongst them, you cannot tile them: You cannot create concave walls or make holes in it: No custom textures, no detail textures, ...
2
votes
1answer
317 views

How can I generate terrain like SimCity 3000 does?

Are there any tips anywhere on generating terrain such as is used in SimCity 3000? I have used World Machine before, but I want something low-fidelity. I think there are only a few allowed vertical "...
6
votes
3answers
657 views

Generate cave like Terrain in 2D

I want to create 2D Terrain randomly. It should look like a connected Cave (Shown below). What is the best method or Algorithm to get similar results? The important part is the open area(green) and ...
2
votes
1answer
225 views

How to add prefabs to the terrain and still retain scripts, colliders, etc.?

I have been working on an old DOS-styled game, and I began work on the trees for my terrain. Here is a group of them: They, right now, are simply objects in the scene. This works, but is very ...
1
vote
0answers
75 views

How can I use height patches to generate terrain such as what was used to create Abzu?

Last year's GDC was pretty inspirational for me and Matt's talk about GiantSquid's landscape creating workflow was the best of all. If you haven't seen it I highly recommend you to check it out. I'm ...
3
votes
1answer
158 views

Algorithm for “mipmapping” terrain vertex heights and normals

I am creating an engine in opengl. As the distance from the player increases, the width and height of the tiles increase by factors of 2. How can I do this? I am currently just averaging, but I miss ...