From Wikipedia, the free encyclopedia
Jump to: navigation, search
The Epic Citadel tech demo for Adobe Flash Player, built using Stage3D

In computing, Stage3D (codenamed Molehill[1]) is an Adobe Flash Player API for rendering interactive 3D graphics with GPU-acceleration, within Flash games and applications. Flash Player or AIR applications written in ActionScript 3 may use Stage3D to render 3D graphics,[2] and such applications run natively on Windows, Mac OS X, Linux, Apple iOS and Google Android.[3] Stage3D is similar in purpose and design to WebGL.[4][5]


In 2011, Flash Player 11 was released, and with it the first version of Stage3D, allowing for GPU-accelerated 3D rendering for Flash applications and games, on desktop platforms such as Microsoft Windows and Mac OS X.[1]

In March 2012, Flash Player 11.2 was released, which enabled Stage3D/GPU support on Android and iOS platforms. Games utilizing Stage3D APIs would work with no changes on these mobile platforms.[6]

In June 2012, Flash Player 11.3 was released, enabling progressive streaming of Stage3D texture maps, allowing for faster performance and startup times for games and applications utilizing Stage3D.[6]

In August 2012, Flash Player 11.4 was released, which raised the supported hardware-accelerated video cards count to 2006, and allowed alpha-channels for Stage3D compressed textures.[6]

In March 2012, Adobe announced that Stage3D will be part of the premium features of the Flash Player (stating with Flash Player version 11.2), and thus not available completely free of charge to developers, but based on a revenue sharing scheme.[7][8] Various notable members of the Flash community objected to the change, referring to it as a "speed-tax".[7]

In January 2013, Adobe classified all premium features as general availability, and could be freely used by Flash applications, without requiring a license or royalty from developers or publishers.[2]

In September 2012, Flash Player 11.4 was released allowing games to target "constrained profiles" which included older graphics chips, that did not support all the features of Stage3D.[9]

In April 2013, Flash Player 11.7 was released, which supported 16-bit texture maps for Stage3D content, which allowed reduced memory usage and improved memory management.[6]

In July 2013, Flash Player 11.8 was released, which increased the maximum texture map size to 4096 x 4096, in addition to supporting rectangular (non-square) texture maps for Stage3D content. This allowed for greater detail in texture maps, and larger texture atlases to be created enabling better performance.[6]

As of 2014, GPU acceleration was removed in Flash Player 11.8 onwards for Pixel Bender scripts. Pixel Bender was an older technology for writing high-performance CPU-based image processing filters. This has disrupted a number of less well-endowed projects, including MIT's Scratch, which could not find the manpower to rapidly recode their applications.[10][11]


Stage3D was introduced in Adobe Flash Player 11.0 and AIR 3.0 in order to facilitate GPU-acceleration of 3D content in Flash applications[1][12] In Flash Player 10 and earlier, 3D Flash applications had to render 3D graphics completely on the CPU. Flash Player 10 supported a limited form of GPU acceleration support for materials, in an API called Pixel Bender.[1][13]

Shaders in Stage3D are expressed in the Adobe Graphics Assembly Language (AGAL).[14]:57[15] Stage3D objects depart from the traditional SWF rendering model in that they cannot be added to SWF's display lists; instead they must be instantiated via ActionScript.[1] This decision was taken for performance reasons.[14]:25


Stage3D consists of the following components:

  • Unified API - Unified ActionScript 3 API for managing texture memory, vertex shading, pixel shading, and mesh rendering. Transparently executed using OpenGL (on Mac OS X and Linux) and DirectX (on Microsoft Windows).
  • Accelerated GPU Rendering - Integrated support for graphic cards built by NVidia, AMD and Intel,[3] Blacklist for incompatible graphic cards.
  • Accelerated CPU Rendering - Integrated software renderer fallback using SwiftShader, for systems with missing/incompatible graphics cards.
  • AGAL (Adobe Graphics Assembly Language) - A language for writing Shaders (programs that run on the GPU) such that they can be converted to OpenGL GLSL Shaders and DirectX HLSL Shaders by Flash Player.
  • ATF (Adobe Texture Format) - A texture format such that textures can be converted to appropriate platform-specific texture formats such as DXT on Windows and MacOS, PVRTC on iOS.[16]:47–48[17]

