Posts

Showing posts from October, 2011

Google I/O 2011: WebGL Techniques and Performance

Image
The math library I'm using TLD or 3D library
File at 3Dlibrary.googlecode.com
WebGL math benchmarks
WebGL based on OpenGL ES 2.0 with zero extention

world *viewProj mtx

reduce draw call --- use one large buffer

limits
64,000 polygons per draw call
index primitive 16bit

particle library on WebGL wiki
(This one which is more stand alone
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/demos/google/particles/index.html
And this one which is integrated with the TDL library
http://code.google.com/p/webglsamples/source/browse/tdl/particles.js)

(Library presented in the video is named ThreeD Library. You can find it on googlecode.
You can use ThreeJS which is much, much easier, and then there is SparksJS for particles in ThreeJS.  Thanks, Mackovy )

limits
3D textures not be support. spread it out
into a 2D texture

Post Processing
WebGL2D.js

never call gl.get anything while render


// don't touch render buffer while rendering
gl.framebufferRenderbuffer()//bad
gl.fram…

Google I/O 2011: Building Game Development Tools with App Engine, GWT, and WebGL

Image