有没有好的Javascript图形库?

时间:2020-11-30 02:03:17

After staring at this 3D cube and these triangles for a while I started wondering if there's any good reliable Javascript graphics library with basic 3D support.

在盯着这个3D立方体和这些三角形一段时间之后,我开始想知道是否有任何可靠的Javascript图形库以及基本的3D支持。

Any suggestion?

7 个解决方案

#1


27  

John Resig's port of the Processing library to Javascript:

John Resig的处理库到Javascript的端口:

http://ejohn.org/blog/processingjs

#2


13  

I'm very psyched about Raphaël. I've used it in one project and it works like a charm.

关于Raphaël,我感到非常兴奋。我在一个项目中使用它,它就像一个魅力。

#3


8  

Flot is a pure Javascript plotting library for jQuery.

Flot是一个用于jQuery的纯Javascript绘图库。

#4


4  

Here are a few physics engines written in javascript that have some graphics capabilities.

这里有一些用javascript编写的具有一些图形功能的物理引擎。

http://blog.quantumstate.co.uk/javascript-physics-engine.html

http://box2d-js.sourceforge.net/

#5


3  

Take a look at dojox.gfx: docs, tests, demos (last two links to the nightly snapshot on the test server optimized for debugging, not for production).

看一下dojox.gfx:docs,tests,demos(最后两个链接到测试服务器上的夜间快照,优化用于调试,而不是用于生产)。

It uses native graphics: SVG, VML, Silverlight or Canvas — whatever is available on the client covering all major browsers (IE, Firefox, Safari/Webkit, Opera).

它使用原生图形:SVG,VML,Silverlight或Canvas - 客户端上可用的所有主要浏览器(IE,Firefox,Safari / Webkit,Opera)。

While it is 2D, it can be used as a foundation for 3D stuff. In fact there is a library that takes advantage of it: dojox.gfx3d. Examples (can be found in tests):

虽然它是2D,但它可以用作3D东西的基础。实际上有一个库可以利用它:dojox.gfx3d。示例(可在测试中找到):

And for truly adventurous types there is a library done for Dojo as part of Google Summer of Code 2008: True 3D. Obviously it is much faster than 2D/3D hybrid, and suitable for fluid animation. You can explore it on your own (the previous link is a publicly available Subversion repository), but be warned: it works only on Firefox and Opera with special 3D graphics add-ons from respective vendors. You'll find all gory details in the documentation.

对于真正冒险的类型,有一个为Dojo做的库,作为Google Summer of Code 2008的一部分:True 3D。显然它比2D / 3D混合更快,适合流体动画。您可以自己探索它(之前的链接是一个公开的Subversion存储库),但要注意:它仅适用于Firefox和Opera以及来自各个供应商的特殊3D图形加载项。您可以在文档中找到所有血腥细节。

Have fun!

#6


1  

The canvas html element may be the best backing and is used as such in many libraries (I know flot and processingjs mentionned by sibblings are using it)

canvas html元素可能是最好的支持,并在许多库中使用(我知道sibblings提到的flot和processingjs正在使用它)

canvas element is the lower API abstraction level you can get, which may be conceptually similar to Cairo or GDI

canvas元素是您可以获得的较低API抽象级别,可能在概念上类似于Cairo或GDI

#7


1  

Check out Walter Zorn's library

看看Walter Zorn的图书馆

www.walterzorn.de/en

#1


27  

John Resig's port of the Processing library to Javascript:

John Resig的处理库到Javascript的端口:

http://ejohn.org/blog/processingjs

#2


13  

I'm very psyched about Raphaël. I've used it in one project and it works like a charm.

关于Raphaël,我感到非常兴奋。我在一个项目中使用它,它就像一个魅力。

#3


8  

Flot is a pure Javascript plotting library for jQuery.

Flot是一个用于jQuery的纯Javascript绘图库。

#4


4  

Here are a few physics engines written in javascript that have some graphics capabilities.

这里有一些用javascript编写的具有一些图形功能的物理引擎。

http://blog.quantumstate.co.uk/javascript-physics-engine.html

http://box2d-js.sourceforge.net/

#5


3  

Take a look at dojox.gfx: docs, tests, demos (last two links to the nightly snapshot on the test server optimized for debugging, not for production).

看一下dojox.gfx:docs,tests,demos(最后两个链接到测试服务器上的夜间快照,优化用于调试,而不是用于生产)。

It uses native graphics: SVG, VML, Silverlight or Canvas — whatever is available on the client covering all major browsers (IE, Firefox, Safari/Webkit, Opera).

它使用原生图形:SVG,VML,Silverlight或Canvas - 客户端上可用的所有主要浏览器(IE,Firefox,Safari / Webkit,Opera)。

While it is 2D, it can be used as a foundation for 3D stuff. In fact there is a library that takes advantage of it: dojox.gfx3d. Examples (can be found in tests):

虽然它是2D,但它可以用作3D东西的基础。实际上有一个库可以利用它:dojox.gfx3d。示例(可在测试中找到):

And for truly adventurous types there is a library done for Dojo as part of Google Summer of Code 2008: True 3D. Obviously it is much faster than 2D/3D hybrid, and suitable for fluid animation. You can explore it on your own (the previous link is a publicly available Subversion repository), but be warned: it works only on Firefox and Opera with special 3D graphics add-ons from respective vendors. You'll find all gory details in the documentation.

对于真正冒险的类型,有一个为Dojo做的库,作为Google Summer of Code 2008的一部分:True 3D。显然它比2D / 3D混合更快,适合流体动画。您可以自己探索它(之前的链接是一个公开的Subversion存储库),但要注意:它仅适用于Firefox和Opera以及来自各个供应商的特殊3D图形加载项。您可以在文档中找到所有血腥细节。

Have fun!

#6


1  

The canvas html element may be the best backing and is used as such in many libraries (I know flot and processingjs mentionned by sibblings are using it)

canvas html元素可能是最好的支持,并在许多库中使用(我知道sibblings提到的flot和processingjs正在使用它)

canvas element is the lower API abstraction level you can get, which may be conceptually similar to Cairo or GDI

canvas元素是您可以获得的较低API抽象级别,可能在概念上类似于Cairo或GDI

#7


1  

Check out Walter Zorn's library

看看Walter Zorn的图书馆

www.walterzorn.de/en