开始使用 Three.js 中的行进立方体

发布于 2024-12-21 16:12:00 字数 133 浏览 1 评论 0原文

我是 Three.js 的新手,正在寻找教程来帮助我开始了解如何在 Three.js 中使用 Marching Cubes。到目前为止,我在 Three.js 中看到的一些使用它的项目对我来说有点复杂,所以一个简单的教程会很好。

谢谢。

I am new to Three.js and looking for a tutorial to get me started on how to use Marching Cubes in three.js. Some of the projects I have seen so far in three.js which use this are a bit complicated for me, so a simple tutorial would be nice.

Thank you.

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

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

发布评论

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

评论(3

々眼睛长脚气 2024-12-28 16:12:00

像您一样,我一直在寻找移动立方体算法的非元球示例——我对绘制隐式定义的曲面特别感兴趣。由于我找不到,我编写了一个使用 Three.js 的介绍性 Marching Cubes 示例,并将其发布在:

https://stemkoski.github.io/Three.js/Marching-Cubes.html

有关该理论的更多详细信息,您应该查看

http://paulbourke.net/geometry/polygonise/

Like yourself, I was looking for a non-metaballs example of the Marching Cubes algorithm -- I am particularly interested in graphing implicitly defined surfaces. Since I couldn't find one, I wrote an introductory Marching Cubes example that uses Three.js and posted it at:

https://stemkoski.github.io/Three.js/Marching-Cubes.html

For more details on the theory, you should check out the article at

http://paulbourke.net/geometry/polygonise/

辞取 2024-12-28 16:12:00

我查看了 Three.js 和他们的 Marching Cubes 演示。它似乎是专门为渲染肉丸而构建的:-)我重新开始并复制了查找表并重写了主要函数和线性插值方法,并得到了一个新的工作引擎。我的建议是自己重写(我花了一些时间),但是将您自己的代码与这个新实现集成起来会容易得多。特别是,如果您想做的不仅仅是单一质地的肉丸。实际上,我在尝试理解阿尔·戈尔节奏时更多地使用了这个网站多边形化

这是一个实际操作的视频 -> http://youtu.be/_oML6USPs20

您可以在此处跟踪发布日期highdensitygames.com

一旦我在 Chrome 应用市场中发布此游戏,我就会发布源代码。但我不太确定它会对你有帮助。这就像查看 Three.js 源代码一样。您需要深入研究自己的实现。祝你好运!

I looked at three.js and their marching cubes demo. It seems to have been built specifically for rendering meatballs :-) I started fresh and copied over the lookup tables and rewrote the main functions and linear interprolation methods and got a new working engine working. My advice would be to do a rewrite yourself (it took me some time), but it will be a lot easier to integrate your own code with this new implementation. Especially, if you want to do more than just meatballs with a single texture. I actually used this site polygonize more while trying to understand the Al Gore Rhythm.

Here is a video of it in action -> http://youtu.be/_oML6USPs20

You can track the release date here highdensitygames.com

I'll be releasing the source once I release this game in the Chrome App marketplace. I'm not so sure it will help you though. It would be just like looking at the three.js source. You will need to dig in yourself with your own implementation. Good luck!

拥有 2024-12-28 16:12:00

也许不完全是一个教程,但 3 个黑色梦想演示 有一个 元球示例 以及 来源

Maybe not quite a tutorial but the 3 dreams of black demo has a metaballs sample with source

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