WebGL and the Visual Web Ecosystem - Khronos Group · 2014-04-08 · JavaScript, HTML, CSS, ......
Transcript of WebGL and the Visual Web Ecosystem - Khronos Group · 2014-04-08 · JavaScript, HTML, CSS, ......
© Copyright Khronos Group, 2011 - Page 1
WebGL and the Visual Web Ecosystem
Neil Trevett Vice President Mobile Content, NVIDIA
President, The Khronos Group
© Copyright Khronos Group, 2011 - Page 2
Annual Market Size
Device Power Consumption
1W 10W 100W 1,000W
1M
10M
100M
1B
1000x Lower Power Changes the World
The next 10 billion Computers will be deeply integrated into the
fabric of our lives
© Copyright Khronos Group, 2011 - Page 3
Diverse Devices – Fragmented Software?
Can HTML5 become a true cross platform application programming environment?
© Copyright Khronos Group, 2011 - Page 4
1990’s 2000’s 2010’s
A New Era in Personal Computing
PC Internet Mobile
Computing
© Copyright Khronos Group, 2011 - Page 5
0
20
40
60
80
100
120
140
Year 1 Year 2 Year 3 Year 4 Year 5 Year 6 Year 7 Year 8 Year 9
Un
its i
n M
illi
on
s
20 Years Faster to 100M Per Year
iOS & Android
MacOS & Windows
Cumulative Shipments
Source: Gartner, Apple, NVIDIA
© Copyright Khronos Group, 2011 - Page 6
Mobile Roadmap Acceleration
1
100
PER
FO
RM
AN
CE
2012 2014
WAYNE
2013 2010
2011
Tegra 2
KAL-EL
5x
LOGAN
10
Core 2 Duo – Macbook Air
STARK
10x
50x
75x
Production Devices
Tegra 3
© Copyright Khronos Group, 2011 - Page 7
Mobile Silicon Experiential Processing
HD
Video
Decode
Processor
Audio
Processor
2D/3D Graphics
Processor
Cortex
A9
Processor
Cortex
A9
Processor
ARM 7
Image
Processor
HD
Video
Encode
Processor
© Copyright Khronos Group, 2011 - Page 8
A Lot More than Just “More HTML”
Rich Experiential Processing Multi-core CPUs
Rich 2D and 3D GPU GPU Computing
Multiple HD cameras Image and vision processing
Video encode/decode Audio encode/decode
Inertial and positional sensors
How can the Browser rapidly assimilate such diverse functionality?
© Copyright Khronos Group, 2011 - Page 9
Connecting Software to Silicon
Khronos is an open industry consortium creating royalty-free
acceleration API standards to enable software developers to turn silicon functionality into rich
end user experiences
© Copyright Khronos Group, 2011 - Page 10
3D Evolution on PCs
‘Doom’ on a PC – 1993 id Software
‘Samaritan’ Real-time Demo on a PC – 2011 Epic Unreal Engine
http://www.youtube.com/watch?v=RSXyztq_0uM
© Copyright Khronos Group, 2011 - Page 11
OpenGL Ecosystem – 3D Everywhere
Leading-edge functionality developed first on desktop
WebGL driving new-generation security features
into OpenGL family
Mobile functionality subset that is deployed on billions of devices
Pervasive OpenGL ES 2.0 availability enables Browser vendors to build 3D
directly into HTML5
© Copyright Khronos Group, 2011 - Page 12
WebGL – 3D on the Web – No Plug-in! • Historic opportunity to bring accelerated 3D graphics to the Web
- WebGL defines JavaScript binding to OpenGL ES 2.0
• Leveraging HTML5 and uses <canvas> element
- Enables a 3D context for the canvas
• JavaScript is easily fast enough now for visual computing
- Plus OpenGL ES 2.0 enables local geometry caching and GPGPU computation
Availability of OpenGL and OpenGL ES on almost every
web-capable device
JavaScript binding to
OpenGL ES 2.0
HTML5 Canvas Tag and increasing JavaScript performance
Being defined by major browsers and GPU vendors working together
© Copyright Khronos Group, 2011 - Page 13
Content JavaScript, HTML, CSS, ...
WebGL Implementation Anatomy
JavaScript Middleware
WebGL HTML5
JavaScript CSS
Browser provides WebGL functionality alongside other HTML5 specs
- no plug-in required
OS Provided Drivers. WebGL on Windows can use Google Angle to create
conformant OpenGL ES 2.0 over DX9
OpenGL ES 2.0 OpenGL
DX9/Angle
Content downloaded from the Web. Middleware can make WebGL accessible to
non-expert 3D programmers
© Copyright Khronos Group, 2011 - Page 14
WebGL and HTML Interaction • 3D is not trapped in a rectangular window
- 3D can overlay and underlay HTML content
- Easy to make 2D HTML HUDs or 3D user interfaces
• Strong ties with other advanced HTML5
- WebGL can use HTML5 <video>
or canvas as a texture
• Can use 3D for core Web UI – as well as content
- Advanced transforms and special effects
• Render HTML DOM sub-tree as texture
- Mozilla and Google prototyping as extension
- Support user interaction when in 3D
© Copyright Khronos Group, 2011 - Page 15
Leveraging Native API Investment into HTML5 • HTML5 evolving into cross-platform programming platform
- Gradually exposing complete system capabilities
• Opportunity to synergize Web and native APIs development
- Leverage native API investments, reduce developer learning cycles
• Khronos and W3C creating close liaison
Native APIs shipping or working group underway
JavaScript API shipping or working group underway
HTML and Browser
Composition
WebAudio Advanced JavaScript
Audio
WebMAX? Camera
control and video
processing
Possible future JavaScript APIs
Device and Sensor APIs
Device Orientation
Working Groups
StreamInput Native
JavaScript
© Copyright Khronos Group, 2011 - Page 16
WebCL – Parallel Computing for the Web • Khronos launching new WebCL initiative
- First announced in March 2011
- API definition already underway
• JavaScript binding to OpenCL
- Security is top priority
• Many use cases
- Physics engines to complement WebGL
- Image and video editing in browser
• Stay close to the OpenCL standard
- Maximum flexibility
- Foundation for higher-level middleware
© Copyright Khronos Group, 2011 - Page 17
Web Apps versus Native Apps • Mobile Apps have functional and aesthetic appeal
- Beautiful, responsive, focused
• HTML5 with accelerated APIs can provide the same level of “App Appeal”
- Highly interactive, rich visual design
• Using HTML5 to create ‘Web Apps’ has many advantages
- Portable to any browser enabled system
- Same code can run as app or as web page
- Web app is searchable and discoverable through the web
- Not a closed app store – no app store ‘tax’
© Copyright Khronos Group, 2011 - Page 18
Web Apps - Wider Ecosystem • OS capability access before in HTML5
- Execution with no browser UI
- Packaging standalone apps
• OS Independent App stores
- Discovery and payment
• Language and JavaScript Tools
- Native code compilation to JavaScript
- JavaScript libraries
• Authoring Tools
- Bringing Flash-grade authoring to HTML5
© Copyright Khronos Group, 2011 - Page 19
Industry Cooperation
OS
Browser Silicon
Tools