TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to create a game using hyperbolic geometry? (2020)

119 点作者 bumbledraven将近 2 年前

14 条评论

juped将近 2 年前
The trick with why HyperRogue works as a game does in fact come down to hyperbolic geometry; it&#x27;s not a gimmick.<p>Hyperbolic space has a lot more space in it than flat space. The circumference of a circle grows linearly with the radius in flat space, but exponentially in hyperbolic space. There&#x27;s a huge amount of room even just a short distance away from some given point.<p>HyperRogue is based around this property; one wanders the tiles of the hyperbolic plane in arbitrary directions, visiting various biomes with their own mechanics. Switching biomes is as simple as walking in an arbitrary direction until you see a biome wall, but at the same time every biome is endless in all* directions. This wouldn&#x27;t actually fit in a Euclidean plane.<p>There&#x27;s also some mechanics that make use of the properties of the space, like the very difficult late game puzzle of &quot;walk 100 paces, then return to your starting point&quot; or the tricky &quot;find the center of this circle&quot;.<p>*pedant repelling asterisk
评论 #36451770 未加载
评论 #36452806 未加载
评论 #36455102 未加载
评论 #36451664 未加载
hyperlogic将近 2 年前
In 2010 I released an iPhone game that uses hyperbolic geometry in a similar way. It&#x27;s a match 3 game inspired by the work of M. C. Escher. A few years back I ported it to javascript using emscripten. You can play it for free here.<p><a href="https:&#x2F;&#x2F;hyperlogic.github.io&#x2F;circull&#x2F;circull.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;hyperlogic.github.io&#x2F;circull&#x2F;circull.html</a>
评论 #36453027 未加载
评论 #36451724 未加载
评论 #36451273 未加载
评论 #36456689 未加载
评论 #36456270 未加载
评论 #36452628 未加载
jerf将近 2 年前
If you are interested in this, see also <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=pXWRYpdYc7Q&amp;list=PLh9DXIT3m6N4qJK9GKQB3yk61tVe6qJvA&amp;index=4">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=pXWRYpdYc7Q&amp;list=PLh9DXIT3m6...</a> , in particular the ones labelled &quot;Devlog&quot;. The two complement each other nicely; the HN link is heavy on the math, the Hyperbolica devlog focuses a lot on the practical considerations, though there&#x27;s overlap in both directions of course.
评论 #36451739 未加载
评论 #36448992 未加载
wardedVibe将近 2 年前
Probably commenting too late for folks to actually see it, but there&#x27;s a great game made in 3d hyperbolic&#x2F;euclidean&#x2F;elliptic&#x2F;weird combos of those in different dimensions known as Hyerbolica: <a href="https:&#x2F;&#x2F;store.steampowered.com&#x2F;app&#x2F;1256230&#x2F;Hyperbolica&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;store.steampowered.com&#x2F;app&#x2F;1256230&#x2F;Hyperbolica&#x2F;</a> He&#x27;s got a great devlog on Youtube: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=EMKLeS-Uq_8&amp;list=PLh9DXIT3m6N4qJK9GKQB3yk61tVe6qJvA">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=EMKLeS-Uq_8&amp;list=PLh9DXIT3m6...</a><p>The author is also making a golf game: <a href="https:&#x2F;&#x2F;store.steampowered.com&#x2F;app&#x2F;2147950&#x2F;4D_Golf&#x2F;?curator_clanid=42978066" rel="nofollow noreferrer">https:&#x2F;&#x2F;store.steampowered.com&#x2F;app&#x2F;2147950&#x2F;4D_Golf&#x2F;?curator_...</a>
评论 #36457697 未加载
avmich将近 2 年前
<a href="https:&#x2F;&#x2F;sokyokuban.com&#x2F;#1" rel="nofollow noreferrer">https:&#x2F;&#x2F;sokyokuban.com&#x2F;#1</a><p>Another nice and small hyperbolic geometrical game.
评论 #36456835 未加载
b33j0r将近 2 年前
Once I understood non-linear vector spaces and coordinate transformations… wait what am I saying?<p>One day, I realized you can do cool stuff if you have geometry data as x, y, z:<p>t = x + y;<p>xt = sin(t);<p>yt = cos(t);<p>zt = sqrt(xt**2 + yt**2);<p>You’d only do it that way explicitly in a vertex shader—but congratulations, that’s a coordinate transformation!<p>Now do it with more xyzwqp’s, then, profit!<p>In my example, I compressed x+y down to one parameter. You’ll be combining 4 spacial dimensions into combinations of xyz for use with a rendering pipeline.<p>Or, alternatively projecting straight to xy. Not sure which is preferable.
评论 #36452824 未加载
platz将近 2 年前
Now what you should <i>really</i> do to make this more interesting that just a concept demo of what amounts to an immediately obvious gimmick, is to use the underlying hyperbolic geometry, but instead of making that the obvious focal point of the game&#x2F;ui, make that geometry a <i>hidden component</i> of the game and force the user to deal with it indirectly or as hidden information.
评论 #36452388 未加载
评论 #36453150 未加载
swayvil将近 2 年前
I too have delved into a variety of fancy geometries for roguelike, rts, etc. And still do.<p>My friends tell me, &quot;no. Just use square grids. Nobody&#x27;s brain wants to process that stuff. It&#x27;s too complicated&quot;.<p>But I&#x27;m still looking. Maybe the hyperbolic. There are definitely advantages. It beautifully combines the efficiencies of top down view and wide-view perspective.<p>Maybe it could be rendered more prettily.
评论 #36452840 未加载
评论 #36456778 未加载
daniel-thompson将近 2 年前
This is really cool! But unfortunately for me, it gives me vertigo after a minute or two. Anyone else have that sensation and&#x2F;or any pointers to resolve? I&#x27;d like to keep playing with this if possible.
vslira将近 2 年前
Slightly off topic: does anyone have good intros to hyperbolic geometry? I was imitating drawn by applications related to hyperbolic embeddings in NLP, but I’m having a hard time understanding why, in what ways and how it could be “better” than euclidean etc<p>Fun fact: just this week I asked gpt3.5 examples of concrete applications of hyperbolic geometry and it suggested designing transportation networks. When I asked how so, the explanation was that subway lines could make sharper turns in hyperbolic geometry.
评论 #36453789 未加载
评论 #36454670 未加载
orbisvicis将近 2 年前
Because parallel lines in hyperbolic geometries diverge, shouldn&#x27;t distant objects become larger in a way that counter-balances the hyperbolic effect of shrinking perspective? In other words, shouldn&#x27;t hyperbolic geometries look just like euclidean geometries?
评论 #36480756 未加载
julianeon将近 2 年前
Speaking of Hyperrogue, if someone has gotten really into this game, I’d love to hear about it, and what made them stay. To me it’s always seemed like a smart persons tech demo - but I could be persuaded to put serious time into it, if it’s worth it.
thrownblown将近 2 年前
HyperRouge! i&#x27;ve got it on my phone!
dang将近 2 年前
I put 2014 on this because of <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20141214000216&#x2F;http:&#x2F;&#x2F;roguetemple.com&#x2F;z&#x2F;hyper&#x2F;dev.php" rel="nofollow noreferrer">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20141214000216&#x2F;http:&#x2F;&#x2F;roguetempl...</a> but it looks like most of the content wasn&#x27;t there yet. Anybody want to figure out a better year?
评论 #36449715 未加载