|
Post by carpatia89 on Jan 21, 2016 8:51:15 GMT
|
|
|
Post by khash on Jan 22, 2016 0:42:25 GMT
I think if this is your first heavy encounter with 3d it would be very heavy because coordinates in hex space are not 3d even when they are using 3 coordinates. Image you have shown is done using Honey, but instead of filling "radius" with terrain it fills space with different types. You do not have to use water only outside the radius as it is done at the moment, you can instead using terrain definition editor add another copy of "water" which is not in "border" mode. Also I recommend that you manually type some terrain types for small radius as it will let you learn easier (eg producing flat world and changing something into mountain at position x, y, z, allows you to get familair with coordinate system, check how it is done in examples from CameraComtroller class. One of the commented out examples rebuilds hex which you click with mouse, you can override it to do rebuild and speicified by you position. Its a good start, and I wish you good luck!
|
|
|
Post by carpatia89 on Jan 22, 2016 14:12:16 GMT
Hi Kash! Thanks for your reply. I think nothing is impossible in computer-software world (if we really love the computer science and if we can think analytically.) Before importing honey framework i have already read your documentation about x,y,z coords. in hex world. Last night I tried hard to make my own map until 4:30 a.m. And was able to make with copying generated chunks and changing their x and z axes. At first i go t my rectangular shape then using the map editor and different textures now i have really nice map. I think digging in to the depth provide experience in 3d stuff. I m at the beginning but i will never give up. Thanks.
|
|
|
Post by khash on Jan 22, 2016 15:27:00 GMT
THose who never give up reach the best and reap greatest fruits of their work good luck!
|
|
|
Post by mightyferengi on Mar 20, 2019 3:32:01 GMT
Hey Carpatia89,
Any tips on how to modify Honey Hex to create a rectangular map?
|
|
|
Post by LDiCesare2 on Nov 30, 2019 8:07:19 GMT
Do something like this: for(int i = minX; i < maxX; ++i) for(int j = minY; j < maxY; ++j) { int x = i; int y = j - upperHalf(i); int z = -j - lowerHalf(i); Vector3i v = new Vector3i(x, y, z); hexes.Add(v, GetHexDefinition()); }
|
|
|
Post by evenmov on Jul 15, 2020 8:35:31 GMT
Do something like this: for(int i = minX; i < maxX; ++i) for(int j = minY; j < maxY; ++j) { int x = i; int y = j - upperHalf(i); int z = -j - lowerHalf(i); Vector3i v = new Vector3i(x, y, z); hexes.Add(v, GetHexDefinition()); } worth to try but whats the means of upperHalf
|
|