pouët.net

Fake Plastic Cubes by Gasman
[nfo]
screenshot added by gasman on 2010-09-05 04:12:38
platform :
type :
release date : september 2010
release party : Sundown 2010
compo : pc intro
ranked : 1st
  • 13
  • 8
  • 3
popularity : 60%
 60%
  • 0.42
alltime top: #9282
added on the 2010-09-05 04:12:38 by gasman gasman

popularity helper

increase the popularity of this prod by spreading this URL:

or via: facebook twitter pinterest tumblr bluesky threads

comments

An experiment with some new Javascript 64K intro techniques (softsynth, PNG compression) that ended up falling a bit short of the whole '64K' thing.

Not sure exactly what hardware spec you need to make this run convincingly without stuttering (slightly more than a MacBook Pro, apparently). Also, if you're running this directly off disk (rather than accessing it through a web server) you'll probably have to arse around with Flash plugin permissions and things... so don't bother, just watch the online version instead.
added on the 2010-09-05 04:24:35 by gasman gasman
Bouncy framerate, but very cute 9k. Looking forward to the one thats not like this one :)
rulez added on the 2010-09-05 10:07:12 by nerve nerve
Fuctional proof of concept i'd say. Opera didn't like it, Chrome(Iron) did and very smooth too with the odd mini pause on C2D @ ~3.4Ghz. No clue on FF.
added on the 2010-09-05 13:16:13 by Intrinsic Intrinsic
i liked it, all those oldschool colors look new in the modern shader scene ) also, music is nice, but it was stuttering all the way on my machine.
rulez added on the 2010-09-05 13:48:57 by elfh elfh
the internet is strong with this one
rulez added on the 2010-09-05 14:11:24 by jaw jaw
Didn't work in FireFox at all, ran in chrome but lots of pauses (AMD Athlon X2 2Ghz, Radeon HD4200).
rulez added on the 2010-09-05 14:23:58 by xeron xeron
BB Image for the POC.

Watched it with wifey and she laughed when we saw your " Message to Javascript coders everywhere: Quit it with all those 256b/1K things, and start doing some proper demos instead. ".

/U_____U\


But but .... tiny prods are "fast", interesting and rewarding.

rulez added on the 2010-09-05 18:15:20 by p01 p01
windows
firefox 3.6.3 doesn't open the page
chrome opens the page but only plays 3 notes
Indeed, Chrome does not like the sound, but I did at the party, so I'm sticking a thumb up Gasman!
rulez added on the 2010-09-05 21:36:18 by icabod_ra icabod_ra
disfunctional crap
sucks added on the 2010-09-05 21:43:48 by T$ T$
Works great in Chrome on a Macbook, maybe with some frame stuttering. Music plays smoothly. Couldn't start it in Firefox.
rulez added on the 2010-09-05 22:29:45 by svo svo
pointless exercise
sucks added on the 2010-09-05 22:34:16 by SiR SiR
Again. Javascript. Lost for words.

rulez added on the 2010-09-05 23:41:46 by Zeb Zeb
some cool tricks and attitude
rulez added on the 2010-09-06 03:42:01 by Weyland Yutani Weyland Yutani
does not compute on ff 3.6.8 here.
added on the 2010-09-06 09:30:20 by v3nom v3nom
Quite nice.
rulez added on the 2010-09-06 10:20:39 by Mystra Mystra
FF or IE doesnt work, others I dont use. Youtube please.
added on the 2010-09-06 10:27:22 by jack-3d jack-3d
Online version is now fixed for FF3.6, but it's a slideshow from hell.

(It's fine on FF4 beta, if that's any consolation. At least upgrading your browser is easier than upgrading your graphics card...)
added on the 2010-09-06 11:17:32 by gasman gasman
gasman, not if you're stuck with corporate policies (which in my case => IE6)
rasmus: Tell me, what other PC demos from 2010 have you run on your locked-down corporate desktop running 10 year old technology lately?
added on the 2010-09-06 13:01:24 by gasman gasman
visually not so appealing, technically... no idea tbh =)
but deserves a thumb just for the radiohead reference.
rulez added on the 2010-09-06 13:16:00 by wysiwtf wysiwtf
I agree. 1k prods is so last month ;)
added on the 2010-09-06 13:34:17 by mrdoob mrdoob
trace: What about the next 4 days ?

wysiwtf: Technically it's quite neat but no technical breakthrough or "first" AFAIK.

gasman: Any idea how the heavy is the softsynth ? How about downsampling to 22Khz and switching to mono ? Haven't had time to play with the Audio Data API myself but I've got the feeling that on fly synth is still a tad too heavy for a demo.
added on the 2010-09-06 14:46:34 by p01 p01
Yep, there are no real 'world firsts' in this, although the PNG compression and softsynth are possibly firsts for actual-released-scene-productions (correct me if I'm wrong!)

p01: I haven't done any formal profiling on the softsynth, but guessing from the blips in playback it's probably around 5% CPU on Chrome / MacBook Pro. I suspect the issue is not really CPU load, but coming up with a cleverer way to get around Javascript's inherent single-threadedness. HTML5 web workers are top of my list to investigate... incidentally, the Flash fallback code (borrowed from dynamicaudio.js and hacked around a bit) doesn't specify a sample rate at all, so I'm not 100% certain that it's even possible to use something other than 44.1KHz stereo. It probably is though.

(ooh look, they've just changed the API in the latest FF4 beta. How handy.)
added on the 2010-09-06 16:22:20 by gasman gasman
this seemed pretty point less. the music was stuttering and the visuals borring.
sucks added on the 2010-09-07 06:42:13 by rasmus/loonies rasmus/loonies
gasman: i thought you could fake multi-tasking in js with timers? at least at low frequencies.
'fake' being the operative word :-) Any events that fire while code is running are queued up and executed when the processor becomes free again, so the synth would still hold up the main graphics loop even if it was running off its own timer.
added on the 2010-09-07 15:15:47 by gasman gasman
Pretty neat, and the png-compression is quite a interesting idea
rulez added on the 2010-09-07 17:18:39 by micksam7 micksam7
Gasman: Yep, AFAIK, Fake Plastic Cubes is the first scene prod to use PNG compressed code + the Audio data API
added on the 2010-09-07 22:53:33 by p01 p01
Sloooooow
added on the 2010-09-08 13:08:55 by Manwe Manwe
This is weird. It's quite nice for eyes, but I totally don't know what's behind it. And it's even very slow in online version. For me, not quite interesting. Sorry. Maybe you could put your effort to a Spectrum production again next time.
added on the 2010-09-08 15:44:12 by aki aki
@Factor6: On a ZX this runs smooooooth :)
added on the 2010-09-09 20:54:56 by icabod_ra icabod_ra
blog me beautifull

(also source code, which certainly contains all sorts of useful stuff for anyone embarking on Javascript 64Ks in future.)
added on the 2010-09-13 02:25:40 by gasman gasman
What micksam7 said.
rulez added on the 2010-11-13 22:44:34 by mog mog

submit changes

if this prod is a fake, some info is false or the download link is broken,

do not post about it in the comments, it will get lost.

instead, click here !

[previous edits]

add a comment