简体   繁体   English

您可以推荐浏览器中的Ruby / Rails 3D渲染器吗?

[英]Can you recommend an in-browser Ruby/Rails 3D renderer?

I want to draw some 3D network diagrams in a web browser, and the data for these diagrams are in a Rails app (in the database). 我想在Web浏览器中绘制一些3D网络图,这些图的数据在Rails应用程序中(在数据库中)。

I already use flotomatic as a Rails interface for pretty Javascript plots (eg, independent variable, dependent variable). 我已经将flotomatic用作漂亮的Javascript图(例如,自变量,因变量)的Rails接口。 Certainly there are packages for drawing simple things in Javascript. 当然,有些程序包可以用Javascript绘制简单的东西。

What I'm looking for is (a) a Javascript package for 3D drawings that are displayed in a web browser (without a plugin), and (b) a Ruby API for that package, if possible. 我正在寻找的是(a)3D绘图的Javascript程序包,该程序包显示在Web浏览器中(没有插件),以及(b)Ruby API,如果可能的话。

Any recommendations? 有什么建议吗? Many thanks! 非常感谢!

I haven't found a definitive answer, but something like this might be useful: 我还没有找到确切的答案,但是像这样的东西可能会有用:

In short, processing has been ported to javascript and makes use of the HTML5 canvas element. 简而言之,处理已移植到javascript,并利用了HTML5 canvas元素。

Processing.js does not yet support 3D (as canvas doesn't support it due to lack of acceleration), but it shouldn't be a big deal to create a wireframe. Processing.js 尚不支持3D (由于缺乏加速,画布不支持3D ),但是创建线框并不重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM