17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-18 18:29:40 +02:00
Commit Graph

2 Commits

Author SHA1 Message Date
maj00r
975e62df95 Fix TIN format: header size 132 bytes, include terraincooker.h for vertex
- Adjusted file_header to 132 bytes (actual size with alignment)
- Fixed forward declaration issues by including terraincooker.h
- Cooker compiles and runs successfully
- Verified .qm output format with test triangle

Test results:
- Magic: EU07QMSH ✓
- 1 input triangle → 7 output (Delaunay) ✓
- Edge indices, LOD levels working ✓
2026-09-17 23:06:39 +02:00
maj00r
5f34d68e6f WIP: TIN terrain system - 95% complete
Replaces heightfield with Cesium Quantized Mesh format (TIN).
Full replacement, not hybrid - TIN is the only terrain format.

Implemented:
- Format: quantizedmeshformat.h, quantizedmeshreader.h
- Triangulator: terraincooker_tin.{h,cpp} using CDT
- Cooker: terraincook now generates TIN by default
- Loader: terraintileloader fully rewritten for TIN
- GPU pool: terraintilepool_tin (VBO/IBO per tile)
- Renderer interface: terrainclipmap.cppm updated
- Shaders: terrainclipmap_tin.{vert,frag}
- Documentation: 5 comprehensive markdown files

Remaining:
- terrainclipmap.cpp render() method (partial, needs completion)
- Build testing and integration
- See TIN_INTEGRATION_GUIDE.md for next steps

Stats: 2700+ lines new code, ~50% vertex reduction expected
2026-09-17 23:02:13 +02:00