Git Product home page Git Product logo

Comments (4)

arash28134 avatar arash28134 commented on June 19, 2024 4

I was having the same issue

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 !

I was having the same issue. that's most likely because your Chunk Width is set to 0 by default. try adjusting your terrain settings

from terraingenerator.

aidan-clyens avatar aidan-clyens commented on June 19, 2024

Hey! In the TerrainMapGenerator editor, could you please save the level file and attach it here? I'd like to see your terrain settings. Thanks!

from terraingenerator.

CyberZ3ro avatar CyberZ3ro commented on June 19, 2024

Having this same issue could you help me?

from terraingenerator.

aidan-clyens avatar aidan-clyens commented on June 19, 2024

I was having the same issue

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 !

I was having the same issue. that's most likely because your Chunk Width is set to 0 by default. try adjusting your terrain settings

This is correct, thanks! I updated the project to not allow setting a chunk width of 0.

from terraingenerator.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.