Questions tagged [unity3d-terrain]

56 questions
0
votes
1 answer

Blender Cube to Unity 3D Terrain

I made a floating Island in blender and exported it as a FBX file to unity. Is there a way to terrain paint grass, trees etc.. onto the island inside of Unity 3D? I used a cube to make the island in blender and probably wouldn't like to use a plane…
user3277468
  • 141
  • 2
  • 11
0
votes
1 answer

Unity Terrain doesn't always return hit on flat parts of the mesh

I have a simple setup with a terrain, a baked navmesh, and a capsule with a navmesh Agent, and the script below. What's supposed to happen is the user clicks a spot of the terrain, and the capsule navigates there around the obstacles. Everything…
0
votes
1 answer

3D Terrain goes black in Unity, How can I fix this?

My problem is, that if I try to use a brush in unity I move the cursor over the terrain, it turns black. I tried: Turning off auto generate lightning, re-loading the project. Can you help me please, how can I fix this? Data: OS: OS X 10.11.6 …
0
votes
1 answer

how to set the SetAlphamaps to one certain texture?

i want to change the texture of my terrain with certain texture. i got confuse to set the splatmapdata, anyone can help me out?? private void ChangeTexture(Vector3 WorldPos) { print ("changeTexture"); int mapX = (int)(((WorldPos.x -…
irwnsyh
  • 23
  • 7
0
votes
0 answers

Got black color over terrain when I builded for Android on Unity

I upgraded my project from Unity 2017 to 2019 but when I build again the game for Android I got black color over terrain. I didn't get this problem in Unity 2017. Things I tried As I read in unity forum I changed Skybox to Color in lighting but…
DINA TAKLIT
  • 7,074
  • 10
  • 69
  • 74
0
votes
1 answer

Why terrainData.heightmapTexture float value range is 0f-0.5f and not 0f-1f?

While rendering to terrainData.heightmapTexture I discovered that writing 1.0f to pixels doesn't result in terrain of maximum height (as specified in "Terrain Height" inspector field) but 0.5 does (1.0 is twice that and not available for manual…
Andrew Łukasik
  • 1,454
  • 12
  • 19
0
votes
1 answer

Unity3d - Player flips after a specific chunk

So, I've made a very simple game, which all you basically do is glide through the terrain and avoid the obstacles (I haven't implemented obstacles yet). And I've encountered a very strange problem. When ever I hit the fifth chunk, the player starts…
Marc2001
  • 281
  • 1
  • 3
  • 12
0
votes
2 answers

Hide trees when hiding the player

I have created a 3D game in unity with terrain and some models, where the player can go anywhere he wants and the camera follows him. my problem is when the user is behind a tree, how do I make the tree transparent? I have already done it to the…
SagiZiv
  • 932
  • 1
  • 16
  • 38
-1
votes
1 answer

Errors when upgrading Vuforia in Unity from version 9 to version 10

The type or namespace name 'SmartTerrain' could not be found (are you missing a using directive or an assembly reference?) The type or namespace name 'PositionalDeviceTracker' could not be found (are you missing a using directive or an assembly…
-1
votes
1 answer

How to recognize some parts of the terrain?

I created an island and want to check when I reach the island. How can I add a tag to the island? The island built from a set height of the terrain. I added a picture for better understanding:
noa
  • 1
  • 4
-2
votes
1 answer

How do you Calculate with floats in c#

I want to programm a terrain generator in Unity and already have some working code for a Perlin Noise Terrain Generator. Im currently using Unity (using c#) and i cant figure out how to seperate the generation of the terrain depth(z)(the height of…
1 2 3
4