11

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.

JohnIdol
  • 48,899
  • 61
  • 158
  • 242
  • Dudes, please, if you're voting to close let me know where you think I should I post this. I want to do something similar and I am just trying to understand what technology they're using, I don't see hwy you should close it (FFS). – JohnIdol May 23 '11 at 10:36
  • Can't imagine why this would get close votes, specially when we keep silly questions like [how's every google doodle implemented](http://stackoverflow.com/questions/4933306/how-does-todays-jules-verne-googles-doodle-work). – Kobi May 23 '11 at 11:10
  • yeah same here - thanks for making sense – JohnIdol May 23 '11 at 11:10

3 Answers3

9

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/

Ilmari Heikkinen
  • 2,711
  • 1
  • 19
  • 14
2

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.

sharp johnny
  • 814
  • 6
  • 16
1

It's using Google Closure Library (and compiler).

GWT generates code with a $gwt_version variable (and other functions and variables with gwt 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.html

I 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)

Thomas Broyer
  • 64,353
  • 7
  • 91
  • 164