Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,492 Members 39,394 Now Online
XDA Developers Android and Mobile Development Forum

[App] Liquid Physics Live Wallpaper

Tip us?
 
jgittins
Old
(Last edited by jgittins; 23rd December 2010 at 12:11 PM.)
#1  
Senior Member - OP
Thanks Meter 31
Posts: 126
Join Date: Nov 2010
Location: Carlisle
Default [App] Liquid Physics Live Wallpaper

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, 6447 views)
File Type: zip LiquidWallpaper.zip - [Click for QR Code] (43.6 KB, 1601 views)
The Following 18 Users Say Thank You to jgittins For This Useful Post: [ Click to Expand ]
 
worker1
Old
#2  
worker1's Avatar
Senior Member
Thanks Meter 9
Posts: 301
Join Date: May 2010
Location: Los Angeles
It runs slower than my pc; its not fullscreen.
 
jgittins
Old
#3  
Senior Member - OP
Thanks Meter 31
Posts: 126
Join Date: Nov 2010
Location: Carlisle
Quote:
Originally Posted by worker1 View Post
It runs slower than my pc; its not fullscreen.
Yeah I know. That's as fast as I could get it to run.
 
SiL3nTKiLL
Old
#4  
Senior Member
Thanks Meter 67
Posts: 1,929
Join Date: Jun 2006
pretty sick
Phones:
1. Galaxy S2 Skyrocket
2. iPhone 4S
Tabs:
Apple iPad 2
Galaxy Tab 10.1

 
ZekeWolf
Old
#5  
ZekeWolf's Avatar
Senior Member
Thanks Meter 9
Posts: 402
Join Date: Dec 2008
Nice! Would be nice if it reacted to phone movement.

Sent from my HTC HD2 using XDA App
Wizzard -> Blackstone -> Leo, Blade, X10 Mini -> Galaxy Nexus
GNex
 
jgittins
Old
#6  
Senior Member - OP
Thanks Meter 31
Posts: 126
Join Date: Nov 2010
Location: Carlisle
Quote:
Originally Posted by ZekeWolf View Post
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: [ Click to Expand ]
 
quinbd
Old
(Last edited by quinbd; 7th February 2011 at 08:59 PM.) Reason: Update
#7  
Junior Member
Thanks Meter 17
Posts: 12
Join Date: Jul 2010
Location: West Lafayette, IN

 
DONATE TO ME
Default 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
The Following 13 Users Say Thank You to quinbd For This Useful Post: [ Click to Expand ]
 
jgittins
Old
#8  
Senior Member - OP
Thanks Meter 31
Posts: 126
Join Date: Nov 2010
Location: Carlisle
Quote:
Originally Posted by quinbd View Post
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.
 
/rant/
Old
#9  
Senior Member
Thanks Meter 5
Posts: 165
Join Date: Aug 2010
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.
MCPD, MCTS and more! | "It's 7:05am. I have not slept." | www.google.com
Asus Eee Pad Transfomer, Ice Cream Sandwich 4.0.3, 2.6.39.4-android#1
Nokia Lumia 800, Windows Phone, 7.10.8773.98, 1750.0805.8773.12220
Samsung Galaxy Nexus, Android Jelly Bean 4.2.1 JOP40D, 3.0.31-gd5a18e0
HTC Desire, Gingerbread 2.3.5 GRJ90, Redux2 ZM4.4, 2.6.35.13-thalamus
 
dan56965
Old
#10  
Junior Member
Thanks Meter 1
Posts: 15
Join Date: 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, 841 views)

The Following User Says Thank You to dan56965 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes