3
\$\begingroup\$

I want to achieve sprinkling effect of water in android using opengl. so, do i need to achieve it with graphics? is there any other way to do it using opengl?

or how can i start working on this,any links?

\$\endgroup\$
1
  • \$\begingroup\$ you probably need a particle system for what you want to achieve and this means working on the CPU and with a physics library. \$\endgroup\$
    – user827992
    Commented Sep 17, 2012 at 6:22

1 Answer 1

4
\$\begingroup\$

As user827992 said you'll probably need to create a particle system. This does not mean you need a physics library in any way, however.

Spawn sparkles over the water of random size and placement between whatever specified thresholds you desire(just tinker with it till it looks purtty). Have them fade in and back out. You'll also need to control the rate at which the particle spawn.

There might be a library out there to handle particle systems for opengl-es, but I'm not sure.

Alternatively you can make an animation that plays over the water, or animate the water itself. However this is less dynamic and may look stale.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .