Unreal Engine 4學習總動員:快速入門

張寶榮

  • 出版商: 中國鐵道
  • 出版日期: 2019-07-01
  • 定價: $594
  • 售價: 8.5$505
  • 語言: 簡體中文
  • 頁數: 248
  • 裝訂: 平裝
  • ISBN: 7113257852
  • ISBN-13: 9787113257859
  • 相關分類: Unreal

下單後立即進貨 (約4週~6週)

商品描述

本書從如何下載Unreal Engine 4引擎開始講起,通過案例引導讀者快速學習Unreal Engine 4各個模塊,全面了解Unreal Engine 4的整體概貌,為以後深入學習並用好Unreal Engine 4打下堅實基礎。具體內容包括關卡設計、材質美術、光照使用、地形地貌、編程入門、UMG設計、行為樹,以及安卓、iOS、Oculus Rift使用快速入門等。配套資源中提供了書中案例的工程文件和近4小時的語音視頻教學文件,以完全實戰操作的教學模式,手把手教你快速入門Unreal Engine 4。

作者簡介

張寶榮,電腦圖形圖像領域骨灰級玩家,精通Maya、Houdini、UE4等軟體。從事3D動畫技術、影視特效技術、遊戲開發技術、虛擬現實技術研究與教學二十多年。出版有Maya、Houdini等技術專著近20部。長年奮戰在技術研發與教學一線,始終跟蹤研究國際前沿的行業專業技術。參與制作過多部數字電影、電視劇、MTV等項目,任職特效導演。擔任過多家專業培訓機構教學總監。國內電腦圖形圖像領域跨專業、多學科、總合性的具有技術實力和教學水平的領軍人物。

目錄大綱

第1章 下載Unreal Engine 4的源代碼 .............................................................1

1.1 源代碼分支 .............................................................................................................2

1.2 從GitHub下載壓縮文件 ...........................................................................................3

1.3 在GitHub上獲取Unreal Engine 4 ............................................................................4


第2章 為Unity開發者準備的Unreal Engine 4..................................................5

2.1 項目文件和文件 ......................................................................................................6

2.2 從GameObjects到Actors ........................................................................................9

2.3 從Unity的prefabs到Unreal Engine 4的藍圖類 ........................................................9

2.4 可編輯腳本Actor藍圖類 ........................................................................................10

2.5 藍圖類的擴展性 ....................................................................................................12

2.6 如何在Unreal Engine 4中編寫代碼 .......................................................................15

2.7 編寫事件函數(Start,Update等) .....................................................................16

2.8 在Unreal Engine 4中編寫遊戲邏輯代碼 ................................................................18

2.9 物理:剛體vs元組件 .............................................................................................24

2.10 剛體運動 .............................................................................................................27

2.11 輸入事件 .............................................................................................................27

2.12 常見問題 .............................................................................................................28


第3章 安裝Unreal Engine 4 ..........................................................................31

3.1 創建Epic Games賬戶 ............................................................................................32

3.2 下載並運行安裝程序 .............................................................................................33

3.3 登錄到Epic啟動程序 .............................................................................................34

3.4 安裝Unreal Engine 4 .............................................................................................34

3.5 啟動Unreal Engine 4 .............................................................................................36


第4章 Unreal Engine 4快速入門 .....................................................................38

4.1 關卡設計快速入門 ................................................................................................39

4.1.1 創建新項目 .................................................................................................................39

4.1.2 導航視口 .....................................................................................................................41

4.1.3 創建一個新關卡 .........................................................................................................43

4.1.4 放置Actor ....................................................................................................................43

4.1.5 編輯已放置的Actor ....................................................................................................48

4.1.6 執行構建過程 .............................................................................................................49

4.1.7 自己來 .........................................................................................................................50

4.2 美術快速入門 ........................................................................................................51

4.2.1 新建項目及設置 .........................................................................................................51

4.2.2 創建材質 ..................................................................................................................... 59

4.2.3 編輯材質 ..................................................................................................................... 60

4.2.4 為靜態網格物體的Acor指定材質 ............................................................................. 65

4.2.5 自己試試看 ................................................................................................................. 69

