Post Reply

[App] Liquid Physics Live Wallpaper

OP jgittins

18th December 2010, 05:25 PM   |  #1  
OP Senior Member
Flag Carlisle
Thanks Meter: 31
 
126 posts
Join Date:Joined: Nov 2010
More
I made a quick port of Grant Kot's liquid simulator java applet and turned it into a live wallpaper.

It uses a ton of cpu so it will probably drain the battery pretty fast but it's fun to play with.

http://grantkot.com/MPM/Liquid.html

zip file contains the eclipse project with all the source code if anyone wants to do something with it

edit: - ignore the apk in this post and download quinbd's version a few posts down, it's much better
Attached Files
File Type: apk LiquidLiveWallpaper.apk - [Click for QR Code] (10.7 KB, 6541 views)
File Type: zip LiquidWallpaper.zip - [Click for QR Code] (43.6 KB, 1606 views)
Last edited by jgittins; 23rd December 2010 at 12:11 PM.
The Following 18 Users Say Thank You to jgittins For This Useful Post: [ View ]
19th December 2010, 12:44 AM   |  #2  
worker1's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 9
 
301 posts
Join Date:Joined: May 2010
More
It runs slower than my pc; its not fullscreen.
19th December 2010, 01:08 AM   |  #3  
OP Senior Member
Flag Carlisle
Thanks Meter: 31
 
126 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by worker1

It runs slower than my pc; its not fullscreen.

Yeah I know. That's as fast as I could get it to run.
19th December 2010, 01:10 AM   |  #4  
Senior Member
Thanks Meter: 67
 
1,929 posts
Join Date:Joined: Jun 2006
pretty sick
19th December 2010, 02:36 AM   |  #5  
ZekeWolf's Avatar
Senior Member
Thanks Meter: 9
 
402 posts
Join Date:Joined: Dec 2008
Nice! Would be nice if it reacted to phone movement.

Sent from my HTC HD2 using XDA App
19th December 2010, 04:00 AM   |  #6  
OP Senior Member
Flag Carlisle
Thanks Meter: 31
 
126 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by ZekeWolf

Nice! Would be nice if it reacted to phone movement.

Sent from my HTC HD2 using XDA App

I'm not really going to do anything further with this app so I've attached the source code to the first post if you want to do it
The Following User Says Thank You to jgittins For This Useful Post: [ View ]
21st December 2010, 06:48 PM   |  #7  
Junior Member
Flag West Lafayette, IN
Thanks Meter: 17
 
12 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Update
Hey, I took the liberty of adding some features

Updates: 1.0
  • Fit to screen size
  • Gravity follows phone
  • Changed particle color :P
Update: 1.1
  • Added options for number of particles and color
Update: 1.2
  • Added a lot more options
  • New "Blur" effect
  • Gravity Sensitivity - (including zero gravity)
  • Horizontal and vertical gravity inverts - (needed for some phones)
  • Animation delay setting
Update: 1.3
  • UI Improvements
  • FPS Counter
  • True support for horizontal and vertical screen views
  • Particle Size Setting (Anything but 0 leads to very poor results)
Update: 1.5
  • Put on Market for easy updating and sharing
  • UI / Simulate Tweaks

Features in the works:
  • Use OpenGL to render
  • Use native code to calculate the physics
  • More Fun Stuff

If you have any comments, bugs, or suggestions, please post them here!


*** Download ***
As this app is now on the Android Market, you can either find it by following the link or using the QR code.



http://www.quinndamerell.com/LiquidPhysics/

https://market.android.com/details?i....liquidphysics

All credit goes to the original poster and the creator of the water algorithm!

Enjoy
Last edited by quinbd; 7th February 2011 at 08:59 PM. Reason: Update
The Following 13 Users Say Thank You to quinbd For This Useful Post: [ View ]
21st December 2010, 07:00 PM   |  #8  
OP Senior Member
Flag Carlisle
Thanks Meter: 31
 
126 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by quinbd

Hey, I took the liberty of adding some features

Updates:

  • Fit to screen size
  • Gravity follows phone
  • Changed particle color :P

Here is the apk for now, I will repost the source later.

All credit goes to the original poster!

Enjoy

Thanks! I like your version better. I wish there was more particles but my phone just isn't fast enough.
21st December 2010, 08:42 PM   |  #9  
Senior Member
Thanks Meter: 5
 
165 posts
Join Date:Joined: Aug 2010
More
Well, I hate Java and I love C/C++, so I might end up porting this to use JNI. This would probably be one of those areas where using C++ for particle movement could really make a big difference. Thank you.
22nd December 2010, 01:39 AM   |  #10  
Junior Member
Thanks Meter: 1
 
15 posts
Join Date:Joined: Jul 2010
Very cool.

I noticed you said it's "as fast as I could get it", but you're using postDelayed with 50ms intervals, which limits the refresh rate to 20Hz.
I changed that to 17ms, and added a simple fps display to test - it seems to max out around 30fps on my phone.
Attached Files
File Type: zip LiquidWallpaper.zip - [Click for QR Code] (45.3 KB, 843 views)

The Following User Says Thank You to dan56965 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Apps and Games by ThreadRank