issues
search
Besjan
/
Terrain-Generator
Generate Unity Terrain from DEM / DGM data.
MIT License
10
stars
4
forks
source link
Create Mesh Terrain
#2
Closed
Besjan
closed
4 years ago
Besjan
commented
4 years ago
[ ] For each patch point
[x] Locate relative tile from patch tiles list using point and tile Lon, Lat
[x] Move tile point (tile mesh, point)
[x] Move vertex
[x] Create new mesh from clipboard vertices
[x] Test
https://docs.unity3d.com/ScriptReference/Mesh.MarkDynamic.html
[x] Optimize DGM data Reading #3
[x] Split XYZ data to files containing only heights #6
[ ] If is missing point (left column, bottom row), locate relative tile from tiles with missing points list using point and tile Lon, Lat
[ ] Move tile missing point (tile mesh, point)
[x] Create patch tiles list: List(Tile)
[x] Create tiles for each patch:
[x] For each vertical tile < tile count
[x] For each horizontal tile < tile count
[x] Instantiate tile[ht, vt]
[x] Name tile as coordinates
[x] Position tile
[x] Add tile to patch tiles list
[x] Add top row tiles and right column tiles to tiles with missing points list
[x] Create tile with missing points list: List(Patch)
[x] Convert Lon, Lat to full numbers like points: 123456, 1234567
[x] Patch { Lon, Lat, Tile }
[x] Tile { Lon, Lat, Mesh }
[x] Create tile mesh as prefab:
[x] Pivot at lower left corner
[x] Tile resolution = (patch resolution / tile count) + 1
Besjan
commented
4 years ago
Skip it, can create from terrain data directly
[ ] Move tile missing point (tile mesh, point)
[x] Add top row tiles and right column tiles to tiles with missing points list
[x] Tile { Lon, Lat, Mesh }