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

Re: [Public WebGL] instancing



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