Fciv.net with hexagonal tiles in 3D!

Web version of freeciv. Please mention the site you're using, if speaking things other than general freeciv-web codebase.
Post Reply
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

Fciv.net with hexagonal tiles in 3D!

Post 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
louis94
Hardened
Posts: 270
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

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

Post by louis94 »

The tileset code is a mess. Good luck.
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

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

Post 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.
louis94
Hardened
Posts: 270
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

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

Post 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
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

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

Post 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-)
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

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

Post 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.
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

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

Post by AndreasR »

Image

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

https://github.com/fciv-net/fciv-net
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

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

Post by AndreasR »

Fciv.net is now live with hexagonal map in 3D!

Image
Post Reply