Stage3D is supported by the following components:

  • XC APIs - the "premium features" for Flash Player, consisting of high-speed memory manipulation opcodes (known as "Alchemy") and Stage3D APIs.
  • CrossBridge - A cross-compilation toolkit to compile OpenGL-based 3D games or game engines to run within Flash Player.
  • Adobe Scout - A visual profiler for Flash content running on desktop on mobile. Scout enables in-depth profiling of Stage3D content with the following integrated features:[18]
    • Stage3D Preview - View the current back-buffer of executed Stage3D Content[18]
    • Stage3D Recording - Capture every Stage3D command executed by the Flash content, and replay/step through executed commands[18]
    • GPU memory usage - Profile texture memory usage with a real-time breakdown[18]
    • Stage3D Program Editor - Interactively modify recorded Stage3D commands and see what effect this has on rendering. Edit the AGAL code for the vertex and fragment programs executed by each draw call.[18]

Game Engines[edit]

Because Stage3D is a low-level library that may be tedious to use directly, it has seen some higher-level 3D and 2D libraries built on top of it in order to benefit from the higher performance that it provides. An incomplete list of libraries and game engines using it includes: Unreal Engine 3,[19][20] Away3D 4,[5] CopperCube,[21] Flare3D,[22] Starling,[16]:vii ND2D or Adobe Labs' Proscenium.[23] Similarly, WebGL 3D applications may be built with three.js, a higher-level library similar to these.[5]

Away3D and Starling have been christened as official components of the Adobe Gaming SDK.[24][25]

See also[edit]


  1. ^ a b c d e Joseph Labrecque (2011). What's New in Flash Player 11. O'Reilly Media, Inc. p. 17. ISBN 978-1-4493-1110-0. 
  2. ^ a b Adobe Premium Features for Flash Player, Flash Player Dev Center, Adobe
  3. ^ a b Stage3D unsupported chipsets, drivers, Flash Player 11, AIR 3, Adobe Help
  4. ^ Matt Fisher (2013). HTML5 for Flash Developers. Packt Publishing Ltd. § Stage3D versus WebGL, p. 91. ISBN 978-1-84969-333-2. 
  5. ^ a b c "Stage3D vs WebGL Performance — Airtight Interactive". 2011-10-28. Retrieved 2014-08-04. 
  6. ^ a b c d e Adobe Flash Roadmap, Adobe
  7. ^ a b And Then Premium Features Arrived, ASV Guy Blog
  8. ^ Update: Premium Features for Flash Player, Adobe AIR and FP Blog
  9. ^ [1] Introducing Flash Player 11.4/AIR 3.4 beta!, by Thibault Imbert (Adobe employee), ByteArray
  10. ^ "Stage3D". Retrieved 2014-08-05. 
  11. ^ Adobe Flash Player 11.8 - Bug 3591185: Pixel Bender shader performance drastically degraded in FP11.8. Closed as "NeverFix"
  12. ^ Joseph Labrecque (2011). What's New in Adobe AIR 3. O'Reilly Media, Inc. pp. 17–26. ISBN 978-1-4493-1108-7. 
  13. ^ Remi Arnaud (2011). "3D in a Web Browser". In Eric Lengyel. Game Engine Gems 2. CRC Press. pp. 207–212. ISBN 978-1-56881-437-7. 
  14. ^ a b Christer Kaitila (2011). Adobe Flash 11 Stage3D (Molehill) Game Programming Beginner's Guide. Packt Publishing Ltd. ISBN 978-1-84969-169-7. 
  15. ^ "What is AGAL | Adobe Developer Connection". 2011-10-10. Retrieved 2014-08-04. 
  16. ^ a b Thibault Imbert (2012). Introducing Starling. O'Reilly Media, Inc. ISBN 978-1-4493-2089-8. 
  17. ^ "Stage3D compressed textures – Introducing the ATF SDK -". Retrieved 2014-08-04. 
  18. ^ a b c d e Getting started with Adobe Scout, Adobe Developer Connection
  19. ^ Wagner James Au (2012). Game Design Secrets. John Wiley & Sons. p. 130. ISBN 978-1-118-46391-8. 
  20. ^ "Adobe Flash 11 adopts Unreal Engine 3 for better browser games | The Verge". Retrieved 2014-08-04. 
  21. ^ "Tools Spotlight: CopperCube 4.0". 2014-05-28. Retrieved 2014-09-22. 
  22. ^ Keith Gladstien (2013). Flash Game Development In a Social, Mobile and 3D World. Cengage Learning. pp. 383–421. ISBN 978-1-4354-6021-8. 
  23. ^ Rex van der Spuy (2012). Foundation Game Design with ActionScript 3.0. Apress. p. 641. ISBN 978-1-4302-3993-2. 
  24. ^ Thibault Imbert (December 4th, 2012) Introducing Game Developer Tools (Gaming SDK, Adobe Scout, FlasCC)
  25. ^ "Adobe Gaming SDK". Retrieved 2014-08-04. 

External links[edit]