PDA

View Full Version : WebGL Experiment



Luuk van Venrooij
04-03-2011, 03:47 PM
He all,

Khronos Releases Final WebGL 1.0 Specification.

http://www.khronos.org/news/press/releases/khronos-releases-final-webgl-1.0-specification

Decided to give it a try and here is the result:

http://www.genesisdevice.net/webgl/

You should have a WebGL capable browser like the latest Chrome. You can use the arrow keys to rotate it.

Luuk

code_glitch
04-03-2011, 04:00 PM
Wow, really impressive stuff there, and only around 1 and a bit % cpu on the main thread... nice smooth graphics and no cpu - the future of the web. in 3d. looking forward to see what this leads onto. should be an interesting scene to watch. So when do we get webpascal? ;)

Dan
04-03-2011, 04:03 PM
I was also playing with webgl for the last few days. It looks very promising unlike the javascript language it is bound to. Chrome has a built in javascript debugger so that helps things a bit.
I have already made a converter for my engine's mesh format (g2m) to something that can be loaded by javascript.
Here's the result of my experiments: http://genxgames.org/WebGL/Test2/
It's not obvious but you need to wait until the mesh and the texture have finished loading.

Luuk van Venrooij
04-03-2011, 04:28 PM
@Dan

Cool stuff! I don`t like the javascript either but it does the job.

code_glitch
04-03-2011, 06:14 PM
Nice stuff there too. I think the word that comes to mind with colours like that is 'shiny...'

Anyway, that's what I'm saying: I absolutely loathe javascript and it really is a slow pain in the.... Although I guess its still better than VB because who solely uses IE nowadays - especially with the security risk that imposes. Not to mention Mac, and Linux users ;) I think html 5 and js is just the start though. Even if its just for C/C++ I would like to see a cross platform WebC/WebC++ with some WebSdl. That would truly be a revolution.

Hang on, you could have Doom in your browser running from source? What is this madness.

Stoney
04-03-2011, 09:12 PM
Really nice work. I personally would rather use Copperlicht (http://ambiera.com/copperlicht/index.html) than starting completely from scratch.

I'm very much impressed with the new web technologies. I really began to love JavaScript. It has become my second-favorite programming language after Pascal. Once you know how object orientation (https://developer.mozilla.org/en/Introduction_to_Object-Oriented_JavaScript and http://www.phpied.com/3-ways-to-define-a-javascript-class/) and design pattern (http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth) work along with the support of libraries such as jQuery (http://jquery.com/) frontend web development became really easy and productive for me.

Dan
08-03-2011, 10:46 AM
100 skinned meshes. not optimized yet so fps might be low http://genxgames.org/WebGL/SkinnedMesh/
it takes a bit of time to load.
webgl will be a very useful tool once it is supported by all browsers (which hopefully will happen some day).
I am also waiting for flash 11 to give its new 3d features a try.