Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
hex map rendering #447455
12/12/14 22:35
12/12/14 22:35
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline OP
Expert
sivan  Offline OP
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
Hi!

I am currently examining the possibilities of using a hex map for a turn based strategy game. It would have some advantages over a square grid map I use in my RTS system. For conversions I found a good enough source: www.redblobgames.com/grids/hexagons/

The hex terrain height should be run-time deformable. I have 2 ideas:

- build up the map from smaller models containing several hexes, vertices are at hex middle and the 6 corners, and touching vertices of neighbouring models are snapped together (maybe lod, distance clipping, and restricted camera view can help performance);
- make it from a hmp terrain (or a model with similar regular grid), and shift vertices on x or y axis row by row increasingly by ent_g/setvertex (maybe causes terrain chunk errors or bad terrain lod), in this case vertices should be at hex middles (lower vertex resolution possible) and finally the regular grid is distorted into little rhombuses. It seems to be more easily manageable than the previous.

What do you think, is there any better practice with 3dgs to solve it effectively?

Thanks.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: hex map rendering [Re: sivan] #447465
12/13/14 12:22
12/13/14 12:22
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline OP
Expert
sivan  Offline OP
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
okay, nevermind, it would cost too much effort, modifying my existing grid system developed for RTS seems to be a perfect and fast solution. laugh


Free world editor for 3D Gamestudio: MapBuilder Editor

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1