Jump to content

Vertices and Indices from ObjectTerrain


photo

Recommended Posts

Hi,

 

I want to know if it is possible to get all vertices and CIndices from ObjectTerrain directly like ObjectStaticMesh or ObjectDynamicMesh? Because of using the flatness parameter the terrain will be simplified and (for my opinion) needs less amount of vertices/indices.

 

The reason for that purpose is that I'm currently integrating a full dynamic navmesh for unigine. Therefore a small amount of vertices/indices means less recalculation for navmesh-chunks and check if triangles are walkable or not.

 

Best regards

Christian

Link to comment

Hello Christian,

 

There's no direct access to terrain's vertices and cindices because of the LOD system. You need to get terrain heights (ObjectTerrain::getHeights method) and build geometry by hands. I think you'll also have to optimize it by yourself and take flatness parameter into account.

Link to comment
×
×
  • Create New...