aidan-clyens / terraingenerator Goto Github PK
View Code? Open in Web Editor NEWA procedural terrain generator for the Unity game engine.
License: GNU General Public License v3.0
A procedural terrain generator for the Unity game engine.
License: GNU General Public License v3.0
I got the following error when generating the terrain:
IndexOutOfRangeException: Index was outside the bounds of the array.
ForestGenerator.Generate (System.Single[,] heightMap, UnityEngine.Vector3[] normals, System.Single waterLevel, System.Int32 seed) (at Assets/TerrainGenerator/MgeeGames/ProceduralTerrainGenerator/Scripts/ForestGenerator.cs:86)
TerrainMapGenerator.CreateForest (System.Single[,] heightMap, UnityEngine.Vector3[] terrainNormals) (at Assets/TerrainGenerator/MgeeGames/ProceduralTerrainGenerator/Scripts/TerrainMapGenerator.cs:270)
TerrainMapGenerator.Update () (at Assets/TerrainGenerator/MgeeGames/ProceduralTerrainGenerator/Scripts/TerrainMapGenerator.cs:151)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <33518779906b403ba9f96eccba6a861b>:0)
Object Reference not set to an instance of an object.
TerrainMapGenerator.OnValidate () (at ///TerrainMapGenerator.cs:115)
About the installation process, "git clone [email protected]:aidan-clyens/TerrainGenerator.git" is wrong and it gives the "fatal: Could not read from remote repository." error. I believe it should be "git clone https://github.com/aidan-clyens/TerrainGenerator"
The full error message is:
Cloning into 'TerrainGenerator'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Hi,
Thank you for sahring this stuff !
I got this error when i try to generate the terrain :
Failed setting triangles. Some indices are referencing out of bounds vertices. IndexCount: 6, VertexCount: 0 UnityEngine.Mesh:set_triangles (int[]) MeshData:CreateMesh () (at Assets/Snow Scene/ProceduralTerrainGenerator/ProceduralTerrainGenerator/MeshGenerator.cs:99) TerrainMapGenerator:CreateTerrain (single[,]) (at Assets/Snow Scene/ProceduralTerrainGenerator/ProceduralTerrainGenerator/TerrainMapGenerator.cs:167) TerrainMapGenerator:CreateTerrainChunk (UnityEngine.Vector2,bool) (at Assets/Snow Scene/ProceduralTerrainGenerator/ProceduralTerrainGenerator/TerrainMapGenerator.cs:138) TerrainMapGenerator:CreateChunkGrid (bool) (at Assets/Snow Scene/ProceduralTerrainGenerator/ProceduralTerrainGenerator/TerrainMapGenerator.cs:118) TerrainMapGenerator:Generate (bool) (at Assets/Snow Scene/ProceduralTerrainGenerator/ProceduralTerrainGenerator/TerrainMapGenerator.cs:88) TerrainMapEditor:OnInspectorGUI () (at Assets/Snow Scene/ProceduralTerrainGenerator/ProceduralTerrainGenerator/Editor/TerrainMapEditor.cs:37) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Do you have an idea about it ?
Thanks and have a good christmas day !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.