Kosmos - A virtual 3D universe in your web browser
github.com
github.com
Anyway, I've always wanted to do something like this but never got around to it. It looks awesome, and I'm definitely going to play around with the code! Great job!
This is actually precisely why I'm abandoning WebGL in favor of Native/OpenGL-ES for future versions of "Kosmos" (I intend to eventually make a game) - WebGL is plagued with compatibility issues, for all but the most traditional/simple GLSL shaders.
Since all the planets in Kosmos are procedurally generated on the GPU, this requires rather complex GLSL shaders (GPU code). Sadly, even with a lot of ugly hacks I've only been able to get this to work on Windows for Firefox, after hacking out a lot of features. It works great on Mac/Linux in my testing though, as long as you have a sufficiently modern GPU that supports modern OpenGL.
The compatibility issues I think are mostly due to ANGLE (http://code.google.com/p/angleproject/), which is Google's so-called "compatibility" layer for WebGL used in both Firefox and Chrome on Windows, apparently. It actually takes your GLSL shader code, and rewrites it as it sees fit. This would be fine if the rewrite didn't break things, but sadly, it breaks things.
But ultimately, the user doesn't care about excuses. The user cares that they see a black screen with no content. Hence, I'm forced to abandon WebGL and go back to native code + OpenGL[ES]. It was a really fun experiment though and I learned a lot in the process.