WebGL Game Development
暫譯: WebGL 遊戲開發

Sumeet Arora

  • 出版商: Packt Publishing
  • 出版日期: 2014-03-17
  • 售價: $1,870
  • 貴賓價: 9.5$1,777
  • 語言: 英文
  • 頁數: 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 的網頁實現,是一個 JavaScript API,用於在任何兼容的網頁瀏覽器中渲染互動式 3D 圖形,而無需插件。它幫助您輕鬆創建詳細的高品質圖形 3D 物件。WebGL 元素可以與其他 HTML 元素和合成物混合,以創建高品質、互動式、創意和創新的圖形 3D 物件。

本書從在《超級瑪利歐》中收集硬幣、在《魂斗羅》中擊殺士兵開始,然後迅速發展到在《魔獸世界》中制定策略。您將被引導創建動畫角色、圖像處理,並將效果添加到網頁畫布的 2D/3D 圖形中。為您的遊戲角色注入生命,學習如何創建在最強大的 3D 遊戲中看到的特效。每一章都從展示基礎數學及其程式實現開始,最後以創建完整的遊戲場景結束,以構建一個美妙的虛擬世界。

**您將從本書中學到什麼**

- 使用 WebGL 加載從 Blender 匯出的 3D 物件
- 理解紋理映射並將紋理應用於 3D 物件
- 為 WebGL 場景添加燈光和相機
- 利用矩陣變換創建簡單的物件動畫
- 操作複雜的物件動畫,例如骨骼動畫
- 理解用戶互動和選擇
- 在 WebGL 中構建多人遊戲
- 處理困難的概念,例如使用矩陣變換、四元數數學和線性插值來動畫化皮膚模型
- 將物理引擎應用於您的 WebGL 遊戲

**方法**

本書是逐步的、基於範例的教程,提供有關使用 WebGL 的遊戲邏輯的詳細資訊。

**本書的讀者對象**

如果您是一位希望將想像力與遊戲中的吞吐量相結合的程式設計師,這本書適合您。您需要對物件導向程式設計、JavaScript 以及向量和矩陣運算有良好的理解。