Closed Silentor closed 5 years ago
Implemented Block mode visualization
Implemented funny mesh generation for objects with blockmap ("map objects"). I want to use map objects to enrich main terrain with overhangs.
Todo: more accurate align with main heightmap. Some blocks of map object need to be marked as coincide blocks for seamless transition from/to main heightmap.
The next step - good-looking blending of main and object heightmaps
Ok, now map object snaps for main map blocks. Still need calculate common normals and resolve z-fight (need to discard occluded main map blocks from meshing)
Visualization in Block mode is very simple - just rectangular blocks, from base height to topmost height. Visualization in Terrain mode is a more interesting - top mesh like a terrain, bottom mesh - like a flipped terrain, sides - like a Block mode.