Top Banner
professional art paths for WebGL development tony parisi may 15, 2013 artists only:
12

Artists Only

Jan 15, 2015

Download

Technology

Tony Parisi

State of the content pipeline for WebGL Development. Not perfect but it's going in the right direction with improved COLLADA integration and a new file format, glTF, in the works.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Artists Only

professional art paths for WebGL

development

tony parisimay 15, 2013

artists only:

Page 2: Artists Only

export OBJ. 1

convert to Three.js.2

today’s WebGL art path

write code. lots of code.3

prepared to be F!@#$ED.4

Page 3: Artists Only

NO lights.

NO scene hierarchy.

NO animations.

you’re F!@#$ED…

NO cameras.

programmers do the lighting.

programmersdo the animations.

programmers set up thecameras.

programmerslay out the scene.

by typingNUMBERS.

Page 4: Artists Only

// CAMERAS

camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 100000 );cameraCube = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 100000 );

// SCENE

scene = new THREE.Scene();sceneCube = new THREE.Scene();

// LIGHTS

var ambient = new THREE.AmbientLight( 0x050505 );scene.add( ambient );

directionalLight = new THREE.DirectionalLight( 0xffffff, 2 );directionalLight.position.set( 2, 1.2, 10 ).normalize();scene.add( directionalLight );

directionalLight = new THREE.DirectionalLight( 0xffffff, 1 );directionalLight.position.set( -2, 1.2, -10 ).normalize();scene.add( directionalLight );

pointLight = new THREE.PointLight( 0xffaa00, 2 );pointLight.position.set( 2000, 1200, 10000 );scene.add( pointLight );

… well and truly.

Page 5: Artists Only

it’s time to put art creationback where it belongs

Page 6: Artists Only

COLLADA - 3D asset exchange schema

• Khronos Group standardhttp://www.khronos.org/collada/

• well-supported by professional tools… at least it was for a while– industry support has waned in the last few years

• feature-rich– meshes, materials, textures, scene hierarchy,

cameras, lights, animations…

Page 8: Artists Only

glTF – the gl transmission format

• COLLADA has issues for use with WebGL– files are text-based XML, big to download and slow to parse in

a browser or mobile application

• the COLLADA working group is designing glTF, a new, JSON+binary-based format for use in WebGL and OpenGL ES mobile applications

• glTF bridges the gap between common 3D formats and gl-based APIs– mesh and animation data in compact .bin files that directly load

into WebGL data structures without additional processing– scene structure/properties, materials, cameras, lights in JSON

files that are quick and easy to parse

Page 11: Artists Only

glTF project status

• working group initiative, not an official spec (yet)• work in progress

– next milestones for SIGGRAPH 2013– draft spec by end of 2013

• design being done in the open

https://github.com/KhronosGroup/glTF

Page 12: Artists Only

leave art to the artists, and coding to the programmers

(Maya|Max) + COLLADA + glTF + WebGL ==

!(f!@#$ed) == team_happy;

we thank you.