4.3 編程快速入門 ........................................................................................................69

4.3.1 必備的項目設置 ......................................................................................................... 69

4.3.2 創建C 類 .................................................................................................................. 70

4.3.3 寫入並編譯C 代碼 .................................................................................................. 71

4.3.4 測試你的代碼 ............................................................................................................. 73

4.3.5 發揮想像 ..................................................................................................................... 76

4.4 安卓快速入門 ........................................................................................................76

4.4.1 安裝安卓軟件開發工具包(SDK) ......................................................................... 77

4.4.2 設置安卓設備 ............................................................................................................. 82

4.4.3 創建項目 ..................................................................................................................... 85

4.4.4 部署場景 ..................................................................................................................... 85

4.4.5 打包遊戲 ..................................................................................................................... 86

4.5 iOS快速入門 .........................................................................................................88

4.5.1 必備軟件 ..................................................................................................................... 89

4.5.2 創建項目 ..................................................................................................................... 89

4.5.3 iOS信息提供――生成簽名證書 ................................................................................ 90

4.5.4 iOS信息提供――添加設備 ........................................................................................ 92

4.5.5 iOS信息提供――創建應用程序ID ............................................................................ 92

4.5.6 iOS信息提供――創建和導入信息提供 .................................................................... 93

4.5.7 在設備上測試你的地圖 ............................................................................................. 95

4.5.8 打包你的遊戲 ............................................................................................................. 96

4.6 Oculus Rift快速入門 .............................................................................................98

4.6.1 下載Oculus Runtime ................................................................................................... 98

4.6.2 安裝Oculus Runtime ................................................................................................... 99

4.6.3 創建/登錄Oculus賬戶 ............................................................................................... 101

4.6.4 設置Oculus Rift硬件 ................................................................................................. 102

4.6.5 測試Rift和Unreal Engine 4 ....................................................................................... 102

4.7 光照快速入門 ......................................................................................................103

4.7.1 創建新項目 ............................................................................................................... 104

4.7.2 創建一個新關卡 ....................................................................................................... 105

4.7.3 基本房間和點光源 ................................................................................................... 106

4.7.4 調整點光源設置 ....................................................................................................... 110

4.7.5 應用聚光源 ............................................................................................................... 114

4.7.6 應用定向光源 ........................................................................................................... 119

4.7.7 應用光源概述文件 ................................................................................................... 122

4.8 地形快速入門 ......................................................................................................126

4.8.1 使用地形工具 ........................................................................................................... 126

4.8.2 新建地形 ................................................................................................................... 127

4.8.3 對地形造型 ............................................................................................................... 131

4.8.4 創建地形材質 ........................................................................................................... 136

4.8.5 繪製地形材質 ........................................................................................................... 141

4.8.6 地形提示和技巧 ....................................................................................................... 147

4.9 Umg UI設計器快速入門 ......................................................................................148

4.9.1 必要項目設置 ........................................................................................................... 148

4.9.2 顯示體力、能量和彈藥量 ....................................................................................... 153

4.9.3 創建主菜單 ............................................................................................................... 160

4.9.4 編寫主菜單腳本 ....................................................................................................... 165

4.9.5 創建/編寫遊戲內暫停菜單的腳本 .......................................................................... 169

4.10 行為樹快速入門 ................................................................................................176

4.10.1 必要設置 ................................................................................................................. 176

4.10.2 創建尋路網格物體邊界體積框 ............................................................................. 176

4.10.3 創建基礎資源 ......................................................................................................... 177

4.10.4 設置角色藍圖 ......................................................................................................... 178

4.10.5 設置黑板資源 ......................................................................................................... 180

4.10.6 設置AI控制器藍圖 ................................................................................................. 180

4.10.7 AI控制器藍圖:初始黑板值 ................................................................................. 182

4.10.8 控制器藍圖:運行行為樹 ..................................................................................... 185

4.10.9 放置角色 ................................................................................................................. 186

4.10.10 行為樹基礎 ........................................................................................................... 186

4.10.11 創建Service節點 ................................................................................................... 187

4.10.12 創建Task節點 ........................................................................................................ 189

