开始在three.js中行进多维数据集 [英] Getting started with marching cubes in three.js

查看:88
本文介绍了开始在three.js中行进多维数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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.

谢谢。

推荐答案

我查看了three.js和他们的行进立方体演示。它似乎专门用于渲染肉丸:-)我开始新鲜并复制查找表并重写主要功能和线性互操作方法,并得到一个新的工作引擎工作。我的建议是自己重写(花了我一些时间),但将自己的代码与这个新实现集成起来要容易得多。特别是,如果你想做的不仅仅是单一纹理的肉丸。我实际上在尝试理解Al Gore Rhythm时使用了这个网站 polygonize

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.

以下是该视频的实际操作 - > http://youtu.be/_oML6USPs20

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

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

You can track the release date here highdensitygames.com

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

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!

这篇关于开始在three.js中行进多维数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