Maintenance Saturday June 10, 9am UTC

The PlayCanvas website and editor will be unavailable intermittently from 9am UTC tomorrow (Saturday 10th June) while we perform server maintenance. We will endeavor to keep downtime to a minimum but the period of downtime may be several hours. Stay informed with updates via this blog post and on our Twitter Account..

We apologies for any inconvenience this may cause.

Update: Maintenance is complete at 2.30pm UTC. Thanks for you patience.

 

Introducing the new Code Editor

Code Editor

Today we’re excited to unveil the new code editor for all our PlayCanvas users. We’ve been taking your feedback since we launched Scripts 2.0 last year and we’ve updated the code editor to make working on scripts in PlayCanvas much easier.

Some of the new features introduced by the new editor:

File view & tabs

The most obvious difference is now we let you browse all your text files in the code editor and open multiple files in the same window. No more hunting through browser tabs to find that file you were editing.

Goto Anything

Editor Goto Anything

Goto Anything (Ctrl/Cmd+P) is the power users dream option. Jump to any text file in your project with a few keystrokes.

Enhanced keyboard shortcuts

We’ve had a complete overhaul of the keyboard shortcuts. All your standard text editor shortcuts are there. Including using multiple cursors and expanding selections.

Better find & replace

Editor Find

We’ve beefed up the find and replace with a new interface and easy to use extras like case-senstive and regular expressions.

We hope you enjoy using the new code editor as much as we do!

WebVR Lab launches with Chrome 56 for Daydream

Today we’re excited to launch the WebVR Lab, a living project built by the PlayCanvas team to help developers learn about creating scalable and responsive WebVR applications for all devices.

Try the lab right now:

… 

Mozilla Launches WebGL 2 with PlayCanvas

Today is a huge milestone for real-time graphics on the web. Mozilla has launched Firefox 51, the first browser to bring WebGL 2 to the masses. WebGL has been around since 2011, the year when PlayCanvas was founded. 6 years on, the open standard for web graphics has taken a huge leap forwards, exposing far more GPU capabilities to developers, making for ever richer, more beautiful experiences.

To mark the launch of WebGL 2, Mozilla and PlayCanvas have teamed up to build ‘After the Flood’.

EXPERIENCE ‘AFTER THE FLOOD’ NOW

‘After the Flood’ illustrates many of the key, new aspects of WebGL 2.

  • Transform feedback: to animate leaf particles on the GPU.
  • 3D Textures: used to create procedural clouds.
  • HDR rendering with MSAA: for correct blending of antialiased HDR surfaces.
  • Hardware PCF: for better shadow filtering at a lower cost.
  • Alpha to coverage: to render antialiased foliage.
  • …and much more.

So how was all of this done? As you know, PlayCanvas is an open source game engine. All of the work to integrate WebGL 2 into the engine can be found on Github.

Other key demo features are:

  • Compressed textures: DXT, PVR and ETC1 are used to reduce VRAM usage.
  • Asynchronous asset streaming: to get the demo loading faster.
  • Runtime lightmap baking: to generate realistic shadows that render fast.
  • Procedural water ripples
  • Planar mirrors

As you can see, PlayCanvas is all about squeezing the full potential from the browser. PlayCanvas apps, like ‘After the Flood’, look beautiful, load fast and perform great.

So what’s next? First, we will refactor and merge our WebGL 2 work into PlayCanvas’ mainline codebase. Then we will enable ‘After the Flood’ on mobile. And finally, we will make the demo project public so you can see exactly how we made it:

flood_editor

Want to get creative with WebGL yourself?  Why not get started with PlayCanvas today?

Master Archer lands on Facebook Instant Games

We’re excited to announce the launch of Master Archer, our new Instant Game for Facebook Messenger. Shoot the fruit from Bob’s head and challenge your friends with your high score!

Only a week on from release and Master Archer has already cracked 1,000,000 players!

instant-game-chart

This shows the incredible viral power of Facebook’s new gaming platform.

Many developers make 3D apps with PlayCanvas, but as you can see, PlayCanvas can also be used to create beautiful 2D games as well.

To play, open Facebook Messenger, select a friend and hit the joypad icon:

play-archer

And select Master Archer from the game list!

Or you can play on facebook.com if you are using a desktop browser.

What's your high score?

Let us know your high score in the comments!

PlayCanvas in 2016 – WebGL Everywhere

Farewell, 2016! It seems that WebGL was everywhere last year, spreading across every corner of the web. And this added up to PlayCanvas’ best year yet!

Big Name Users

The last twelve months have seen some incredible companies adopt PlayCanvas. Here’s our pick of the bunch:

Disney selected PlayCanvas for the Moana-themed Hour of Code

King published Shuffle Cats Mini as a launch title for Facebook Instant Games

Miniclip published the fiendish Virtual Voodoo on their portal:

Leapfrog launched the Leapfrog Academy subscription service

Nickelodeon published the TMNT game Turflytle

Universal launched the movie Ride Along 2 with a PlayCanvas-powered Truck Tour:

So what’s attracting incredible companies like these to PlayCanvas? It’s because they need WebGL tooling that works. Other game engines have let them down and PlayCanvas is delivering the technology they need.

2016 Tech Updates

Here are our top 5 picks for PlayCanvas tech improvements during 2016:

Scripts 2.0 with hot reloading, collaborative coding and parallel on-device testing:

Integrated WebVR support with optimized stereo rendering:

Runtime generated lightmaps to bake lighting on app startup for fast rendering.

One-click texture compression to enable the loading of far more texture data.

REST API for automating development tasks via script.

Cool Games

Plenty of PlayCanvas games have been released during 2016 but we have to give special mention to Midgard’s BlastArena! It pays homage to the classic Bomberman with frenetic, insanely fun online play.

