Page 1 of 1

Fciv.net with hexagonal tiles in 3D!

Posted: Sun Oct 09, 2022 9:02 pm
by AndreasR
The development of the hexagonal tiles view for Fciv.net 3D has started now using Three.js!

Please share relevant knowledge about hex rendering in Freeciv and how the hex view should be implemented in Fciv.net.

Cazfi: Do you have ideas about how to implement the hex view? I am in particular interested in hex related code in the Freeciv C server,
and useful code for doing hex rendering and map lookup in code.

Fciv.net 3d: https://fciv.net/
GitHub: https://github.com/fciv-net/fciv-net


Image

Image

Re: Fciv.net with hexagonal tiles in 3D!

Posted: Sun Oct 09, 2022 9:40 pm
by louis94
The tileset code is a mess. Good luck.

Re: Fciv.net with hexagonal tiles in 3D!

Posted: Mon Oct 10, 2022 4:59 am
by AndreasR
louis94 wrote: Sun Oct 09, 2022 9:40 pm The tileset code is a mess. Good luck.
Please provide links to GitHub source code which documents this claim.

Re: Fciv.net with hexagonal tiles in 3D!

Posted: Tue Oct 11, 2022 11:58 am
by louis94
AndreasR wrote: Mon Oct 10, 2022 4:59 am
louis94 wrote: Sun Oct 09, 2022 9:40 pm The tileset code is a mess. Good luck.
Please provide links to GitHub source code which documents this claim.
https://github.com/freeciv/freeciv/blob ... tilespec.c

Re: Fciv.net with hexagonal tiles in 3D!

Posted: Tue Oct 11, 2022 6:27 pm
by AndreasR
I plan on making the 3D hexagonal mode using Three.js, so the C code in tilespec.c isn't so relevant.
Do you have more sources for how to implement the hex mode? Maybe you even want to help me with a prototype? 8-)

Re: Fciv.net with hexagonal tiles in 3D!

Posted: Sun Oct 16, 2022 2:51 pm
by cazfi
AndreasR wrote: Sun Oct 09, 2022 9:02 pmCazfi: Do you have ideas about how to implement the hex view? I am in particular interested in hex related code in the Freeciv C server
I've never had close look at that part of the code. People who have tried to do something with it have complained that it's not easy to comprehend.

Re: Fciv.net with hexagonal tiles in 3D!

Posted: Thu Jan 05, 2023 8:13 pm
by AndreasR
Image

Current progress on the new Hexagonal map tiles rendering support in FCIV.NET

https://github.com/fciv-net/fciv-net

Re: Fciv.net with hexagonal tiles in 3D!

Posted: Mon Jan 16, 2023 6:14 am
by AndreasR
Fciv.net is now live with hexagonal map in 3D!

Image