创建 3D 模型并将其转换为 WebGL 可用的形式 - 初学者指南?

发布于 2024-12-13 23:26:47 字数 246 浏览 1 评论 0原文

我正在寻找一些简单(免费!)的入门级软件,它允许我创建简单的 3D 模型并以格式(JSON?)导出它们,然后可以将其读入 webGL 程序。

简单的几何图形将是一个开始,然后纹理也会很好......我看过 Blender,它对我来说太先进了,我发现的教程是无望的。

像 sketchup 这样简单的东西会很好,但据我所知,你不能以 JSON 格式导出。我找到了一些可以将 .dae 转换为 .json 的转换器,但我发现的转换器似乎适合高级用户。

I'm looking for some simple (free!) entry level software that will allow me to create simple 3d models and export them in a format (JSON?) that can then be read into a webGL programme.

Simple geometry would be a start, then textures would be nice too... I've looked at Blender, and it's just far too advanced for me, and the tutorials I've found are hopeless.

Something simple like sketchup would be good, but afaik you can't export in JSON. I've found some converters that will do .dae to .json, but the ones I've found seem to be for advanced users.

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

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

发布评论

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

评论(1

多彩岁月 2024-12-20 23:26:48

WebGL 很新,目前还没有很多类似的软件包围绕它构建。但这并不意味着您没有一些选择:

  • Blender 是一个很好的建模器,如果您愿意花更多时间来学习它,您可以使用 Three.js网络上的其他一些。这似乎是目前最流行的选择。
  • Unity 3D 更像是一个场景构建器,而不是一个建模应用程序,但它有很多方法可以将内容放入其中,并且 J3D我自己已实施其出口商。
  • Maya 是一个很棒的建模工具,如果您有办法访问它(它是商业的),并且有 Inka获取 WebGL 内容。
  • 如果您想使用 SketchUp 之类的工具,它应该能够导出到 COLLADA,然后可以将其导入到 Blender/Unity/What 中,并使用前面的方法之一从那里导出。

就格式而言,目前还没有真正的标准。大多数导出器都会输出 JSON,我的导出器混合使用 JSON 和二进制来提高速度/大小,有些导出器实际上会为您提供要执行的 Javascript 代码。使用哪种格式可能取决于您想用它做什么。我鼓励您尝试几种,看看您喜欢什么,不喜欢什么。

WebGL is new enough that there aren't many packages like this built up around it just yet. That doesn't mean you don't have some options though:

  • Blender is a good modeler, and if you are willing to put a little bit more time into learning it you can use exporters from Three.js or some others that are around the net. This seems to be the most popular option at the moment.
  • Unity 3D is more of a scene builder than a modeling app, but it has a lot of ways to get content into it and both J3D and myself have implemented exporters from it.
  • Maya is a great modeling tool if you have a way to get access to it (it's commercial), and has Inka to get WebGL content out.
  • If you want to use something like SketchUp, it should be able to export to COLLADA, which can then be imported into Blender/Unity/What have you and exported from there using one of the previous methods.

As far as formats go, there's no real standards just yet. Most of the exporters will spit out JSON, mine uses a mix of JSON and Binary for speed/size, and some will actually give you Javascript code to execute. Which format to use probably depends on what you want to do with it. I encourage you to experiment with several and see what you like and what you don't.

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