Hex mode in Freeciv-web
andreasrosdal opened this issue · 0 comments
Hi, I am reaching out to Freeciv-web @cazfi to get help improving the hexagonal map view mode, which will benefit both Freeciv-web and Fciv.net.
This is what the hexagonal map view on www.Fciv.net looks like:
So the current problem with the hexagonal view mode in Fciv.net is that the objects are sometimes positioned incorrectly in relation to the underlying hexagonal map tiles.
This is what the problem looks like:
Source code of Fciv.net:
https://github.com/fciv-net/fciv-net
Relevant source code parts:
https://github.com/fciv-net/fciv-net/blob/main/freeciv-web/src/main/webapp/javascript/webgl/shaders/terrain_fragment_shader.glsl#L552
https://github.com/fciv-net/fciv-net/blob/main/freeciv-web/src/main/webapp/javascript/hex.js