18th December 2010, 05:25 PM
(Last edited by jgittins; 23rd December 2010 at 12:11 PM .)
Senior Member -
OP
Thanks Meter
29
Posts: 126
Join Date: Nov 2010
Location: Carlisle
[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
The Following 16 Users Say Thank You to jgittins For This Useful Post: [ Click to Expand ]
0utkast (22nd December 2010),
bonedaddy42 (18th December 2010),
camoway (22nd December 2010),
eagledipesh (27th May 2011),
gilaxone (22nd December 2010),
gravis86 (23rd December 2010),
Iconia (7th May 2011),
jdelano (31st December 2010),
nsa666 (18th December 2010),
quinbd (21st December 2010),
roirraW "edor" ehT (22nd December 2010),
savoxis (22nd December 2010),
Spidious (18th December 2010),
theosotos (14th March 2011),
WickedStyx (22nd December 2010),
Wulfric (22nd December 2010)
19th December 2010, 12:44 AM
Senior Member
Thanks Meter
7
Posts: 297
Join Date: May 2010
Location: Los Angeles
It runs slower than my pc; its not fullscreen.
19th December 2010, 01:08 AM
Senior Member -
OP
Thanks Meter
29
Posts: 126
Join Date: Nov 2010
Location: Carlisle
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
Senior Member
Thanks Meter
65
Posts: 1,930
Join Date: Jun 2006
pretty sick
Phones:
1. Galaxy S2 Skyrocket
2. iPhone 4S
Tabs:
Apple iPad 2
Galaxy Tab 10.1
19th December 2010, 02:36 AM
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
19th December 2010, 04:00 AM
Senior Member -
OP
Thanks Meter
29
Posts: 126
Join Date: Nov 2010
Location: Carlisle
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: [ Click to Expand ]
21st December 2010, 06:48 PM
(Last edited by quinbd; 7th February 2011 at 08:59 PM .)
Reason: Update
Junior Member
Thanks Meter
17
Posts: 12
Join Date: Jul 2010
Location: West Lafayette, IN
DONATE TO ME
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 ]
0utkast (22nd December 2010),
camoway (22nd December 2010),
dorsai3d (23rd December 2010),
emelie (5th January 2011),
freekyfrogy (26th December 2010),
gilaxone (22nd December 2010),
gravis86 (23rd December 2010),
jgittins (21st December 2010),
oZed (22nd December 2010),
philburkhardt (30th December 2010),
random1204 (24th December 2010),
Raptordin (4th April 2011),
XpoX (1st January 2011)
21st December 2010, 07:00 PM
Senior Member -
OP
Thanks Meter
29
Posts: 126
Join Date: Nov 2010
Location: Carlisle
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
Senior Member
Thanks Meter
4
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
22nd December 2010, 01:39 AM
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.
The Following User Says Thank You to dan56965 For This Useful Post: [ Click to Expand ]
Thread Tools
Search this Thread
Display Modes
Linear Mode
Most Thanked In This Thread
13 Update Hey, I took the liberty of
adding …1 Hi, I'm Grant Kot. I just
submitted an … 1 Updates (quote) Check the newest
version …1 Nice app guys. Thanks. 1 Very cool.
I noticed
you said it's …