HTML5 Diffusion FX

Monkey Archive Forums/Monkey Projects/HTML5 Diffusion FX

Richard Betson(Posted 2011) [#1]
HTML5 - Diffusion FX

This is a diffusion effect done with Monkey an 'impixi's' canvas wrapper. It should hopefully hit the max 30 fps on your browser. Let me know how it works. :) It will cycle through five effects's.

http://redeyeware.uphero.com/monkey/HTML5_diffusion_example/html5/HTML5_Diffusion_Example.html

I'll post some code soon.

-=> - EDIT -

>Source code listed below.<

Here is a new version of this demo with optimization's to math and display. Hit 'F1' to change the screen to 1/4 size or 1/4 x 4 (quad) and full size with four modes of quality (pixel dropout). Hit 'F2' to toggle/change the display to a wide (mid third) of full size.

Hopefully this will run a bit faster.

http://redeyeware.uphero.com/monkey/HTML5_diffusion_example_2/html5/HTML5_Diffusion_Example.html

Thanks for testing. :p


Shinkiro1(Posted 2011) [#2]
25 fps on Safari. Nice effects though.


okee(Posted 2011) [#3]
31 fps in chrome, nice effects


DruggedBunny(Posted 2011) [#4]
Solid 31 FPS here. Good to see this stuff is workable!


Beaker(Posted 2011) [#5]
Solid 3 fps on my iPad2 but it works. :)


slenkar(Posted 2011) [#6]
I got 5 FPS on my Celeron PC from 2003,
looks great


bruZard(Posted 2011) [#7]
31FPS in FF and Chrome. Really nice FX!


TheRedFox(Posted 2011) [#8]
21 FPS on Chrome on my Core Duo.


CopperCircle(Posted 2011) [#9]
31 FPS on IE9 on my VAIO Z1


matty(Posted 2011) [#10]
Steady 29fps on Chrome on my work pc (not sure of specs).


Armitage1982(Posted 2011) [#11]
8 FPS on Chrome and on my Acer Aspire One D255 (but the Atom N550 is not the fastest thing around ;).
Nice one


wiebow(Posted 2011) [#12]
1 FPS on my ASUS Transformer tablet. I doubt the browser is up to it though.

31 FPS on my laptop with Chrome. Nice!


Floyd(Posted 2011) [#13]
31 FPS with Chrome, but only 6 with IE 9.


Samah(Posted 2011) [#14]
iPad2 (Safari): 3 fps
iPad2 (iCabMobile): 1 fps
iPod Touch (Safari): 4 seconds per frame...
iPod Touch (iCabMobile): 4 seconds per frame...
Xoom (Default Browser): 1 fps
Xoom (Dolphin Browser HD): 1 fps
Xoom (Firefox): 4 fps
Desire HD (Default Browser): 5 seconds per frame...
Desire HD (Dolphin Browser HD): 4 seconds per frame...
PC (Firefox 8): 30 fps with occasional stuttering (might be other tabs lagging it)
PC (Chrome 15): 30 fps
PC (IE8): Nothing... XD

Specs are in my sig.


impixi(Posted 2011) [#15]
Looks like the tablet and mobile platforms' browsers do not yet feature hardware acceleration for the HTML5 canvas object. That or they just lack the power regardless. A shame.


Neuro(Posted 2011) [#16]
13in 2011 MacBook Pro on Firefox - 31 FPS
iPad 2 - 1 FPS
iPhone 4s - Staggering 1 FPS


AdamRedwoods(Posted 2011) [#17]
Looks like the tablet and mobile platforms' browsers do not yet feature hardware acceleration for the HTML5 canvas object. That or they just lack the power regardless. A shame.

I expected better from iPad with all the anti-Flash touting.... a shame indeed.


Volker(Posted 2011) [#18]
Samsung Galaxy Tab Android 7" 1Ghz
(Default Browser): 1 fps
(Dolphin Browser): 1 fps
(Firefox): 3 fps


Richard Betson(Posted 2011) [#19]
Wow,

Cool to see this tested on so many different devices.:)

Here is a new version of this demo with optimization's to math and display. Hit 'F1' to change the screen to 1/4 size or 1/4 x 4 (quad) and full size with four modes of quality (pixel dropout). Hit 'F2' to toggle/change the display to a wide (mid third) of full size.

Hopefully this will run a bit faster.

http://redeyeware.uphero.com/monkey/HTML5_diffusion_example_2/html5/HTML5_Diffusion_Example.html

Thanks for testing. :p


Beaker(Posted 2011) [#20]
4fps on iPad2 now. Yay!

AdamRedwoods - I suspect Flash running the same app (without using Alchemy) on a similar specced Android device would yield similar results, ie. a low fps. This effect is quite demanding.


Richard Betson(Posted 2011) [#21]
^This effect is all 2D (pixel writes), so it looks as if tablets and mobile devices are out. It 'does run well' on a PC or Mac desktop/laptop but even then should have couple of cores and descent video.

I am impressed by the speed at which I can write to a canvas using 'impixi's' mod. As soon as I see a clear path for webGL and Monkey I am pretty sure I could do this effect on a mobile device (phone/tablet) at a reasonable fps.


Richard Betson(Posted 2011) [#22]
Here is the source code for this project. Enjoy :p



L8r,
- Rich -