OpenGL Programming/Particle systems

< OpenGL Programming

This is a Work In Progress

A particle system is an optimized way to deal with a huge number of objects (several thousands to several millions).

The naive approach is to draw each object independently (as we did in most other tutorials), but drawing thousands of objects implies preparing and calling DrawArray/DrawElements thousands of times per frame, each implying an OpenGL round-trip, which is plain inefficient.

Instead, the goal is to draw loads of similar objects in one go.

We identify 2 mains way to render particle systems:

References

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.