Questions tagged [unity3d-terrain]
56 questions
1
vote
0 answers
Terrain's Edges Matching
I load some terrains from my asset bundle, but their edges are not matched together.
I recognize when I edit the terrain in Unity Editor, the problem is solved because the terrains are in the same terrain group (see it here).
So my question is: Can…

LuuSang
- 141
- 1
- 7
1
vote
0 answers
How to create a large terrain with tile-level properties?
I need to create a 3D large terrain (say 2000x2000) where I need to track properties of the terrain surface at 1x1 resolution. For example, I want to keep track of how much grass or stones is in 1x1 area, which may change as game progresses…

Dilum Bandara
- 31
- 4
1
vote
3 answers
Cube Falling through the terrain - Unity3D
I know there are a lot of questions and answers about things falling through Terrain. I did look through them but I think this one I am having is different to all the others. I am using Unity version 2019.4.15f1.
Basically, I got a cube and a…

Xenos
- 73
- 2
- 11
1
vote
1 answer
Unity Raycast doesn't hit flat terrain
I started to learn about Unity, and I have a problem with the Raycasting. So I have this code
if(Physics.Raycast(cam.position,cam.forward,out hit,100f,layer)){
Debug.Log(hit.point);
if(hit.transform!=this.transform){
…

Nagy Márk
- 11
- 2
1
vote
1 answer
In Unity can I modify at runtime the mesh of a terrain created using the terrain editing tools so that I can 'dig' a hole?
I am new to Unity and would like to be able to emulate the idea of 'digging' a hole in the 'earth' with a spade, at runtime and have the terrain slightly ahead of my camera lower slightly, then move that dug 'earth' into a pile somewhere next to the…

RenegadeAndy
- 5,440
- 18
- 70
- 130
1
vote
1 answer
Unity terrains and pivot points rotation problems
I'm trying to make a semi-procedural generated map on unity for a game I'm developing. In the game, square platforms are spawned in every direction when the player moves towards them (North, South, East, West, NWest, NEast, SWest, SEast).
These…

Weedosaurus
- 140
- 8
1
vote
1 answer
Terrain tree instances cannot be set correctly
Im currently experimenting with Terrain trees but im stuck at manipulating their position. The following script as far as i know should work, it also transforms the position into local terrain coordinates yet nothing happens.
private void…

MayerJ
- 21
- 4
1
vote
1 answer
What's the best way to save terraindata to file in Runtime?
My game lets the user modify the terrain at runtime, but now I need to save said terrain. I've tried to directly save the terrain's heightmap to a file, but this takes almost up to two minutes to write for this 513x513 heightmap.
What would be a…

Uri
- 25
- 1
- 7
1
vote
1 answer
Set terrain to specific heights during runtime?
Currently the terrain under the object the script is on, the terrain will go to the max height. Can i somehow have a variable to set it to a specified height?
I didn't try too much, because i don't know how this works all too good..
using…

JessaTehCrow
- 21
- 1
- 6
0
votes
0 answers
Trying to instantiate batches of flower on a terrain in unity
So, I have a terrain and I'm trying to add little batches of flowers all over my terrain I wrote this code but when I launch my game it loads to infinity can you help me?
This is the part of my code that instantiate the flowers when I remove it the…

kayardurdass
- 1
- 1
0
votes
1 answer
How accurate Terrains are created in unity using height-map of actual location?
I'm creating a terrain in Unity using Terrain Toolbox with the help of a height-map of real locations downloaded from various tools available online. I want to know how accurately the depth and height of actual locations this tool can generate such…

Shhotu010
- 11
- 1
0
votes
1 answer
HDRP Terrain Missing in VR After Build
I'm currently working on a VR project in Unity HDRP which can be played in Oculus Quest 2. I have multiple scenes and one of the scenes has a map which is from Unity's free assets.
Here's the link to the…

Nick MC
- 1
- 3
0
votes
0 answers
Trees not being rendered on terrain, after Terrain tile is moved
I am creating open-world scene with terrain tiles. Currently here are 9 Terrain tiles, which are repositioned via setting GameObject.transform.position to keep player character in the center of the terrain.
However, when tile is moved, some tree…

Moridio
- 1
- 1
0
votes
1 answer
Terrain tool baking light unity HDRP UV problem
I'm trying to bake my lights, but my terrain isn't displaying the baking as it should. The baking is working well, as you can see on my lightmap, but the terrain is displaying the entire map instead of just the part where it's baked. Is there any…

Larbi
- 1
- 1
0
votes
1 answer
Is there any way to fix Terrain in Unity3d?
Terrain doesn't have a texture and can't edit it's height
Terrain must look as an untextured object, but instead it looks like that:
screenshot

Rocketmike
- 3
- 2