Integrating LiquidFun with Cocos2d-x: Part II

In Part I I described to how integrated LiquidFun with Cocos2d-x. In this part (part II) I’ll describe how to render the particles using a basic water effect. Part I uses just one glDrawArrays(GL_POINTS, 0, total); to draw the particles. And although that works to draw “particles”, it is not enough to draw “water”. DrawingContinue reading “Integrating LiquidFun with Cocos2d-x: Part II”

Integrating LiquidFun with Cocos2d-x: Part I

From LiquidFun’s site: Based on Box2d, LiquidFun features particle-based fluid simulation. Game developers can use it for new game mechanics and add realistic physics to game play. Designers can use the library to create beautiful fluid interactive experiences. Basically LiquidFun is Box2d plus an extension to simulate fluids using a particle system. To test it,Continue reading “Integrating LiquidFun with Cocos2d-x: Part I”