Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a smoke effect in iphone?

i am developing an application where i want to do some smoke effect like animation and interact with that smoke.

Do i need to implement it OpenGLES or any simple solution?

Is there any sample application for it?

like image 210
raaz Avatar asked Jan 23 '10 14:01

raaz


People also ask

What app has smoke effect?

PhotoJus Smoke FX 4+

How do I make my Iphone pictures fog?

- Select any photo, then tap through different fog or smoke like effects. - Adjust the color tint of the fog effects by tapping the buttons. - Adjust the fog layer thicker or thinner on your photo. - Many different fog effects allow you to cover partial photo or entire photo.


2 Answers

You could just write a simple particle emitter for that. Is it for a Game ? or for another kind of Application ?

It also depends on the level of realism that you're looking for. A guy got down voted for mentioning fluid dynamics, but if you really want realism, that's the best way to go.

Having said that, you can really get decent smoke using a regular particle emitter (you could even try to code it on Core Animation and not in OpenGL ES).

Also, if you're targeting iOS 5.0+, UIKit now includes several Particle FX that you could use, you just have to play with the parameters... checkout this tutorial

Cheers!

like image 55
Goles Avatar answered Oct 14 '22 04:10

Goles


Yes, its possible with simple solution. You just need to use UIKit particle system. Have a look that sample https://github.com/lichtschlag/Dazzle, you just need to check fire and smoke sample.

Good luck

like image 45
fyasar Avatar answered Oct 14 '22 05:10

fyasar