WebGL Game Development

Sumeet Arora

  • 出版商: Packt Publishing
  • 出版日期: 2014-03-17
  • 售價: $1,710
  • 貴賓價: 9.5$1,625
  • 語言: 英文
  • 頁數: 418
  • 裝訂: Paperback
  • ISBN: 1849699798
  • ISBN-13: 9781849699792
  • 相關分類: WebGL
  • 海外代購書籍(需單獨結帳)

商品描述

WebGL is the standard for rendering 3D graphics in a browser using JavaScript. This book will teach you to exploit the full potential of WebGL in game development by rendering complex 3D objects. The essential tutorial.

Overview

  • Load and render complex 3D objects in WebGL using JavaScript
  • Apply textures and lighting to game scenarios
  • Load rigged 3D models and Skeletal Animations
  • Add Physics Engines to WebGL games

In Detail

WebGL, the web implementation of Open GL, is a JavaScript API used to render interactive 3D graphics within any compatible web browser, without the need for plugins. It helps you create detailed, high-quality graphical 3D objects easily. WebGL elements can be mixed with other HTML elements and composites to create high-quality, interactive, creative, innovative graphical 3D objects.

This book begins with collecting coins in Super Mario, killing soldiers in Contra, and then quickly evolves to working out strategies in World of Warcraft. You will be guided through creating animated characters, image processing, and adding effects as part of the web page canvas to the 2D/3D graphics. Pour life into your gaming characters and learn how to create special effects seen in the most powerful 3D games. Each chapter begins by showing you the underlying mathematics and its programmatic implementation, ending with the creation of a complete game scene to build a wonderful virtual world.

What you will learn from this book

  • Load 3D objects exported from Blender using WebGL
  • Understand texture mapping and apply textures to 3D objects
  • Add lights and a camera to a WebGL scene
  • Create simple object animations utilizing matrix transformations
  • Fiddle with complex object animations such as skeletal animations
  • Get to grips with user interaction and picking
  • Build multiplayer games in WebGL
  • Handle difficult concepts such as animating skinned models using matrix transformations, quaternion mathematics, and linear interpolation
  • Apply physics engine to your WebGL game

Approach

This book is set-by-step, example-based tutorial that provides details on gaming logic using Web GL.

Who this book is written for

If you are a programmer who wants to transform the skill of blending imagination and throughput in games, this is the book for you. You need to have a good understanding of object-oriented programming, JavaScript, and vector and matrix operations.

商品描述(中文翻譯)

WebGL是使用JavaScript在瀏覽器中渲染3D圖形的標準。本書將教你如何在遊戲開發中充分利用WebGL的潛力,渲染複雜的3D物體。這是一本基礎教程。

概述:
- 使用JavaScript在WebGL中載入和渲染複雜的3D物體
- 將紋理和照明應用於遊戲場景
- 載入帶有骨骼動畫的3D模型
- 在WebGL遊戲中添加物理引擎

詳細內容:
WebGL是Open GL的網頁實現,是一個用於在任何兼容的網頁瀏覽器中渲染交互式3D圖形的JavaScript API,無需插件即可使用。它可以幫助你輕鬆地創建詳細、高質量的3D圖形物體。WebGL元素可以與其他HTML元素和合成物混合使用,創建高質量、交互式、創意、創新的3D圖形物體。

本書從在超級瑪利歐中收集硬幣、在魂斗羅中殺敵人開始,然後迅速發展到在魔獸世界中制定策略。你將通過創建動畫角色、圖像處理以及將效果添加到網頁畫布的2D/3D圖形中來進行指導。為你的遊戲角色注入生命,並學習如何創建最強大的3D遊戲中所見的特殊效果。每一章都以展示底層數學及其編程實現開始,最後創建一個完整的遊戲場景,構建一個美妙的虛擬世界。

本書將教你以下內容:
- 使用WebGL載入從Blender導出的3D物體
- 理解紋理映射並將紋理應用於3D物體
- 在WebGL場景中添加燈光和相機
- 使用矩陣變換創建簡單的物體動畫
- 調整複雜的物體動畫,如骨骼動畫
- 掌握用戶交互和選擇
- 在WebGL中建立多人遊戲
- 處理難懂的概念,如使用矩陣變換、四元數數學和線性插值來為皮膚模型添加動畫
- 在你的WebGL遊戲中應用物理引擎

這本書是一本以步驟為基礎、以示例為主的教程,詳細介紹了使用WebGL的遊戲邏輯。

本書適合以下讀者:
- 如果你是一個想要在遊戲中結合想像力和效率的程式設計師,這本書適合你。你需要對面向對象編程、JavaScript和向量和矩陣操作有很好的理解。