PDA

View Full Version : The Moon, Jupiter, Mars globes



enot
05-19-2010, 11:03 PM
The Moon, Jupiter, Mars globes
http://www.ibiblio.org/e-notes/webgl/webgl.htm

enot
05-23-2010, 10:24 PM
I've got a moderator warning message. Therefore you can find further demos (e.g. "Interference fringes" ;) at my pages.

enot
05-27-2010, 05:01 AM
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.

enot
05-27-2010, 10:02 PM
1. 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.
2. IMHO Chrome doesn't support non power of 2 textures, therefore Jupiter, Mars (NASA 1440x720 images), "800x800 magnifying glass" don't work.
3. 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

giles
05-28-2010, 07:47 AM
2. IMHO Chrome doesn't support non power of 2 textures, therefore Jupiter, Mars (NASA 1440x720 images), "800x800 magnifying glass" don't work.


As I understand it, WebGL isn't meant to support NPOT textures -- Minefield is just a bit more forgiving than it should be :-)