- 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.
推薦閱讀
- Learn TypeScript 3 by Building Web Applications
- JavaScript+DHTML語法與范例詳解詞典
- Java從入門到精通(第4版)
- Oracle 12c中文版數(shù)據(jù)庫管理、應(yīng)用與開發(fā)實踐教程 (清華電腦學(xué)堂)
- 面向?qū)ο蟪绦蛟O(shè)計(Java版)
- Ext JS 4 Web Application Development Cookbook
- Visual Basic程序設(shè)計上機(jī)實驗教程
- C++ Application Development with Code:Blocks
- 你真的會寫代碼嗎
- Software-Defined Networking with OpenFlow(Second Edition)
- 零基礎(chǔ)學(xué)SQL(升級版)
- Getting Started with Windows Server Security
- Cloud Development andDeployment with CloudBees
- Natural Language Processing with Python Cookbook
- Django 2.0 入門與實踐