谷歌正文浏览器是基于什么框架构建的(如果有)?
有人可以帮助我了解 Google Body 浏览器是使用哪个框架(如果有)开发的吗?
好的,是 WebGL 和 Javascript,但是他们是否使用了一些允许 WebGL 交互的 GWT 扩展,或者他们是手动编写 js 然后缩小或使用其他框架?
任何帮助表示赞赏。
Can someone help me understand which framework (if any) is Google Body browser developed with?
OK, it's WebGL and Javascript, but are they using some GWT extension that allows WebGL interaction or are they writing the js by hand and then minifying or some other framework?
Any help appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它使用的库名为 tdl.js http://code.google.com/p/thirdlibrary/< /a>
这里是 Google Body Android 端口上的 Google I/O 会议 http://www.google.com/events/io/2011/sessions/3d-graphics-on-android-lessons-learned-from-google- body.html
[edit]
Google Body 开源了,哇! http://google-opensource.blogspot .com/2012/01/google-body-becomes-zygote-body-built.html
您可以从 http://code.google.com/p/open-3d-viewer/
The library it's using is called tdl.js http://code.google.com/p/threedlibrary/
And here's the Google I/O session on the Google Body Android port http://www.google.com/events/io/2011/sessions/3d-graphics-on-android-lessons-learned-from-google-body.html
[edit]
Google Body was open sourced, woop! http://google-opensource.blogspot.com/2012/01/google-body-becomes-zygote-body-built.html
You can check out the source code from http://code.google.com/p/open-3d-viewer/
有几个 gwt webgl 库/包装器: http:// code.google.com/hosting/search?q=gwt+webgl&projectsearch=Search+projects
我认为他们在 googleio 会话中提到了一些 webgl 库,不太记得了,但如果你想找webgl 和 gwt,可能会有一些有趣的会议值得观看。
http://www.google.com/events/io/2011
如果他们没有如果不使用 GWT,他们很可能编写 js 并使用 Google Closure Compiler 对其进行编译(这比编写普通 js 有几个优势),这就是 google 的做法。
there are several gwt webgl libraries/wrappers: http://code.google.com/hosting/search?q=gwt+webgl&projectsearch=Search+projects
I think they mentioned some webgl library in an googleio session, can't quite remember, but if you want to go for webgl and gwt, there might be some interesting sessions to watch.
http://www.google.com/events/io/2011
If they didn't use GWT, they most probably wrote js and compiled it using Google Closure Compiler(Which gives several advantages over writing vanilla js), that's how google does it.
它使用 Google Closure Library(和编译器)。
GWT 生成带有
$gwt_version
变量的代码(以及名称中带有gwt
的其他函数和变量),但这里的情况并非如此。在 Body Browser 的代码中查找“goog”,您会发现提及
goog.structs.SimplePool
,它是一个 Closure 库类:http://closure-library.googlecode.com/svn/docs/class_goog_structs_SimplePool.html我不知道围绕 WebGL 的框架(除了像 ForPlay 这样的东西,它完全抽象化了它,因此相同的代码可以在 WebGL 或画布中运行——或者实际上是一个普通的 JVM,甚至作为 ActionScript 的 Flash——,但这是完全不同的东西,并且是基于 GWT 的对于Play而言)
It's using Google Closure Library (and compiler).
GWT generates code with a
$gwt_version
variable (and other functions and variables withgwt
in their name), and that's not the case here.Looking for "goog" in the code of the Body Browser, you'll find a mention of
goog.structs.SimplePool
which is a Closure Library class: http://closure-library.googlecode.com/svn/docs/class_goog_structs_SimplePool.htmlI don't know of any framework around WebGL (apart for things like ForPlay which totally abstractize it, so the same code can run in WebGL or canvas —or actually a plain JVM or even Flash as ActionScript—, but that's something entirely different, and GWT-based as far as ForPlay is concerned)