And we have to give special mention to our own online multiplayer game TANX! 2016 saw the game receive a massive upgrade, with stunning new visuals and level design.

PlayCanvas continues to race ahead as the leading platform for building lightweight, mobile-friendly WebGL content. We’ve got lots of surprises in store for 2017 and we can’t wait to share them with you. Happy New Year everyone!

Disney Selects PlayCanvas for Hour of Code

We’re proud to announce that Disney has selected PlayCanvas to power their newly launched Hour of Code application. Entitled “Moana: Wayfinding with Code”, it’s a free online tutorial to teach kids the basics of computer science.

In the tutorial, kids are tasked with using code to navigate Moana and Maui, two of the main characters, through the ocean. When they’re attacked, the students have to use their coding skills to dodge the pirates.

PlayCanvas enabled Disney to bring the beautiful visuals of Moana to the browser via WebGL-based, realtime 3D graphics.

PlayCanvas’ web-first approach makes it incredibly easy to incorporate other web technologies such as Google’s Blockly and more besides. But it also gives great performance, particularly on mobile. And the tiny footprint of the 160KB engine makes for lightning fast download times and rock-solid stability all the way down to iPhone 4S.

Try “Moana: Wayfinding with Code” now and see how Disney is leading the way in encouraging our younger generation to become tomorrow’s software engineers.

PlayCanvas December Mega Update

Time for another dev update, WebGL lovers! We’ve deployed a ton of new features, optimizations and fixes. Here’s a run-down of what’s new.

Camera Preview

A Camera Preview is now shown in the top left corner of Viewport when an entity with a camera component is selected.

camerapreview

Interactive Asset Previews

New Material, Model and Cubemap Previews are now available in the Inspector. They are interactive and clickable.

material-preview

Antialiasing Control

It is now possible to control antialiasing in Scene Settings.

antialias

Model Placement

When dragging a model to the Viewport from the Assets panel, if CRTL is held (CMD on Mac) it will put the model in front of the camera rather than at the origin.

Assets Panel Enhancements

Added toggle button to Assets panel to switch between small and large thumbnails.

thumbnail-size

Added Folder Up button to navigate to parent folder.

folder-up

Hovering on asset in Assets panel will show a tooltip with the full asset name.

asset-tooltips

Asset Replace feature is available under the context menu of an asset. It activates the asset picker so the developer can choose another asset of the same type. It will replace references with new asset in Entities and Assets.

GIF files are no longer translated to PNG. They are now treated as another valid runtime format with parity to JPEG and PNG runtime texture formats.

Code Editor Enhancements

  • Highlight current line of cursor.
  • Highlight errors.
  • Made cursor more visible.
  • Fewer disconnection messages.

Optimizations

Huge speedups achieved for both loading and rendering of scenes!

  • New thumbnail rendering system reduces VRAM usage in the Editor by up to a factor of two. This makes the Editor more stable and faster to load, especially for larger scenes.
  • Major optimisations for loading and Editor rendering process so projects with thousands of entities and assets can load and render now up to 10 times faster in extreme cases.
  • Asset load operations are now batched rather than performed one by one.
  • All engine assets are loaded only when they are required (when they are enabled), leading to reduced traffic and loading times.
  • Optimisations in internal API of Editor and UI leading to reduced garbage collection (and therefore GC stalls) and speeds up UI templating for Hierarchy and Assets panels.
  • Enabled GZIP on WebSocket traffic, which reduces data transfers for initial loading.

Fixes

  • Fixed up arrow while navigating in the Hierarchy tree.
  • Fixed sorting of folders in the Assets panel tree.
  • Fixed material overrides on the Model Component if the model asset wasn’t loaded.
  • Cubemap faces now update in the Inspector (in the Faces section) if a face texture file is changed.
  • Read-only users can now select text/number field values.
  • Double click or right mouse click on number fields now will select whole content of the field and not just part of number separated by a dot or minus sign.
  • Networking improvements have been made to reduce disconnects.

Phew! We hope you like these latest additions. Got any feedback? Comment on the forum! We’d love to hear what you think.

Instant Games and PlayCanvas

You may have seen the news about Facebook launching Instant Games in Messenger. If not here’s the launch video

Instant Games is a totally new mobile gaming platform and it’s entirely built on HTML5 games. This is tremendous news for the PlayCanvas game development community.

Games that are built using PlayCanvas will work with no modification as an Instant Game. Those games are ready to be played in the Facebook News Feed and in Messenger.

Developing Instant Games

Instant Games are playable today in the News Feed and in Messenger. However, the development platform is currently in closed beta. If you’ve started developing a game that would be suitable as an Instant Game visit Facebook to sign up for the closed beta.

PlayCanvas Instant Games

PlayCanvas is already being used to build Instant Games. The launch title Shuffle Cats Mini by King was built using PlayCanvas. Look out for more titles built using PlayCanvas in the future.

A new gaming platform

We’re tremendously excited to see Facebook launching the Instant Games platform and it is a perfect platform for PlayCanvas games. HTML games that are fast and lightweight, mobile and shareable. We hope you share our excitement and if you want to get started building your Instant Game, sign up to PlayCanvas for free today.

Tutorials section expanded!

We have just revamped the tutorials page to include many more code samples of functionality with PlayCanvas. These include common use cases such as creating an Orbit Camera around an Object, Load Assets with a Progress Bar and more.

orbit-camera

To make it even easier to find the what you need, we have also added a filter to help narrow down the search. So if you are looking at moving a camera via user input? We have it covered!

tutorial-filter

 

The tutorial section will grow as we write more samples so if there is anything you would like to see, let us know on our developer forums!