Beating canvas 2 d in its own territory webgl+tesspathy

gree_tech
gree_techgree_tech
Beating Canvas 2D in Its Own
Territory
WebGL + Tesspathy
Guangyao Liu
twitter:@brilliun, github:@brilliun
GREE, Inc.
What We Do
JS Animation
Engine
<canvas>
2D
Vector
Contents
e.g. SWF
Contents
Provider
User’s
Browser
JS Game/Animation
<canvas>
Canvas 2D WebGL
We used to
use this only
Canvas 2D WebGL
● 2D
● Vector data
● 3D (mainly)
● Mesh data
● Hardware
acceleration
Canvas 2D WebGL
● 2D
● Vector data
● Hardware
acceleration
● 3D (mainly)
● Mesh data
● Hardware
acceleration
Browser Vendor
HTML5 Game/Animation
<canvas>
Canvas 2D WebGL
Content
2D Vector 2/3D Mesh
Canvas 2D WebGL
● 2D
● Vector data
● Hardware
acceleration
● 3D (mainly)
● Mesh data
● Hardware
acceleration
Still Not
Enough
Canvas 2D WebGL
● 2D
● Vector data
● 3D (mainly)
● Mesh data
Hardware acceleration
HTML5 Game/Animation
<canvas>
WebGL
Content
2D Vector 2/3D Mesh
Only one problem
WebGL Just Can’t Handle
Vector Graphics
Tesspathy
A JS library converting vector graphics for GL-
like APIs
● Convert on the fly
● Resolution-independent Curves
● Almost no assumption of input data
github.com/gree/tesspathy
No need to pre-process
your vector data
Remember the Demo?
Now let’s try it with
WebGL + Tesspathy
<canvas>
Canvas 2D WebGL
Tessellation
Hardware
Acceleration
Newly added
this year
skia/src/gpu/*.cpp
<canvas>
Canvas 2D Tesspathy
Tessellation
Hardware
Acceleration
skia/src/gpu/*.cpp
WebGL
Hardware
Acceleration
your/self/code.js
Thank You
Tesspathy
github.com/gree/tesspathy
1 of 17

More Related Content

Viewers also liked(17)

RPKI勉強会/RPKIユーザBoFRPKI勉強会/RPKIユーザBoF
RPKI勉強会/RPKIユーザBoF
gree_tech2.5K views

Similar to Beating canvas 2 d in its own territory webgl+tesspathy

Similar to Beating canvas 2 d in its own territory webgl+tesspathy(20)

Html5 (games)Html5 (games)
Html5 (games)
chamsddine bouzaine121 views
Zoomcharts @ DevClub.lvZoomcharts @ DevClub.lv
Zoomcharts @ DevClub.lv
Viesturs Zariņš391 views
Building a Better Web with HTML5 and CSS3Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3
Karambir Singh Nain832 views
#PDR15 - Pebble Graphics#PDR15 - Pebble Graphics
#PDR15 - Pebble Graphics
Pebble Technology2.1K views
Hardware Acceleration in WebKitHardware Acceleration in WebKit
Hardware Acceleration in WebKit
Joone Hur11K views
New Ranking Metrics by GoogleNew Ranking Metrics by Google
New Ranking Metrics by Google
Phil Marx585 views
Power of WebGL (FSTO 2014)Power of WebGL (FSTO 2014)
Power of WebGL (FSTO 2014)
Verold1.8K views
Html5 2da parteHtml5 2da parte
Html5 2da parte
rolando_aaron180 views
DevChatt: The Wonderful World Of Html5DevChatt: The Wonderful World Of Html5
DevChatt: The Wonderful World Of Html5
Cameron Kilgore1.7K views
IntoWebGL - Unite Melbourne 2015IntoWebGL - Unite Melbourne 2015
IntoWebGL - Unite Melbourne 2015
Ryan Alcock340 views
Html5 Canvas and Mobile GraphicsHtml5 Canvas and Mobile Graphics
Html5 Canvas and Mobile Graphics
Engin Hatay2.3K views
Wade.Go Introduction Speech - SFD HCMC 2014Wade.Go Introduction Speech - SFD HCMC 2014
Wade.Go Introduction Speech - SFD HCMC 2014
Nguyễn Thành Hải498 views

More from gree_tech(20)

海外展開と負荷試験海外展開と負荷試験
海外展開と負荷試験
gree_tech593 views

Recently uploaded(20)

ThroughputThroughput
Throughput
Moisés Armani Ramírez28 views
The Research Portal of Catalonia: Growing more (information) & more (services)The Research Portal of Catalonia: Growing more (information) & more (services)
The Research Portal of Catalonia: Growing more (information) & more (services)
CSUC - Consorci de Serveis Universitaris de Catalunya51 views
Java Platform Approach 1.0 - Picnic MeetupJava Platform Approach 1.0 - Picnic Meetup
Java Platform Approach 1.0 - Picnic Meetup
Rick Ossendrijver23 views
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh34 views

Beating canvas 2 d in its own territory webgl+tesspathy