tag:blogger.com,1999:blog-923082020090979517.post5216127610412629335..comments2016-12-02T07:57:10.180-08:00Comments on gd reflections: Hexagonal grid mathRuslan Shestopalyukhttp://www.blogger.com/profile/03375859473751956887noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-923082020090979517.post-13507136246197475732016-01-03T00:25:01.400-08:002016-01-03T00:25:01.400-08:00Congratulations, Ruslan!
Your article was the clea...Congratulations, Ruslan!<br />Your article was the clearest among my collection dealing with hexagonal grids.<br />Many thanks for it.<br />Ferenc Nagy franknagy.atw.huUnknownhttp://www.blogger.com/profile/02082090475052423322noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-83677671882903671212015-01-06T01:06:40.130-08:002015-01-06T01:06:40.130-08:00How nice and informative post here. I will share t...How nice and informative post here. I will share this topic with my friends and i hope they will also like and share it more and more. Visit <a href="http://best-college-essay.com/" rel="nofollow">best-college-essay.com</a> for best essays.Steven Whitenerhttp://www.blogger.com/profile/03155916209715540409noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-23703694118483234752013-05-26T05:48:05.968-07:002013-05-26T05:48:05.968-07:00Thanks for sharing your amazing blog. I finished ...Thanks for sharing your amazing blog. I finished this right now and thinking that it is the perfect blog I was looking for . Never stop writing, and keep up such an informative blogs. Best wishes for you.<br /><br /><a href="http://mosaictiledirect.net/mosaic-tiles-1/onyx-mosaic-tiles/2-in-x-2-in-honey-polished-hexagon-pattern-mesh-mounted-onyx-mosaic-tiles-4-in-x-4-in-sample-5-00-free-shipping.html/" rel="nofollow">Hexagonal floor Tile</a>sordar joyhttp://www.blogger.com/profile/14065953403625312396noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-75222657647818764452012-07-03T23:10:15.671-07:002012-07-03T23:10:15.671-07:00Begads there are some intelligent people out there...Begads there are some intelligent people out there in the interwebs.Unknownhttp://www.blogger.com/profile/02771661191065229931noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-30280154681007726042012-05-01T02:07:43.093-07:002012-05-01T02:07:43.093-07:00Thank you very much for your post. Your problem ap...Thank you very much for your post. Your problem approach is so simple and so elegant, I was excited. Help me a lot.Magic2khttp://www.blogger.com/profile/14709174127368305959noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-18981202412208725542012-01-10T11:21:52.222-08:002012-01-10T11:21:52.222-08:00alexander, thanks for pointing that out!
A rathe...alexander, thanks for pointing that out! <br /><br />A rather obvious problem lies in the sentence: <br /><br />"Taking into account that for odd columns i%2 (remainder from division of i by 2) equals 1..."<br /><br />...well, for negative i it does not equal 1, it equals -1 :)<br /><br />It would be more correct to use |i%2| (abs) in this case.<br /><br />I confess of having cut the corner and not paying much attention to the negative values in the first place. <br /><br />But of course there is no reason for formulas not to be correct for negative values as well.<br /><br />Thanks again.ruslanshttp://www.blogger.com/profile/03375859473751956887noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-53345123098262434592012-01-10T01:41:37.290-08:002012-01-10T01:41:37.290-08:00great article.
the algorithm to find a hex from p...great article.<br /><br />the algorithm to find a hex from point seems to have problems with negative coords, but i can't figure out why.<br /><br />any idea?alexanderhttp://www.blogger.com/profile/05191895935788704175noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-20714229849537773162011-03-11T12:28:22.308-08:002011-03-11T12:28:22.308-08:00Ruurd,
Thanks a bunch!
I've corrected the fo...Ruurd,<br /><br />Thanks a bunch! <br />I've corrected the formulas.ruslanshttp://www.blogger.com/profile/03375859473751956887noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-6207707887280659202011-03-09T05:59:17.672-08:002011-03-09T05:59:17.672-08:00Great tutorial. Saved me a lot of headache!
Just ...Great tutorial. Saved me a lot of headache!<br /><br />Just some minor fault I found in your math variable names:<br /><br />image: fromcell_1.png, should be "Yts = y - <b>it</b>%2 *H/2"<br />image: fromcell_3.png, should be "xt > R * abs(0.5 - <b>yt</b> / H)"Ruurdhttp://www.blogger.com/profile/01875213048046540275noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-66316870772164061942011-03-03T07:45:18.815-08:002011-03-03T07:45:18.815-08:00Thank you for linking to my hexagonal LightsOut we...Thank you for linking to my hexagonal LightsOut web page.Tawanda Gwenahttp://www.blogger.com/profile/11692070935845934895noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-78668307449154144812011-02-16T06:49:31.797-08:002011-02-16T06:49:31.797-08:00This comment has been removed by the author.Winchellhttp://www.blogger.com/profile/13736427550100791059noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-47728711314717687692011-02-16T06:48:00.868-08:002011-02-16T06:48:00.868-08:00I personally found the weird coordinate system des...I personally found the weird coordinate system described here<br />http://www-cs-students.stanford.edu/~amitp/Articles/HexLOS.html <br />to be useful when you are dealing with things like "what is the distance in hexes between hex A and hex B", and "given a line between hex A and hex B, what hexes does the line intersect."Winchellhttp://www.blogger.com/profile/13736427550100791059noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-76231641232302960532011-02-15T16:05:14.187-08:002011-02-15T16:05:14.187-08:00Barry, that was indeed the case, name servers for ...Barry, that was indeed the case, name servers for ruslans.com were messed up.<br /><br />Thanks for your help, really appreciate it.ruslanshttp://www.blogger.com/profile/03375859473751956887noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-36452057358471456372011-02-15T14:22:51.737-08:002011-02-15T14:22:51.737-08:00Your DNS is misconfigured: http://www.dnsstuff.com...Your DNS is misconfigured: http://www.dnsstuff.com/tools/traversal/?domain=blog.ruslans.com&type=A&token=11a0aba66da33b3d25d2b49601999019<br /><br />OpenDNS is giving NXDOMAIN for blog.ruslans.com from several locations; you can check from http://www.opendns.com/support/cache/ .<br /><br />I was only able to post this comment via a proxy.Barry Kellyhttp://www.blogger.com/profile/10559947643606684495noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-81673670932972512012011-02-15T11:49:27.432-08:002011-02-15T11:49:27.432-08:00Artur,
Thanks, I find the "hexagonal grid as...Artur,<br /><br />Thanks, I find the "hexagonal grid as an isometric projection of a cubic grid" approach to be really elegant (even though somewhat harder to wrap one's head around).<br /><br />Reminds of the homogeneous coordinates idea... definitely is worth looking into.ruslanshttp://www.blogger.com/profile/03375859473751956887noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-3109429499976782532011-02-15T11:45:15.803-08:002011-02-15T11:45:15.803-08:00Winchell,
Thanks for the link, quite a nice gathe...Winchell,<br /><br />Thanks for the link, quite a nice gathering of knowledge there.ruslanshttp://www.blogger.com/profile/03375859473751956887noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-85424098628490109042011-02-15T11:42:56.469-08:002011-02-15T11:42:56.469-08:00Ruudjah,
Sure, I'd be happy if you do!
Good ...Ruudjah,<br /><br />Sure, I'd be happy if you do!<br /><br />Good luck with the project, it looks very interesting.ruslanshttp://www.blogger.com/profile/03375859473751956887noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-30996419073172939392011-02-15T11:21:58.443-08:002011-02-15T11:21:58.443-08:00I played around with hex grids in college. I found...I played around with hex grids in college. I found the 3-coordinate system to be helpful too, but realized that you can always derive the 3rd coordinate from the first two.<br /><br />A plane is defined by two non-parallel lines. Essentially, a hex grid is no different from any plane, the two axes are at 60 degrees, rather than 90 (which is a "special" case where a lot of math becomes easier).Philihp Busbyhttp://www.blogger.com/profile/16640093851362468089noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-11076651771371538982011-02-15T10:08:45.589-08:002011-02-15T10:08:45.589-08:00I personally always found 3-component coordinate s...I personally always found 3-component coordinate system for hexagonal grid most elegant. You can see some info at<br />http://www-cs-students.stanford.edu/~amitp/Articles/Hexagon2.html<br /><br />and <br /><br />http://stackoverflow.com/questions/2459402/hexagonal-grid-coordinates-to-pixel-coordinatesArtur Biesiadowskihttp://www.blogger.com/profile/01153887805003519136noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-75659746070998037042011-02-15T07:39:00.979-08:002011-02-15T07:39:00.979-08:00There are some notes on hexgrid math here
http://w...There are some notes on hexgrid math here<br />http://www-cs-students.stanford.edu/~amitp/gameprog.html#hex<br />especially<br />http://www-cs-students.stanford.edu/~amitp/Articles/HexLOS.htmlWinchellhttp://www.blogger.com/profile/13736427550100791059noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-47101870897736575282011-02-15T07:03:41.943-08:002011-02-15T07:03:41.943-08:00I implemented a shift-right-first-row API in OpenS...I implemented a shift-right-first-row API in OpenSettlers (http://github.com/generateui/OpenSettlers). It does not use horrible arrays, but sane generic (lists).<br /><br />I'd like to know if I can integrate your knowledge into the GPLv3 codebase.Ruudjahhttp://www.blogger.com/profile/05073941703102012793noreply@blogger.comtag:blogger.com,1999:blog-923082020090979517.post-74130726044975387502011-02-15T05:16:53.921-08:002011-02-15T05:16:53.921-08:00Saw this on Reddit, thanks for the explanation. Y...Saw this on Reddit, thanks for the explanation. You're right, it's simple in principle, but sometimes the details are easy to flub.BenBenhttp://www.blogger.com/profile/15589891329133151375noreply@blogger.com