Mozilla's PlayCanvas Open Sourced
Mozilla's PlayCanvas Open Sourced
Written by Alex Armstrong   
Thursday, 05 June 2014

In the same week as Apple announced support for WebGL in both OS X and iOS 8, Mozilla's WebGL Game Engine PlayCanvas has gone open source and the engine's source is now live on GitHub.

Mozilla formed PlayCanvas over two years ago. It is a JavaScript library that has been designed to be easy to work with and "blazingly fast".

It implements all of the major components that you need to write high quality video games: 

  • Graphics: model loading, per-pixel lighting, shadow mapping, post effects
  • Physics: rigid body simulation, ray casting, joints, trigger volumes, vehicles
  • Animation: keyframing, skeletal blending, skinning
  • Audio engine: 2D and 3D audio sources
  • Input devices: mouse, keyboard, touch and gamepad support
  • Entity-component system: high level game object management

According to David Evans in his announcement on the PlayCanvas blog that the platform is now open sourced under the MIT licence

PlayCanvas exposes a game framework that implements an entity-component system, allowing you to build the objects in your games as if they were made of Lego-like blocks of functionality.

He also explains that to ensure performance PlayCanvas is built as a hybrid of hand-written JavaScript and machine generated asm.js.

The most performance critical portion of the codebase is the physics engine. This is implemented as a thin, hand-written layer that wraps Ammo.js, the Emscripten-generated JavaScript port of the open source physics engine Bullet.

If you haven’t heard of Bullet before, it powers amazing AAA games like Red Dead Redemption and GTAV. So all of this power is also exposed via the PlayCanvas engine. Ammo.js executes at approximately 1.5x native code speed in recent builds of Firefox so if you think that complex physics simulation is just not practical with JavaScript, think again.

 

If you are thinking "OK, another game engine", it is worth pointing out that you also get access to a set of in-browser design tools that make use of PlayCanvas and allow you to work interactively.

 

playcanvased

The PlayCanvas Object Editor - what two chairs and a concrete barrier are doing in a game is a good question.

As well as providing tools to help you develop games, PlayCanvas also hosts them for you for free - but only if your project is public. If you want to have a private developement area then you have to pay $15 per month for a Pro account. 

 

swooponplaycanvas

 

The PlayCanvas site has some games available for your to play and explore including Swoop which runs in both mobile and desktop browsers as is on billed as:

a great demonstration of what you can achieve with HTML5 and WebGL

 

 

More Information

PlayCanvas

Play Canvas Engine on GitHub

PlayCanvas goes open source

Related Articles

Mozilla Enhances Browser-Based Gaming

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


Swift Adds More Generics Support
04/04/2018

Swift 4.1 is now officially released. It contains updates to the core language, including more support for generics and new build options, as well as minor enhancements to the Swift Package Manager an [ ... ]



What Attracts Devs To Open Source
02/04/2018

In an era in which we are becoming more an more reliant on open source software, it is important to know how to  recruit and retain core developers - the ones that are key to a project's survival [ ... ]


More News

 

 
 



Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 05 June 2014 )
 
 

   
RSS feed of news items only
I Programmer News
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.