I have been an iphone developer for about 1 year. Box2d works pretty well on my jobs.
Now I'm on a game which needs simulation of waterfalls and rivers. I know I need SPH and tried following ways:
1. I used cocos2d batch sprites with box2d physic rigid for every particle, when the number of particle reach greater than 1000, the FPS of my ipad1 reduced to less than 0.5 -- they cannot even move.
2. cocos2d's particle system can raise more than 1000 particles, but they cannot support hydrodynamics physic.
3. I tried to migrate some easy open source grid based SPH code to cocos2d, performance still poor. However, I can only still roll on this way. it seems we need a optimize on OPENGL ES level.
Will Box2d launch a feature to support SPH? That would be awesome.
Now I'm on a game which needs simulation of waterfalls and rivers. I know I need SPH and tried following ways:
1. I used cocos2d batch sprites with box2d physic rigid for every particle, when the number of particle reach greater than 1000, the FPS of my ipad1 reduced to less than 0.5 -- they cannot even move.
2. cocos2d's particle system can raise more than 1000 particles, but they cannot support hydrodynamics physic.
3. I tried to migrate some easy open source grid based SPH code to cocos2d, performance still poor. However, I can only still roll on this way. it seems we need a optimize on OPENGL ES level.
Will Box2d launch a feature to support SPH? That would be awesome.