有有效的 THREE.js API 文档吗?

发布于 2024-12-12 03:54:49 字数 187 浏览 1 评论 0 原文

我正在尝试学习 THREE.js 的基础知识。我已经阅读了一些教程,我想开始尝试。我的问题是我找不到任何文档

This 应该是一个 API 浏览器,但我找不到非常基本的对象,例如 PlaneGeometry 或 SphereGeometry。还有其他地方可以找到 API 吗?

I am trying to learn the basics of THREE.js. I have read a couple of tutorial, and I would like to start experimenting. My problem is that I am not able to find any documentation

This is supposed to be an API browser, but I was not able to find the very basic objects, like PlaneGeometry or SphereGeometry. Is there any other place where to find an API?

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

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

发布评论

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

评论(6

秋意浓 2024-12-19 03:54:49

浏览 API 的另一个地方是此处。我认为这个和您引用的都是在几何对象最近名称更改之前生成的。您可以要求 staunsholm 重新生成他发布的 API 文档。另一个看起来更官方的地方是这里,但它仍然有很多“待办事项”它。

我对 THREE.js 缺乏最新文档也有同样的感觉。如果您想对此问题的优先级施加一些影响,您可以重新打开此 bugtracker 问题并对其发表评论。或者您可以自己承担:-) 维护一个经常更新的 THREE.js API 参考,由 jsdoc 生成。或者,您可以深入研究源代码和示例以找到问题的答案,然后更新明显的官方 wiki 页面< /a> 带着你的发现。

抱歉,这不是您希望的理想解决方案,但也许它是目前最好的可用解决方案。 Three.js 的作者似乎认为在文档工作之前 API 需要更加稳定对他来说是值得的。

Another place to browse the API is here. I think both this and the one you referenced were generated before the recent name change for geometry objects. You could ask staunsholm to regenerate the API docs that he posted. Another, more official-looking place is here, but it still has quite a few "to-do's" in it.

I feel the same way about the lack of up-to-date documentation for THREE.js. If you want to apply some influence toward prioritizing this, you could reopen this bugtracker issue and comment on it. Or you could take it upon yourself :-) to maintain a frequently-updated THREE.js API reference, generated with jsdoc. Alternatively, you can dig through the source code and examples to find answers to your questions, and then update the apparently official wiki pages with your discoveries.

Sorry this is not the ideal solution you were hoping for, but maybe it's the best available solution for now. The author of three.js seems to feel that the API needs to stabilize more before a documentation effort would be worthwhile for him.

涫野音 2024-12-19 03:54:49

最新的官方API现已发布
http://mrdoob.github.com/ Three.js/docs/

Latest official API is currently here
http://mrdoob.github.com/three.js/docs/

若相惜即相离 2024-12-19 03:54:49

Three.js 文档在示例中。 尝试一下

并查看来源,他们很清楚。共有 112 个,并且得到精心维护。它同时提供文档和测试。目前还没有 API 文档,我认为在不久的将来也不会出现。

更多的是关于。举一个接近你想要的例子,并推导它。

three.js doc is in the examples. http://mrdoob.github.com/three.js/

try them and look at the sources, they are quite clear. There is 112 of them and they are carefully maintained. It gives doc and test at the same time. There is no API documentation at the moment, and i dont think there will be in a near future.

It is more about. take an example close to what you want, and derive it.

栩栩如生 2024-12-19 03:54:49

Official API is here:

Documentation: http://mrdoob.github.com/three.js/docs/48/index.html

Full Index: http://mrdoob.github.com/three.js/docs/48/genindex.html

And is pretty detailed at present.

三生一梦 2024-12-19 03:54:49

编写了一组 60 多个介绍性示例以及详细注释

我在http://stemkoski.github.io /Three.js/

这些示例旨在说明 Three.js 的许多基本功能(一次一个),随着示例的进展,有些示例会相互构建,有些会增加复杂性,有些则包含额外的功能JavaScript 库。

希望这有帮助!

I have written a set of more than 60 introductory examples with detailed comments at

http://stemkoski.github.io/Three.js/

These examples are meant to illustrate many of the basic features of Three.js, one at a time, and as the examples progress some build upon each other, some increase in complexity, and some incorporate additional Javascript libraries.

Hope this helps!

满身野味 2024-12-19 03:54:49

最近出版了一本书:WebGL: Up and Running,其中基于 THREE.js,因此您将完全了解它的工作原理。我认为如果您想全面了解 THREE.js 的所有方面,而不仅仅是通过仔细研究单独的示例,那么这是一个很好的起点。

There is algo a book published recently: WebGL: Up and Running, which is based on THREE.js, so you'll get complete understanding of how it works. I think it's a good place to start if you want to get overall knowledge of all THREE.js aspects and not just by scrutinizing separate examples.

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