8:00 – 5:30 SR
- Backups
- Deployed new FA, VSS, and some new views
- Meeting with Chris, Tangie, Carla, Betty, Pat and Lenny going over the VizTool presentation
- Back to JavaScript and WebGL
- Spent a good deal of time working with how to get multiple buffers to work. Here’s the basic pattern:
function draw(gl, n) {
// Clear <canvas>
gl.clear(gl.COLOR_BUFFER_BIT);
// repeat the following two lines for all your buffers
gl.bindBuffer(gl.ARRAY_BUFFER, g_vertexSizeBuffer);
gl.bufferData(gl.ARRAY_BUFFER, g_verticesSizes, gl.STATIC_DRAW);
// once done with updating the data unbind.
gl.bindBuffer(gl.ARRAY_BUFFER, null);
// Draw the points
gl.drawArrays(gl.POINTS, 0, n);
}

