The invention discloses a WebGL-based
mass data
particle system rendering method and device, and belongs to the technical field of computer graphic
processing. The method comprises the following steps: firstly, selecting the type of a particle emitter according to scene requirements, then constructing a primitive
object based on points or quadrangles, and configuring three-dimensional coordinates and texture parameters; aggregation rendering is carried out on a single-frame primitive array through a WebGL vertex
shader and a fragment
shader, and the drawing calling frequency is reduced; the method comprises the steps of dynamically adjusting particle attributes, including position compensation,
color gradient and explicit-implicit control, determining a rendering form and playing time of an
animation according to requirements of an actual application scene, and supporting fine configuration of a single particle, including texture
animation, dynamic scaling and rotation parameters. When a large amount of data is processed, on the premise of ensuring the rendering quality, the rendering efficiency can be remarkably improved, the consumption of a memory and GPU resources can be reduced, the
response time of the
system can be optimized, and meanwhile, the interaction experience of a user can be improved.