Skip to Content
下一代空间计算:AR与VR创新理论与实践
book

下一代空间计算:AR与VR创新理论与实践

by Erin Pangilinan, Steve Lukas, Vasanth Mohan
October 2020
Intermediate to advanced
302 pages
5h 22m
Chinese
Publishing House of Electronics Industry
Content preview from 下一代空间计算:AR与VR创新理论与实践
现状:响应式
AI
|
191
事所用的工具与技术方法都类似于单个
NPC
所用的工具与技术方法。
20,35,46
最终,任何
行动者都会产生动作,从而产生行为。所以,如果一个游戏对象代表一个真实世界的对
象(虽然其无生命,却可以采取行动),那么它就与本章内容有关。
现状 :响应式
AI
如果你打开一本关于游戏
AI
的书,或者参加游戏开发者大会的
AI
峰会,就会了解到许
多关于有限状态机、行为树,以及规则系统的内容。这
3
种技术以及它们的组合,为目
前大多数电子游戏构建
AI
提供了支持。它们属于同一个
AI
范式,即响应式
AI
。我们在
前面提到过响应式
AI
,并将在本节中进一步讨论它。
你可以在本章末尾找到关于响应式
AI
工具的参考内容。
3,6,27
图
10-2
与图
10-3
展示了一
种简单的敌对角色行为,即“
游猎追击
”,以及它是如何利用两种最流行的技术(有限状
态机与行为树)实现的。这些技术的本质总结出来就是一句话 :利用工具实现行为。也
就是说,开发者需要自行设计出
AI
的所有行为。工具以图形化的方式帮助开发者组织
决策规则,这比采用纯代码的方式更容易被人理解。但工具并没有真正解决问题的能力,
对于决策的设计也没有帮助。因此,工具只算是一种可视化编程语言。工具的优点是提
供了一种易于理解的方式来完成复杂的工作。
图10-2 用有限状态机实现“游猎追击”行为
图10-3 用行为树实现“游猎追击”行为
192
|
第
10
章
AI
角色与行为
图
10-2
所示的系统起始于漫游状态,
AI
在漫游的过程中随机探索环境,并寻找敌人(也
就是玩家)。当玩家出现在视野中时 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉
GPT-3

GPT-3

Sandra Kublik, Shubham Saboo
解密金融数据

解密金融数据

Justin Pauley
机器学习流水线实战

机器学习流水线实战

Hannes Hapke, Catherine Nelson

Publisher Resources

ISBN: 9787121386725