Wednesday, May 8, 2013

[android-developers] Re: form special effects

Its not my area of expertise, but id capture ontouch events and dump the current view hierarchy to a bitmap. Then i'd perform the necessary manipulations on a GLView with that bitmap as the source.
If you wish to allow the UI to update during those touches (like scroll a list while still seeing the water effect above it as if the list is under the water surface) you'd have to keep the manipulations separately to that bitmap (kind of like how you do with a translation matrix) so you could calculate the manipulations regardless of what the background is (kinda like how Vertex Shaders work)

You'll have to tweak it to find the sweet spot for refreshing that bitmap (since it will be costly performance wise).

Make sure to do everything on the GPU, otherwise it will be slow as fuck :)


On Wednesday, May 8, 2013 4:39:41 PM UTC+3, bob wrote:

So, I have a typical form interface, and I want to add some special effects to it.


Basically, I want to have a "water splashing" particle effect when the user touches it.


Anyone know the best way to do this?  I'm not quite sure how to draw on top of all the other stuff... text fields and such.


Thanks.


--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment