Now working on Firefox and other browsers.
2015-04-14 21:45:08 by XIX

After some considerable work we now have an Emscripten build as well as a NaCl build. Originally I tried using Pepper.js which seemed like a quicker port as we could just reused the exact same pepper API calls but sadly its missing plenty of mappings to needed API calls and I had to switch to a native Emscripten build to get things working.

Not too hard to achieve but it took a few days of fighting APIs and building annoying wrapper code so we can treat everything the same. It's a real shame we cant do proper threads under Emscripten as I can see that causing future problems even if I have been avoiding threads so far. Still the number of CPU cores is only going to increase and this is going to be a real problem for future JS based performance.

What this all means to you dear reader is that the web version of Swanky Paint should now work on any browser that has working javascript and WebGL. The WebGL is the only problematic dependency as sometimes browsers blacklist graphics cards with bad drivers and this becomes disabled even if the machine is capable of supporting it.

The order of engine preference is pNaCl under Google Chrome then asm.js under Firefox, if it works well in any other browser then it's a miracle... So far I've had no luck with it working under Android but maybe it will on some other devices.



So Google Chrome (not Chromium as it may have NaCl disabled) is still recommended but no longer required.


More posts
PREVNEXT
posted by JetSet211 on 2015-04-27 02:18:01 (3 years ago)
bless
posted by JetSet211 on 2015-04-27 02:17:27 (3 years ago)
ayyy that means im back baaaabyyy
4 months ago shi commented on swanky
4 months ago shi commented on swanky
11 months ago Crustolio commented on swanky
11 months ago ABRAXAS commented on swanky
12 months ago Crustolio commented on swanky
12 months ago Crustolio commented on swanky
12 months ago ABRAXAS commented on swanky
12 months ago Crustolio commented on swanky
12 months ago ABRAXAS commented on swanky
12 months ago ABRAXAS commented on swanky
12 months ago ABRAXAS commented on swanky
12 months ago ABRAXAS commented on swanky
12 months ago ABRAXAS commented on swanky
12 months ago ABRAXAS commented on swanky
13 months ago earthwillbemyfinalbed commented on swanky
14 months ago Crustolio commented on profile of Crustolio
14 months ago Crustolio commented on profile of Crustolio
15 months ago Crustolio commented on profile of Crustolio
15 months ago Crustolio commented on profile of Crustolio
15 months ago Crustolio commented on profile of Crustolio
15 months ago shi commented on swanky
15 months ago Crustolio commented on swanky
16 months ago earthwillbemyfinalbed commented on profile of Crustolio
16 months ago Crustolio commented on swanky
16 months ago Jambi commented on swanky
18 months ago Crustolio commented on swanky
18 months ago Crustolio commented on profile of Crustolio
18 months ago Crustolio commented on profile of Crustolio
21 months ago Crustolio commented on swanky
21 months ago Crustolio commented on swanky
21 months ago MicroBit commented on swanky
22 months ago Crustolio commented on swanky
23 months ago Crustolio commented on swanky
24 months ago shi commented on swanky
2 years ago Crustolio commented on swanky
2 years ago Crustolio commented on swanky
2 years ago shi commented on profile of Crustolio
2 years ago shi commented on profile of Crustolio
2 years ago Crustolio commented on profile of Crustolio
2 years ago Crustolio commented on profile of Crustolio
2 years ago Crustolio commented on profile of Crustolio
2 years ago Manunuu commented on swanky
2 years ago shi commented on swanky
2 years ago shi commented on swanky
2 years ago Crustolio commented on swanky
2 years ago Crustolio commented on swanky
2 years ago Crustolio commented on swanky
2 years ago shi commented on swanky
2 years ago Crustolio commented on swanky
2 years ago Crustolio commented on swanky
SWANKYART is a new kind of pixel art community based on daily challenges of restricted palettes & effects using the online version of the pixel paint package, Swanky Paint.
Swanky Art is optimised for browsers that support Native Client but should run fine on any browser with WebGL support.
Found a bug? Post them and feature requests on the forum.
Artwork created for Swanky Art released under the Creative Commons License license. Made by W E T G E N E S 2016