-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hex mode in Freeciv-web #612
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
![image](https://user-images.githubusercontent.com/41650711/216782635-b7dd752c-80bf-42a2-b27b-2f9aa95f6897.png)
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:
![image](https://user-images.githubusercontent.com/41650711/216782467-68c47c37-986d-41b8-9a8a-cca28ec7f80f.png)
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/webgl/maputil.js#L24
https://github.com/fciv-net/fciv-net/blob/main/freeciv-web/src/main/webapp/javascript/hex.js
The text was updated successfully, but these errors were encountered: