Three.js Cookbook

Jos Dirksen

  • 出版商: Packt Publishing
  • 出版日期: 2015-01-31
  • 售價: $1,990
  • 貴賓價: 9.5$1,891
  • 語言: 英文
  • 頁數: 300
  • 裝訂: Paperback
  • ISBN: 1783981180
  • ISBN-13: 9781783981182
  • 相關分類: JavaScript
  • 海外代購書籍(需單獨結帳)



Over 80 shortcuts, solutions, and recipes that allow you to create the most stunning visualizations and 3D scenes using the Three.js library

About This Book

  • Create visually stunning 3D graphics and animations directly in your browser, without the need for any plugins or needing to learn WebGL
  • Add zest and beauty to your 3D scenes by using advanced materials, textures, and different light sources as part of these comprehensive and applicable recipes
  • Learn how to use third-party libraries for advanced animation control and simulating real world physics

Who This Book Is For

This book is ideal for anyone who already knows JavaScript and would like to get a broad understanding of Three.js quickly, or for those of you who have a basic grasp of using Three.js but want to really make an impact with your 3D visualizations by learning its advanced features. To apply the recipes in this book you don't need to know anything about WebGL; all you need is some general knowledge about JavaScript and HTML.

What You Will Learn

  • Create a standard HTML skeleton and advanced features such as keyboard controls, drag and drop support, WebGL detection, and loading resources
  • Build and transform Three.js geometries using simple properties and advanced matrix transformations
  • Enhance the look of your scene using Three.js materials, texture maps, and dynamic textures
  • Apply realistic lighting and shadows to the 3D objects you have created
  • Animate particle systems created from scratch or from existing geometries
  • Work with animations, advanced physics, and collision detection

In Detail

Modern browsers are becoming more powerful each year and in recent years have adopted WebGL as the standard to deliver 3D graphics in a browser. Beginning with some basic recipes to get you started, this book will guide you through the most important features that Three.js has to offer. You'll even learn how to quickly create new geometries from scratch. Solutions and methods that show you how to use HTML5 video and canvas as textures will follow on from this.

By the end of the book, you'll be able to quickly add advanced features to your scene, improve the way users interact with your 3D scene, and make your scenes look stunning.



- 在瀏覽器中直接創建視覺上令人驚嘆的3D圖形和動畫,無需任何插件或學習WebGL。
- 通過使用高級材料、紋理和不同的光源作為全面且實用的配方的一部分,為您的3D場景增添活力和美感。
- 學習如何使用第三方庫進行高級動畫控制和模擬現實世界物理。


- 創建標準的HTML框架和高級功能,如鍵盤控制、拖放支持、WebGL檢測和資源加載。
- 使用簡單的屬性和高級矩陣變換來構建和變換Three.js幾何體。
- 通過使用Three.js材料、紋理映射和動態紋理來增強場景的外觀。
- 對您創建的3D物體應用逼真的照明和陰影。
- 從頭開始創建粒子系統或使用現有幾何體創建粒子系統。
- 使用動畫、高級物理和碰撞檢測進行工作。