Learn Three.js : Program 3D animations and visualizations for the web with JavaScript and WebGL, 4/e (Paperback)

Dirksen, Jos

  • 出版商: Packt Publishing
  • 出版日期: 2023-02-17
  • 售價: $1,950
  • 貴賓價: 9.5$1,853
  • 語言: 英文
  • 頁數: 554
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1803233877
  • ISBN-13: 9781803233871
  • 相關分類: JavaScriptWebGL
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Become a creative JavaScript professional by creating and animating stunning 3D, browser-based graphics with Three.js from beginning to end

Key Features

- Enhance your 3D graphics with light sources, shadows, advanced materials, and textures
- Load models from external sources, visualize and, animate them directly using JavaScript
- Create your own custom WebGL shader, explore Three.js' postprocessing feature, and learn how to integrate with Blender, React, and Typescript

Book Description

Three.js has become the industry standard for creating stunning 3D WebGL content. In this edition, you'll learn about all the features of Three.js and understand how to integrate it with the newest physics engines. You'll also develop a strong grip on creating and animating immersive 3D scenes directly in your browser, reaping the full potential of WebGL and modern browsers.

The book starts with the basic concepts and building blocks used in Three.js and helps you explore these essential topics in detail through extensive examples and code samples. You'll learn how to create realistic-looking 3D objects using textures and materials and how to load existing models from an external source. Next, you'll understand how to control the camera using the Three.js built-in camera controls, which will enable you to fly or walk around the 3D scene you've created. Later chapters will cover the use of HTML5 video and canvas elements as materials for your 3D objects to animate your models. You'll learn how to use morph targets and skeleton-based animation, before understanding how to add physics, such as gravity and collision detection, to your scene. Finally, you'll master combining Blender with Three.js and creating VR and AR scenes.

By the end of this book, you'll be well-equipped to create 3D-animated graphics using Three.js.

What you will learn

- Implement the different camera controls provided by Three.js to navigate your 3D scene
- Discover working with vertices directly to create snow, rain, and galaxy-like effects
- Import and animate models from external formats, such as glTF, OBJ, STL, and COLLADA
- Design and run animations using morph targets and bone-based animation
- Create realistic-looking 3D objects using advanced textures on materials
- Interact directly with WebGL by creating custom vertex and fragment shaders
- Make scenes using the Rapier physics engine, and integrate Three.js with VR and AR

Who this book is for

This book is for JavaScript developers looking to learn the use of Three.js library.

商品描述(中文翻譯)

成為一位創意的 JavaScript 專業人員,透過 Three.js 從頭到尾創建和動畫驚人的 3D 瀏覽器圖形。

主要特點:

- 透過光源、陰影、高級材質和紋理增強您的 3D 圖形
- 使用 JavaScript 從外部來源加載模型,直接可視化和動畫化它們
- 創建自己的自定義 WebGL 着色器,探索 Three.js 的後處理功能,並學習如何與 Blender、React 和 Typescript 整合

書籍描述:

Three.js 已成為創建令人驚嘆的 3D WebGL 內容的行業標準。在本版本中,您將了解 Three.js 的所有功能,並了解如何將其與最新的物理引擎集成。您還將在瀏覽器中直接創建和動畫化沉浸式 3D 場景,充分發揮 WebGL 和現代瀏覽器的潛力。

本書從 Three.js 中使用的基本概念和構建塊開始,並通過廣泛的示例和代碼示例詳細介紹這些重要主題。您將學習如何使用紋理和材質創建逼真的 3D 對象,以及如何從外部來源加載現有模型。接下來,您將了解如何使用 Three.js 內置的相機控制來控制相機,從而能夠在您創建的 3D 場景中飛行或行走。後面的章節將涵蓋使用 HTML5 視頻和畫布元素作為 3D 對象材料來動畫化模型。您將學習如何使用形狀目標和基於骨骼的動畫,然後了解如何向場景中添加重力和碰撞檢測等物理效果。最後,您將掌握將 Blender 與 Three.js 結合以及創建 VR 和 AR 場景的技巧。

通過閱讀本書,您將具備使用 Three.js 創建 3D 動畫圖形的能力。

您將學到什麼:

- 使用 Three.js 提供的不同相機控制來導航您的 3D 場景
- 直接使用頂點創建雪、雨和星系等效果
- 導入並動畫化來自 glTF、OBJ、STL 和 COLLADA 等外部格式的模型
- 使用形狀目標和基於骨骼的動畫設計和運行動畫
- 使用高級材質在材料上創建逼真的 3D 對象
- 通過創建自定義頂點和片段着色器直接與 WebGL 交互
- 使用 Rapier 物理引擎製作場景,並將 Three.js 與 VR 和 AR 整合

本書適合對學習 Three.js 庫感興趣的 JavaScript 開發人員。

目錄大綱

1. Creating Your First 3D Scene withThree.js
2. The Basic Components that Make up a Three.js Application
3. Working with Light Sources in Three.js
4. Working with Three.js Materials
5. Learning to Work with Geometries
6. Exploring Advanced Geometries
7. Points and Sprites
8. Creating and Loading Advanced Meshes and Geometries
9. Animations and moving the camera
10. Loading and Working with Textures
11. Render Postprocessing
12. Adding Physics and Sounds to Your Scene
13. Working with Blender and Three.js
14. Three.js together with React, Typescript, and Web-XR

目錄大綱(中文翻譯)

1. 使用Three.js創建您的第一個3D場景
2. 構成Three.js應用程序的基本組件
3. 在Three.js中使用光源
4. 使用Three.js材質
5. 學習使用幾何體
6. 探索高級幾何體
7. 點和精靈
8. 創建和加載高級網格和幾何體
9. 動畫和移動相機
10. 加載和使用紋理
11. 渲染後處理
12. 將物理和聲音添加到您的場景中
13. 使用Blender和Three.js
14. Three.js與React、Typescript和Web-XR一起使用