Web gl & three.js.key

19
WebGL & Three.js 2012/11/30 Yi-Fan

Transcript of Web gl & three.js.key

Page 1: Web gl & three.js.key

WebGL & Three.js2012/11/30 Yi-Fan

Page 2: Web gl & three.js.key

WebGL

Khronos Group, not W3C

A royalty-free, cross-platform API

Based on OpenGL ES 2.0

Combines with other web content

How much time to WebGL became a W3C standard?

Page 3: Web gl & three.js.key

Browser Support

Page 4: Web gl & three.js.key

WebGL on Webpage

Page 5: Web gl & three.js.key

3D Coordinate Systems

Page 6: Web gl & three.js.key

Cameras, Perspective, Viewports, and Projections

Page 7: Web gl & three.js.key

Meshes, Polygons, and Vertices

Page 8: Web gl & three.js.key

Materials, Textures & Lights

Page 9: Web gl & three.js.key

Transforms and Matrices

Page 10: Web gl & three.js.key

ShadersExample: WebGL - Three.js + impactJS

Page 11: Web gl & three.js.key

Higher Level Libraries for WebGL

Three.js

GLGE

SceneJS

CubicVR

and more ...

Page 12: Web gl & three.js.key

Three.js Dos

Hides 3D rendering details

Object oriented

Fast

Supports interaction

Math

Built-in file format

Extensible

Works with 2D canvas

Page 13: Web gl & three.js.key

Three.js Dos

Feature rich: prebuilt objects like lights, geometries, particles, lines, animations, ...etc.

Examples

Page 14: Web gl & three.js.key

Three.js Don’ts

Not a game engine

Page 15: Web gl & three.js.key

Three.js Animations

Articulated Animation

Page 16: Web gl & three.js.key

Three.js Animations

Skinned/Skeletal Animation

Page 17: Web gl & three.js.key

Three.js Animations

Morphs

Page 18: Web gl & three.js.key

Animations using javascript

setTimeout

setInterval

requestAnimationFrame

Page 19: Web gl & three.js.key

Reference

Can I use...

Microsoft: no way to support WebGL and meet our security needs

WebGL: Up and Running

Shader

three.js

Better JavaScript animations with requestAnimationFrame