是否有两个 JS 对应三个 JS [英] Is there at TWO JS counterpart to THREE JS

查看:35
本文介绍了是否有两个 JS 对应三个 JS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习 ThreeJS 作为 WebGL 的接口.感谢大家之前的帮助.

I am moving along well learning ThreeJS as an interface to WebGL. Thank you all for your previous help.

我正在开发一种新的 3D 动力学方法,并希望在教科书中加入 3D 组件.示例可在此处找到:http://eon.sdsu.edu/~impellus/DMF/

I am developing a new approach to 3D Dynamics and would like a 3D component to the textbook. Examples are found here: http://eon.sdsu.edu/~impellus/DMF/

他们不是最好的,但我正在学习.

They are not the best, but I am learning.

同时,我想研究 2D 静力学和 2D 交互式自由体图中的一些动画.目标是呈现一个对象,切掉它的各个方面,并用力替换丢弃的部分(基本上:通过删除接触以交互方式构建自由体图).通常,我会考虑使用 Flash,但有人建议我不要使用它.

In parallel, I would like to investigate some animations in 2D Statics and 2D INTERACTIVE Free Body Diagrams. The goal is to present an object, slice aspects of it away and replace the discarded section with forces (basically: to interactively construct free body diagrams by removing contacts). Normally, I would consider Flash, but I have been advised against it.

你可以在这里看到我使用了 Threejs 创建了一个关于流线、条纹、路径的 2D 教程:

You can see here that I used threejs to create a 2D tutorial on streamlines, streaklines, pathlines:

http://eon.sdsu.edu/~impellus/FLOW/

但我的感觉是,使用threeJS的强大功能进行2D交互动画并不自然.

But my feeling is that it is not natural to use the power of threeJS for 2D interactive animations.

请问有没有Two JS的Three JS版本?我认为只是问这个问题应该是我在寻找什么的证据,但让我更清楚.我正在寻找专用于 2D 动画的 webGL 接口.是的,我可以使用threeJS,但我认为那是错误的.有人可以指导我吗?

So may I ask if there is a Two JS version of Three JS? I think just asking the question should be evidence to what I am looking for, but let me be more clear. I am looking for an interface to webGL that is dedicated to 2D animations. Yes, I can use threeJS, but I think that would be a mistake. Could someone guide me?

推荐答案

pixi.js 是最近发布 - 它是一个由 WebGL 支持的 2D 引擎以提高性能,但具有 2D 画布后备以实现兼容性.我自己没用过,但值得一试.

pixi.js was released just recently - it's a 2D engine backed by WebGL for performance, but with a 2D canvas fallback for compatibility. I haven't used it myself but it's worth checking out.

这篇关于是否有两个 JS 对应三个 JS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