[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] instancing

So this demo will not work in the final release?

On Tue, Nov 23, 2010 at 12:40 PM, Kenneth Waters <kwaters@google.com> wrote:
Are there any up to date instancing demos that run on Chrome 9?

Instancing is not supported in WebGL, it is an OpenGL 3.1/3.3 feature.  (The entry points are DrawElementsInstanced, DrawArraysInstanced, and VertexAttribDivisor).

NVIDIA has a paper on an efficient way of implementing psuedo-instancing, that can be used in WebGL  (http://developer.download.nvidia.com/SDK/9.5/Samples/DEMOS/OpenGL/src/glsl_pseudo_instancing/docs/glsl_pseudo_instancing.pdf).  However, it relies of vertex texture fetch which may not be available on all WebGL implementations.

-- Kenneth Waters