什么是 HTML5 Canvas 最先进的 Javascript 3D 库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8702880/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the most advanced Javascript 3D library for the HTML5 Canvas
提问by James
I am looking for a 3D library similar to something like the Away3D project (flash) in javascript. Particularily I need the following:
我正在寻找一个类似于 javascript 中的 Away3D 项目(flash)的 3D 库。特别是我需要以下内容:
- Cameras (with pan tilt etc) preferably with options for smooth movement like the Away3d Hovercam
- 3D text (proper 3D models, not just a drop shadow)
- Meshes, textures etc
- A collection of primitives like triangles along with objects such as spheres.
- Lighting
- Support for IE (so possibly something that renders WebGL for Chrome then switches to something worse for IE)
- Preferably open source but commercial would be fine at a good price.
- 相机(带有平移倾斜等)最好带有像 Away3d Hovercam 这样平滑移动的选项
- 3D 文本(正确的 3D 模型,而不仅仅是投影)
- 网格、纹理等
- 三角形等基元以及球体等对象的集合。
- 灯光
- 支持 IE(所以可能会为 Chrome 呈现 WebGL,然后为 IE 切换到更糟糕的东西)
- 最好是开源的,但商业化的价格也不错。
Thanks in advance.
提前致谢。
回答by qiao
I used to code some simple demos using Three.js
and I highly recommend it. You may checkout its homepage and some demos at https://github.com/mrdoob/three.js
我曾经使用它编写一些简单的演示Three.js
,我强烈推荐它。你可以在https://github.com/mrdoob/three.js查看它的主页和一些演示
FYI, there's a wiki page for various Javascript game engines where you may find some nice projects: https://github.com/bebraw/jswiki/wiki/Game-Engines
仅供参考,有各种 Javascript 游戏引擎的 wiki 页面,您可能会在其中找到一些不错的项目:https: //github.com/bebraw/jswiki/wiki/Game-Engines
and a wiki page for 3D engines: https://github.com/bebraw/jswiki/wiki/WebGL
和 3D 引擎的 wiki 页面:https: //github.com/bebraw/jswiki/wiki/WebGL