今天看了cocos2d-html5里面的粒子系统相关的代码,首先看了代码中引用的两篇文章, 这两篇文章google上都可以搜到pdf的. The Ocean Spray in Your Face [jeff lander] Building an Advanced Particle System [John van der Burg] 基本概念 jeff lander的文章是一个很好的入门,讲述了基本的概念. 游戏里面的烟火,大雾,爆炸还有血液四溅的效果:(,都是用粒子系统来模拟的.一个粒子(p…
粒子群优化(PSO, particle swarm optimization)算法是计算智能领域,除了蚁群算法,鱼群算法之外的一种群体智能的优化算法,该算法最早由Kennedy和Eberhart在1995年提出的,该算法源自对鸟类捕食问题的研究. 实例分析1: 根据PSO算法思路求y最大值 ,其中x取值区间为[-5,5] matlab代码如下: %% I. 清空环境 clc clear all %% II. 绘制目标函数曲线图 x = -5:0.01:5; y = 2.1*(1-x+5*x.^3…
Gesture Drawing with Alex Woo Gesture Drawing with Alex Woo and Louis Gonzales http://eisneim.com/?page_id=1271 ------------------------------Animation------------------------------Basics Animation 03 Drawing for Animation (基础动画03绘图动画电子书)http://www.9…
Model using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using System.Web; namespace VerificationCode.Code { public class Verificati…