- Mastering openFrameworks:Creative Coding Demystified
- Denis Perevalov
- 127字
- 2021-08-06 16:54:18
Chapter 3. Building a Simple Particle System
Particle systems are used in computer graphics for drawing fuzzy-shaped objects such as fire, clouds, and trails of dust. The basic idea for such systems is drawing a large number of small, moving particles and controlling their motion.
Here we consider the basic principles of modeling and drawing particle systems and demonstrating them by building a simple 2D particle system. In this chapter, we will cover the following topics:
- The basics of particle systems
- A single particle
- An emitter
- The attraction, repulsion, and spinning forces
- Graphical user interface
By the end of this chapter, you will have a fully-featured project for experimenting with the particle system.
Note
This is the only chapter where we create custom C++ classes.
推薦閱讀
- UNIX編程藝術
- jQuery Mobile Web Development Essentials(Third Edition)
- LabVIEW Graphical Programming Cookbook
- PHP 7底層設計與源碼實現
- Learning RxJava
- 深入實踐Spring Boot
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- Raspberry Pi Home Automation with Arduino(Second Edition)
- 學習OpenCV 4:基于Python的算法實戰
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- 案例式C語言程序設計實驗指導
- 工業機器人離線編程
- 分布式架構原理與實踐
- Python機器學習開發實戰
- Java程序設計教程