Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Browserscene: Creating demos on the Web


Published on

Published in: Technology, News & Politics
  • Be the first to comment

Browserscene: Creating demos on the Web

  1. 1. NE CE S b R e E W S he W on t O os kes R m B de Ro bH aw ing at CreHi, I’m Rob Hawkes and I’m here tonight to talk a little about creating demos using the latestWeb technologies.I call it the browserscene, but feel free to call it the demoscene on the Web.
  2. 2. If you don’t already know, I work at Mozilla.My official job title is Technical Evangelist, but I prefer Rawket Scientist, which is what it sayson my business card.Part of my job is to engage with people like you and me about cool new technologies on theWeb.
  3. 3. Created by Phil Banks (@emirpprime)Aside from that I spend most of my time experimenting with HTML5 and other cooltechnologies.I basically have an addiction to visual programming and hacking around with code.It’s fun!
  4. 4. I’ve never been to Finland before, and for some reason I thought it would be really cold overhere.Turns out it’s hotter than England, and way flatter than I imagined!
  5. 5. yo u r fo xists dy rea hnolog ye are he tec sers T row BOver the past few years browsers have come on leaps and bounds with the types of thingsthat they can do.What’s been particularly interesting is the focus on audio and visual media with theintroduction of HTML5 and JavaScript APIs.This now allows us to create things like this…
  6. 6. This is No Comply, a WebGL and audio demo created by Mozilla volunteers to show off thetechnologies.
  7. 7. s? g ie o lo rs c hn ow se e br e t da y’s th res in to are tu at Fea WhLet’s run through some of the most interesting of these new technologies, the kind of onesyou might want to use.
  8. 8. GL eb & W phics vas 3D gra an and C 2DCanvas & WebGL
  9. 9. eo Vid ti on ipula an dm an ck ba lay op VideVideo API
  10. 10. a ta io D ud ation & A an ipul dio an dm Au ba ck play dio AuAudio API + the Audio Data API
  11. 11. ion t ca are eolo ou G herey tw ou ing FindGeolocation
  12. 12. e ts ock bS ation e W omm un ic ec l-tim ReaWebSockets
  13. 13. n ts Fo eb ap hy & W typo gr S3 sa nd CS he et tyles ds de gra UpCSS3 & Web Fonts
  14. 14. D B xed de ws er & In the bro age ta in tor ring da al S Sto oc LLocal Storage & IndexedDB
  15. 15. s? gie olo ns chn freaso te so ese Lot th use hy WSo these technologies are cool and all, but why should you be using them over others, likeFlash?
  16. 16. o l g co thin s now e m The timei f so ld o o resh ThIn short, the time is now; we’re on the threshold of something awesome.We can now create amazing demos, visualisations, and games with nothing more than thetechnologies we would normally use to build a website.This is definitely a good time to be developing on the Web.
  17. 17. um inim ght a m ei tw igh s to ode isl ing he c th T ing eep KThe code and assets are inherently lightweight.Text and image files don’t take up much space.
  18. 18. in s g lu ork n p o tw nce hings jus lia T o re NYou don’t have to download and install anything for a demo to run; it just works.It’s just HTML and JavaScript.
  19. 19. ree is f n t ch e m er and spee lop eve as in be D FreeDevelopment can be completely free.You don’t need to pay for any editing tools.You could easily use a simple text editor, or the browser itself.
  20. 20. e n idd r h ve d o he lo pile Sharin gt com ’t e isn od CNo compilation; the code is completely open for others to look at and learn from.I find this kind of open development gives me a warm and fuzzy feeling inside, but thatmight just be because I’m slightly crazy.
  21. 21. o s d em ed n e at rs ce lready cre se ea row ersh av g b oth at tin Wh ExisNow, let’s take a look at some of the cool demos that others have put together with thesetechnologies.
  22. 22. Flight of the Navigator
  23. 23. Globe Tweeter
  24. 24. Rofox
  25. 25. CSS Nyan Cat
  26. 26. Slamdown from the Mozilla Flame Party Helsinki
  27. 27. Infinite beanstalk
  28. 28. WebGL spiders
  29. 29. Silk
  30. 30. Rome
  31. 31. WebGL photo particles
  32. 32. HelloRacer
  33. 33. Keylight
  34. 34. This is something I made especially for Assembly.It’s an audio visualiser that uses WebGL and HTML5 Audio.If you stick around for my seminar at 1pm I’ll be running through the code behind this.
  35. 35. os d em m e r he o th ated t ot o f dic d s es de dre eb sit un arew H Th ereThese are really just a few demos that are out there right now, and the list is growing everyday!There are some great sites to keep track of the latest ones.
  36. 36. Mozilla Demo Studio
  37. 37. Chrome Experiments
  38. 38. Creative JS
  39. 39. fo r u t h o rs a tc st othe o w ong s t ty, am ing pa tib ili Th rcom se BrowCreating demos with these technologies is great, but there are a few things to watch out for.
  40. 40. nce a rm ration fo cele e r s p ac va and an at ion C tim is OpCanvas performance and support.requestAnimationFrame, hardware acceleration, etc.
  41. 41. o rt p p su it GL ha ve eb sers W brow all NotLack of WebGL support in some browsers.It’s not on IE, Opera, iOS, or Android… yet.
  42. 42. o rt p p I s u ve it AP ers ha ata row s io D ta ll b d No AuLack of Audio Data API support in browsers.Right now, only Firefox and Chrome have some sort of Audio Data API.
  43. 43. o rt pp su it e ts ha ve ock brows ers bS all We NotAnd again lack of support, this time with WebSockets.
  44. 44. n e sc e s e r rces ro w res ou e b sa nd g th utorial rnin T LeaIf you want to learn more about the browserscene and these technologies then you can findall you need online.Here are just a few of them…
  45. 45. Mozilla Developer Network
  46. 46. Paul Lewis
  47. 47. HTML5 Rocks
  48. 48. o rks e w nt ra m pm e d f evelo an gu pd ies eedin rar Sp LibYou don’t always have to roll your own solutions, though.There are a variety of libraries and frameworks out there that provide basic functionality andgenerally speed up development.I’m going to go over just a few of them, but I advise you to look for more if these don’t fulfilyour requirements; there are a lot more out there.
  49. 49. jQuery
  50. 50. Three.js
  51. 51. Socket.IO
  52. 52. Box2dWeb
  53. 53. Gaming engines, like Impact and Isogenic Engine.
  54. 54. ld? ho ture g soon e fu f comin th ol stuf oes Co t d ha WSo what does the future hold for the browserscene?
  55. 55. ro ls n t co rd tick keyboa ys ea nd Jo us o orem NomJoystick DOM events so you can get a console-like experience.
  56. 56. PIs e A evic bcam D and we ne ho icrop them sing cces ADevices API to access data from peripherals, like a microphone or webcam.
  57. 57. io n ra t c e le ou nd a c ea ll r ar e rm a nc rdw pe rfo Ha Be tterBetter hardware acceleration and performance in all areas.
  58. 58. ROB HAWKES @robhawkes Personal website and blog RECENT PROJECTS MORE COOL STUFF Twitter sentiment analysis Mozilla Technical Evangelist Delving into your soul. My job HTML5 & WebSockets game. Web development podcast.Twitter - @robhawkesRawkes -
  59. 59. DEV DERBY Experimenting with the latest Web technologies Every month This month is the History API Manipulate browser history Win prizes (like an Android) Next month is Geolocation DEVELOPER.MOZILLA.ORG/EN-US/DEMOS/DEVDERBYAlso, you should definitely take part in the Dev Derby, which is a monthly competition run bythe Mozilla Developer Network to see what can be done with the latest Web technologies.This month the focus is on the History API, which allows you to manipulate the history of thebrowser so things like AJAX don’t break anything.The winners get cool prizes, like an Android phone. It’s a great excuse to play around withthese technologies.
  60. 60. FOUNDATION HTML5 CANVASMy amazing book on canvas, animation, and making games. Out now Paperback and digital formats Become a canvas master Learn how to animate Make two cool space games RAWKES.COM/FOUNDATIONCANVAS
  61. 61. O U Y s? K tion N ues A yq TH An R b es wk es Ha wk ob ha ro @Thank you.If you have any questions feel free to grab me on Twitter (@robhawkes), or