The Moon, Jupiter, Mars globes
http://www.ibiblio.org/e-notes/webgl/webgl.htm
I’ve got a moderator warning message. Therefore you can find further demos (e.g. “Interference fringes” at my pages.
I replaced 2 and 3 strings
gl.bindBuffer()
gl.vertexAttribPointer();
gl.bufferData();
and now 3d models work in Google Chrome. Mars and Jupiter do not work (both have >100kb textures). And something wrong “under magnification glass” yet.
- I have to add the second string
gl = canvas.getContext(“experimental-webgl”);
gl.viewport(0, 0, size, size);
to repair window on resize action in Chrome in all models. - IMHO Chrome doesn’t support non power of 2 textures, therefore Jupiter, Mars (NASA 1440x720 images), “800x800 magnifying glass” don’t work.
- I think that transparent colors are not clamped to (0, 1). I’ve got strange spots in Chrome
http://www.ibiblio.org/e-notes/webgl/hex.html
As I understand it, WebGL isn’t meant to support NPOT textures – Minefield is just a bit more forgiving than it should be