TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tearable cloth in asm.js

65 pointsby jlongsterabout 12 years ago

14 comments

nigglerabout 12 years ago
The original (<a href="http://codepen.io/stuffit/pen/KrAwx" rel="nofollow">http://codepen.io/stuffit/pen/KrAwx</a>) feels much more responsive (when feeding the same dimensions -- 114,53 -- as what your version uses), tested on Firefox 19.0.2 and Chrome 26.0.1410.65
评论 #5602884 未加载
评论 #5602852 未加载
评论 #5602899 未加载
dragos2about 12 years ago
<a href="http://i.imgur.com/P1YwnY4.png" rel="nofollow">http://i.imgur.com/P1YwnY4.png</a>
评论 #5603186 未加载
teteabout 12 years ago
On Firefox (Aurora) it has about double cloth dimensions here.
评论 #5603246 未加载
devrelmabout 12 years ago
Just installed Nightly to test this out. It doesn't work. Just sits there blinking "Seeing how much your system can handle..." with no growing cloth in the background.<p>Opened up FireBug; the console had the following error at line 18 of renderer.js:<p>&#62; NS_ERROR_FAILURE: Failure &#62; this.gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl')<p>EDIT: It doesn't work in FF 20.0.1 either... Win 7
评论 #5602857 未加载
FourBraneabout 12 years ago
Has anyone noticed that if you edit trace("Floating point literals are typed as double: " + 1.1 / 2) on lljs.org's demo to become trace("Floating point...are typed as double: " + 1.0 / 2.0) you get an answer of 0 instead of 0.5? LLJS may not be ready for prime time, so compiling crap is probably just going to produce more crap.
mtgxabout 12 years ago
This one is much slower than the Javascript one for me (using latest Chrome stable).
评论 #5603027 未加载
评论 #5602967 未加载
deathbobabout 12 years ago
works well for me in chrome / os x. Used the 'a' key to cut / tear.<p>Cool demo! I don't know much about this sort of stuff, could you talk about what's going on in the vertlet.js file a bit?
评论 #5603075 未加载
评论 #5603585 未加载
spyderabout 12 years ago
For me the cloth dimensions in Firefox go up to 122, in Nightly and Aurora go only to 85 and the lines of the cloth looks blurred. (Win8, latest NVIDIA driver)
surrealizeabout 12 years ago
For me (firefox 19), if I've scrolled down on the page, the mouse clicks seem to register on the cloth below the mouse pointer.
评论 #5602871 未加载
elliottcarlsonabout 12 years ago
It randomly has the whole cloth disconnect from the top and just fall down. Chrome 26.0.1410.65
saejoxabout 12 years ago
got 94 in chrome 26, 168 in firefox 20. Drag does not work, it only causes ripples.
评论 #5602830 未加载
nbdbvcreaabout 12 years ago
Crashes Chrome tab - draws sad face. Slow in Firefox. Windows XP.
dpeduabout 12 years ago
Clicking and dragging doesn't really work...
评论 #5602792 未加载
carterschonwaldabout 12 years ago
Crashes my iOS safari browser