arx-tools / arx-level-generator

A tool for creating Arx Fatalis maps
MIT License
6 stars 0 forks source link

triangulate any n-gons #21

Open meszaros-lajos-gyorgy opened 3 weeks ago

meszaros-lajos-gyorgy commented 3 weeks ago

Arx can only handle triangles and quads, more complex planes need to be sliced up into smaller triangles. Should be done on threejs level.

Fan triangulation is a no go, because Arx uses vertex lighting, which focuses lighting information into the tips of the triangles. Something more evenly distributed is needed. image

meszaros-lajos-gyorgy commented 3 weeks ago

https://lindenreidblog.com/2017/12/03/simple-mesh-tessellation-triangulation-tutorial/