Skip to content
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

Closed
andreasrosdal opened this issue Feb 4, 2023 · 0 comments
Closed

Hex mode in Freeciv-web #612

andreasrosdal opened this issue Feb 4, 2023 · 0 comments

Comments

@andreasrosdal
Copy link
Contributor

andreasrosdal commented Feb 4, 2023

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant