Ruby 中的过程生成算法

发布于 2024-08-17 09:13:55 字数 507 浏览 2 评论 0原文

问候!

作为 Ruby 学习的一部分,我正在做一个涉及程序生成的项目,即地形生成等。它恰好是用 Ruby 编写的,但是经过数周的搜索和实验,我向你们提出了这个问题,或者更准确地说,是一个恳求。这是一个双重问题。

  • 是否有程序生成算法的 Ruby 实现(侧重于世界 - 地形、河流等)?

  • 是否有任何类似于 libnoise 的库提供程序生成函数?

我研究过 libnoise 的 Rb++ 包装器,但是它无法在我的系统(Windows 机器)上编译,而且对于像我这样的新手来说,它是相当令人畏惧的。我一直在将各种 C、C++ 实现移植到 Ruby,但是我更喜欢一个健壮且功能齐全的解决方案(如果有的话)。

谢谢您的回答!温柔一点,这是我第一次使用 Stack Overflow。 米佩

Greetings!

As part of Ruby learning, I am working on a project that involves procedural generation, namely terrain generation and such. It happens to be in Ruby, however after the long weeks of searching and experimenting I am turning to you lot with the question or, more accurately, a plea. This is a two-fold question.

  • Are there any Ruby implementations of the procedural generation algorithms (focusing on world - terrain, rivers etc)?

  • Are there any libraries akin to libnoise that provide procedural generation functions?

I have looked into Rb++ wrapper for libnoise, however it fails to compile on my system (Windows machine), moreover it is quite daunting to a novice such as myself. I have been porting various C, C++ implementations to Ruby, however I would prefer a robust and fully functional solution, if there is any.

Thank you for your answers! Be gentle, this is my first use of the Stack Overflow. Mipey

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘然心甜 2024-08-24 09:13:55

您可能想看看这个:Ruby Quiz 173
不过,就 Ruby 而言,听起来你基本上是在开辟新天地。启动一个 github 存储库,在 ruby​​-talk 上询问谁愿意提供帮助:)
添加:有关程序生成的 stackoverflow 问题

You may want to take a look at this: Ruby Quiz 173.
Sounds like you're mostly breaking new ground, as far as Ruby, though.. Start a github repository, ask on ruby-talk who wants to help :)
Addition: A stackoverflow question about procedural generation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文