4.10.13 創建Decorator節點 ............................................................................................... 190

4.10.14 構建行為樹 ........................................................................................................... 191

4.10.15 更多步驟 ............................................................................................................... 197


第5章 運行Unreal Engine 4 ........................................................................198

5.1 硬件和軟件的規格說明 .......................................................................................199

5.2 運行Unreal Engine 4 ...........................................................................................199

5.2.1 運行編輯器 ............................................................................................................... 199

5.2.2 從命令行運行編輯器 ............................................................................................... 200

5.2.3 從可執行程序運行編輯器 ....................................................................................... 200

5.2.4 使用無參數(獨立)的形式來運行編輯器 ........................................................... 200

5.3 運行未烘焙遊戲 ..................................................................................................200

5.3.1 從命令行運行未烘焙的遊戲 ................................................................................... 201

5.3.2 從可執行程序運行未烘焙的遊戲 ........................................................................... 201

5.4 運行烘焙的遊戲 ..................................................................................................201

5.5 有用的遊戲內命令 ..............................................................................................202

5.6 載入地圖 .............................................................................................................202

5.6.1 在啟動時載入地圖 ................................................................................................... 202

5.6.2 載入新建地圖 ........................................................................................................... 203


第6章 工具和編輯器 ...................................................................................204


第7章 Unreal Engine 4術語 ........................................................................212

7.1 Project(項目) ..................................................................................................213

7.2 Object(對象) ..................................................................................................213

7.3 Class(類) ........................................................................................................214

7.4 Actors(演員) ...................................................................................................214

7.5 組件 ....................................................................................................................215

7.6 Pawn ...................................................................................................................215

7.7 Character(角色) .............................................................................................216

7.8 PlayerController(玩家控制器) ........................................................................216

7.9 AIController(人工智能控制器) .......................................................................217

7.10 Brush(畫刷) ..................................................................................................217

7.11 Level(關卡) ...................................................................................................217

7.12 Word(世界) ...................................................................................................218

7.13 GameModes(遊戲模式) ...............................................................................218

7.14 GameStates(遊戲狀態) ................................................................................219

7.15 PlayerStates(玩家狀態) ...............................................................................219


第8章 虛擬現實開發 ...................................................................................221

8.1 VR參考手冊 ........................................................................................................222

8.1.1 運行VR遊戲 .............................................................................................................. 222

8.1.2 從Unreal Engine 4編輯器中運行 ............................................................................. 222

8.1.3 從Unreal Engine 4編輯器外運行 ............................................................................. 222

8.1.4 實用VR控制台命令 .................................................................................................. 222

8.2 虛擬現實最佳實踐 ..............................................................................................223

8.2.1 VR項目設置 .............................................................................................................. 223

8.2.2 VR .INI設置 .............................................................................................................. 224

8.2.3 VR實例化立體 .......................................................................................................... 224

8.2.4 VR性能分析 .............................................................................................................. 225

8.2.5 VR後期處理設置 ...................................................................................................... 225

8.2.6 VR世界場景比例 ...................................................................................................... 226

8.2.7 VR和模擬疾病 .......................................................................................................... 227

8.2.8 VR攝像機設置 .......................................................................................................... 228

8.2.9 VR角色設置 .............................................................................................................. 228

8.2.10 VR內容注意事項 .................................................................................................... 229

8.2.11 VR藍圖函數 ............................................................................................................ 230

8.2.12 VR已知問題 ............................................................................................................ 232

8.3 運動控制器組件設置 ...........................................................................................233

8.3.1 運動控制器設置 ....................................................................................................... 233

8.3.2 使用運動控制器 ....................................................................................................... 235

8.3.3 設置運動控制器 ....................................................................................................... 235

8.4 VR攝像機重構 .....................................................................................................238

8.4.1 Unreal Engine 4.11和更新版本中的VR攝像機設置 ............................................... 238

8.4.2 將舊版本VR攝像機更新到4.11 ............................................................................... 238

8.4.3 設置物體跟隨HUD ................................................................................................... 239

8.4.4 HMD和玩家位置 ...................................................................................................... 240