javascript 推荐使用 WebGL 的 API 和 IDE

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17135124/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 07:12:36  来源:igfitidea点击:

Recommended API and IDE to work with WebGL

javascriptweb-applicationswebgl

提问by Hugo Pinto

I'm about to use WebGl in a academic project to preview some 2d and 3d models in a given format.

我即将在一个学术项目中使用 WebGl 以给定格式预览一些 2d 和 3d 模型。

While I'm reading some documentation, I would like to know, from your experience, what would be the best API to speedup development and abstract some low-level calls and also the best IDE to work with it.

当我正在阅读一些文档时,我想根据您的经验知道什么是加速开发和抽象一些低级调用的最佳 API,以及使用它的最佳 IDE。

Cross browser compatibility is not a major problem.

跨浏览器兼容性不是主要问题。

I've decided about WebGl because I would like to create a web interface for my project to help sharing my progress. Do you even recommend using WebGl for that?

我决定使用 WebGl,因为我想为我的项目创建一个 Web 界面来帮助分享我的进度。你甚至建议使用 WebGl 吗?

采纳答案by jh314

API

应用程序接口

Three.jsis really awesome to work with regarding developing WebGL apps. It makes creating what you want very easy (create a scene object, create some things you want to show, then add them to the scene and render. No need to mess around with GLSL and low level stuff right off the bat, although you could if you really wanted to).

Three.js在开发 WebGL 应用程序方面非常棒。它使创建您想要的东西变得非常容易(创建一个场景对象,创建一些您想要显示的东西,然后将它们添加到场景中并进行渲染。无需立即处理 GLSL 和低级别的东西,尽管您可以如果你真的想要)。

IDE

集成开发环境

Chrome's console and various tools are great for debugging in general. You can use whatever text editor / IDE for javascript that you want.

Chrome 的控制台和各种工具非常适合调试。你可以使用任何你想要的 javascript 文本编辑器/IDE。

回答by epoch

At the end of the day, an IDE is only meant to help a little, you do the hard hauling, having said that, the best editor(s) I use for javascript are Sublime Textand Netbeans IDE

归根结底,IDE 只是提供一点帮助,您辛苦了,话虽如此,我用于 javascript 的最佳编辑器是Sublime TextNetbeans IDE

Then as it was already stated, Chrome DevToolsis your best bet for debugging.

如前所述Chrome DevTools是调试的最佳选择。

回答by Alexander Buzin

API (Framework)

API(框架)

If three.jsis hard for you, or you are professional developer who just don't want to spend his time on simple things like setting up environment(scene, camera, renderer) you may try whitestorm.js.

如果Three.js对你来说很难,或者你是专业的开发人员,不想把时间花在设置环境(场景、相机、渲染器)等简单的事情上,你可以试试whitestorm.js

WhitestormJS frameworkis a wrapper around three.js(you can use both at once, like jQuery wraps DOM). It has some extra features:

WhitestormJS 框架是一个围绕three.js的包装器(你可以同时使用两者,就像jQuery 包装DOM)。它有一些额外的功能:

  • Built-in physics of Bullet Physics 3, even softbody physics (You can use light versionwithout physics.
  • It has component structure (like ReactJS). You can share your plugins, components and use the ones from others.
  • Bullet Physics 3 的内置物理,甚至软体物理(您可以使用没有物理的轻型版本
  • 它具有组件结构(如 ReactJS)。您可以共享您的插件、组件并使用其他人的插件、组件。

*WhitestormJS is non-commercial open-source project by three.jsfans.

*WhitestormJS 是three.js爱好者的非商业开源项目。