Top Banner
Introducción a WebGL Ángel Brasero Moreno
13

Introducción a WebGL

Jul 13, 2015

Download

Technology

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: Introducción a WebGL

Introducción a WebGL

Ángel Brasero Moreno

Page 2: Introducción a WebGL

Introducción a WebGL

● Intro● Soporte● Algunos conceptos nuevos● Recursos● Ejemplos● Outro

Page 3: Introducción a WebGL

¿WebQUÉ?

● Estándar W3C● Aceleración 3D● OpenGL ES 2.0● ¡Limitaciones!● ¿Flash?

Page 4: Introducción a WebGL

Navegadores

● ¿Todos?● No, todos no

http://caniuse.com/webgl

Page 5: Introducción a WebGL

Nuevos conceptos

● GLSL● Shaders● Programs

Page 6: Introducción a WebGL

Shaders & Programs

● GLSL: lenguaje

● Shader: trozo de código escrito en GLSL

● Program: conjunto de shaders

● Se ejecutan en la tarjeta gráfica

Page 7: Introducción a WebGL

Shaders● Buffers (espacio de memoria)

● Attributes (extracto de buffer)

● Samplers

● Uniform variables

● Varying variables

Page 8: Introducción a WebGL

● Vertex shaders– Por vértice

● Fragment shaders– El espacio entre los

vértices– Fragment != pixel

Page 9: Introducción a WebGL

Fragment ShaderFragment Shader Vertex Shader

Page 10: Introducción a WebGL

Librerías

● Unity 3D● Three.JS – Importantísimo

– tQuery–Physijs

Page 11: Introducción a WebGL

Recursos

● Learning WebGLhttp://learningwebgl.com

● Learning Three.JShttp://learningthreejs.com/

● Aerotwisthttp://www.aerotwist.com/tutorials/

● Three.JShttp://threejs.org/

● GLSLhttp://nehe.gamedev.net/article/glsl_an_introduction/25007/

Page 12: Introducción a WebGL

Ejemplos● Raytracing

http://madebyevan.com/webgl-water/

● Learninghttp://learningwebgl.com/blog/

● Three.JShttp://threejs.org/

● ¡Los mios!

Page 13: Introducción a WebGL

The end

¿Preguntas?

¡Gracias!