WebGL - Up and Running
Building 3D Graphics for the Web
Год: 2012
Автор: Tony Parisi
Издательство: O'Reilly Media
ISBN: 978-1-4493-2357-8
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 230
Описание:Get a quick introduction to WebGL, the new standard for 3D rendering on the Web and a member of HTML5’s family of technologies. With this hands-on guide, you’ll learn essential WebGL development and production concepts, using the JavaScript 3D engine Three.js. At the end of the book, you’ll put everything together and build a full 3D application with WebGL.You don’t have to be a game development wizard or have 3D graphics experience to get started. If you use HTML, CSS, and JavaScript—and have familiarity with JQuery and Ajax—this book will help you gain a working knowledge of WebGL through clear and simple examples. Understand core 3D graphics concepts and how to implement them in WebGL
Create WebGL sample pages as you learn, and build a racing game application in the final chapter
Get to know the Three.js open source library in detail
Develop working knowledge of graphics rendering, texturing, animation, interaction, and behaviors
Seamlessly integrate 3D graphics with other content on the page
Learn the tools, file formats, and techniques for developing robust and secure applications in a production environment
Chapter 1 : An Introduction to WebGL
WebGL—A Technical Definition
3D Graphics—A Primer
The WebGL API
Chapter Summary
Chapter 2 : Your First WebGL Program
Three.js—A JavaScript 3D Engine
Setting Up Three.js
A Simple Three.js Page
A Real Example
Chapter Summary
Chapter 3 : Graphics
Sim.js—A Simple Simulation Framework for WebGL
Creating Meshes
Using Materials, Textures, and Lights
Building a Transform Hierarchy
Creating Custom Geometry
Rendering Points and Lines
Writing a Shader
Chapter Summary
Chapter 4 : Animation
Animation Basics
Creating Tweens Using the Tween.js Library
Animating an Articulated Model with Keyframes
Animating Materials and Lights
Animating Textures
Animating Skinned Meshes and Morphs
Chapter Summary
Chapter 5 : Interaction
Hit Detection, Picking, and Projection
Implementing Rollovers and Clicks
Implementing Dragging
Using Hit Point and Normal Information
Camera-Based Interaction
Chapter Summary
Chapter 6 : Integrating 2D and 3D
Combining Dynamic HTML and WebGL
Overlaying 3D Visuals on 2D Pages
Creating Dynamic Textures with a Canvas 2D
Using Video As a Texture
Rendering Dynamically Generated 3D Text
WebGL for Ultimate Mashups
Chapter Summary
Chapter 7 : WebGL in Production
Choosing a Runtime Framework
Loading 3D Content
Creating 3D Content
Browser Realities
Handling Context Lost Events
WebGL and Security
Chapter Summary
Chapter 8 : Your First WebGL Game
Building the Pieces
Putting It All Together
Chapter Summary
Afterword
Appendix : WebGL Resources
The WebGL Specification
Official Mailing Lists and Forums
Tools and Toolkits
Blogs and Demo Sites
Community Sites
Colophon