keynote “the future of ai, game, and computer...

98
“The Future of AI, Game, and Computer Graphics” KEYNOTE Youichiro Miyake [email protected] twitter: @miyayou http://www.facebook.com/youichiro.miyake

Upload: others

Post on 04-Apr-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

“The Future of AI, Game, and

Computer Graphics”

KEYNOTE

Youichiro Miyake

[email protected]

twitter: @miyayou

http://www.facebook.com/youichiro.miyake

Page 2: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Thanks & Self-Introduction

• Welcome to Japan

• Thanks for Prof. Ruck Thawonmas

• me • me

2004-2011 AI Programmer (FROM SOFTWARE)

2011-Present Lead AI Researcher (SQUARE-ENIX)

2007-Present Chairman of IGDA JAPAN SIG-AI

2008-Present Research committee of DiGRA JAPAN

Page 3: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Works (2006-2012)

Game Titles (AI technical Works)

Chrome Hounds (2006)

Demon’s Souls (2009)

PokaPoka Airu Village (2011)

Armored Core V (2012)

Books

Page 4: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Recent & Current Status of Game AI

in Game Industry

Recent & Current Status of Game AI

in Game IndustryNumber of Game AI Techniques In these 10 years, field of game AI

has been evolving and expanding.

This rapid changing makes a gap

20001980 1990 2010Time

This rapid changing makes a gap

between academic AI research and

AI development in Game Industry.

But game developers had not passed

their research themes to academic

researchers enough.

Page 5: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

GDC AI Summit

(Game Developer’s

Conference)

AIIDE

(AI and Interactive

Digital Entertainment )

IEEE CIG

(IEEE Computational

Intelligence and Games )

Paris Game AI Conference

http://www.aiide.org

Game AI Industry Conference/Community

http://www.gdconf.com/

Game AI Academic Conference/Community

Intelligence and Games )

AI Game Dev.COM

AI Game Programmers Guild

IEEE CIS

(IEEE Computational

Intelligence Society )

http://www.ieee-cis.org/

http://www.ieee-cig.org/http://gameaiconf.com/

http://aigamedev.com/

http://www.gameai.com/

Page 6: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

The Goal of Keynote

AcademicGame

Industry

Knowledge

(Seeds)

Research Themes

(Seeds)

The Goal of Keynote is introducing many AI research themes in

game industry (I!) to academic researchers (you!) .

Page 7: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (= Environment = Game Stage = Level Design)

AI in Game World

AI Character

(=NPC)

Page 8: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (= Environment = Game Stage = Level Design)

AI in Game World

Procedural Techniques

(Auto-generation, Auto-Control)

Meta AI

AI Character

(=NPC) Character AI

(Brain)

(Auto-generation, Auto-Control)

Page 9: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

CHARACTER AI

Page 10: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Life is in the WorldLife is in the World

http://www.123rf.com/photo_8100542_underwater-photo-of-a-hard-coral-reef.html http://www.gatag.net/04/12/2010/190000.html

http://www.123rf.com/photo_10039937_foggy-forest-at-the-morning-at-autumn.html http://www.flickr.com/photos/rotrauds-kleine-welt/346698184/

Page 11: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Real World

Life is in Real World

Human

Human lives in Real World.

Page 12: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Real World

Life is in Real World

action

Sensor &

Recognition

Human

Human lives in Real World.

Human and Environment interact each other.

Page 13: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

AI is in the Game WorldAI is in the Game World

Page 14: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game World (= Environment = Game Stage = Level Design)

AI is in Game World

AI Character

(=NPC)

AI lives in Game World.

Page 15: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game World

AI is in Game World

AI Character

AI lives in Game World.

AI and Environment interact each other.

Page 16: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game World

AI is in Game World

actionSensor &

Recognition

AI Character

AI lives in Game World.

AI and Environment interact each other.

actionRecognition

Page 17: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game World

AI is in Game World

actionSensor &

Recognition

Information Flow

AI Character

It makes “Information Flow” between AI and Environment.

actionRecognition

Page 18: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

C4 Architecture

D. Isla, R. Burke, M. Downie, B. Blumberg (2001).,

“A Layered Brain Architecture for Synthetic Creatures”, http://characters.media.mit.edu/Papers/ijcai01.pdf

MIT Media Lab.

Synthetic Characters Group

Researching Virtual Pet in Digital World.

Page 19: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Halo Agent Architecture

� Genre:SciFi-FPS

� Developer: BUNGIE Studio

� Publisher : Microsoft

� Hardware: Xbox, Windows, Mac

� Year: 2002

Jaime Griesemer(GDC 2002),The Illusion of Intelligence: The Integration of AI and Level Design in Halo

http://www.bungie.net/Inside/publications.aspx

Page 20: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

F.E.A.R Agent Architecture

SensorsWorking

Memory

Planner

Targeting

World

� Genre:Horror FPS

� Developer: Monolith Production

� Publisher : SIERRA

� Hardware: Windows

� Year: 2004

Agent Architecture Considerations for Real-Time Planning in Games (AIIDE 2005)

http://web.media.mit.edu/~jorkin/AIIDE05_Orkin_Planning.ppt

Planner

BlackboardNavigation

Animation /

Movement

Weapons

World

Page 21: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Killzone 2 Architecture

� Year 2009

� Genre: FPS

� Developer: Guerrilla Games

� Publisher : SCE

� Hardware: PlayStation 3

� Year: 2009

Based on: Alex Champandard, Tim Verweij, Remco Straatman, "Killzone 2 Multiplayer Bots",

http://files.aigamedev.com/coverage/GAIC09_Killzone2Bots_StraatmanChampandard.pdf

Page 22: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Demo

Halo AI Retrospective: 8 Years of Work on 30 Seconds of Fun

Author: Damian Isla (AI Engineering Lead)

http://www.bungie.net/Inside/publications.aspx

Page 23: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Agent Architecture

AI

Recognition

(Knowledge

Making)

Decision

Making

Motion

Making

Game World

Sensor Effecter

Memory

Page 24: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Agent Architecture

AI

Recognitio Decision

Making

Motion

Making

Game World

Sensor Effecter

Memory

Page 25: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Agent Architecture

AI

Recognitio Decision

Making

Motion

Making

Game World

Sensor Effector

Memory

Information Flow

Page 26: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Character AI Research themes

(1) Agent Architecture (Framework)

(2) Sensor

(3) Recognition

(4) Memory (4) Memory

(5) Decision Making

(6) Motion Making

( ) …

Page 27: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Character AI Research themes

(1) Agent Architecture (Framework)

(2) Sensor

(3) Recognition

(4) Memory (4) Memory

(5) Decision Making

(6) Motion Making

( ) …

Page 28: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Character AI Research themes

(1) Agent Architecture (Framework)

(2) Sensor

(3) Recognition

(4) Memory

Knowledge Making

(4) Memory

(5) Decision Making

(6) Motion Making

( ) …

Page 29: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(2) Sensor

In many cases, Visual Sensor is implemented as ray-casting model.

Page 30: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(2) Sensor

In many cases, Hearing Sensor is implemented as volume model.

土田善紀、細江一博[CEDEC]5.1ch時代の3D音源・遮蔽・そしてその配置~OpenALでは何も出来ない~http://cedil.cesa.or.jp/session/detail/376

Page 31: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Knowledge Representation

AI

WORLD

Can AI recognize sufficiently the world by his sensors ? No.

AI

WORLD

Information to help AI recognize the World (Object/Fact/Space)

= Knowledge Representation(KR)

Knowledge

Representation

(KR)

31

Page 32: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Knowledge Representation (Example: F.E.A.R.(2004))

Working Memory Fact (WMF)In F.E.A.R.

Character, Object, Mission, Fact, Path, Node, Desire is presented as Unified Form “WMF”

WMF

PlaceDirectionStimulusObject

Desire

Place (Value, Confidence)

Direction (Value, Confidence)

Stimulus (Value, Confidence)

Object (Value, Confidence)

Desire (Value, Confidence)16 Field

Confidence

Value

© 2011 SQUARE ENIX CO., LTD. All rights

reservedOct.8, 2011 32

Jeff Orkin, "Three States and a Plan: The A.I. Of F.E.A.R(GDC2006)

(Document,PPT,Movie)", 2006 http://www.jorkin.com/gdc2006_orkin_jeff_fear.zip

Desire

Time

SECRET

Desire (Value, Confidence)

Time (Value, Confidence)

Page 33: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

WMF Stacks

Facts AI recognized are stacked in Working Memory as WMFs in each field.

Character Fact DesireMissionObject Path

Page 34: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Using WMF StacksFacts AI recognized are stacked in Working Memory as WMFs in each field.

By using WMF stack, AI can estimate some knowledge of the future.

I saw Character A in (60,60) at 10 sec ago.

I saw Character A in (80,40) at 30 sec ago.

I saw Character A in (100,20) at 50 sec ago.

Character?

X

Y

1008060

AI can estimate the character A position in the future.

Page 35: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Knowledge Representation(KR)

How many kinds of KR are there ?

Number of how AI should recognize a fact.

“KR”s is the base to make high intelligence

Page 36: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Variation of Knowledge Representation

Semantic NetworkDependency Graph Rule-based Representation

Army

Training HouseSteel

man treemine

WMFEnemy RepresentationWorld Representation

© 2011 SQUARE ENIX CO., LTD. All rights

reservedOct.8, 2011 36

Griesemer,J, "The Illusion of Intelligence: The Integration of AI and Level Design in Halo", 2002

http://www.bungie.net/images/Inside/publications/presentations/publicationsdes/design/gdc02_jaime_griesemer.pdf

Page 37: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

World Representation (one of KR)World Representation (WR)

= KR for Game Stage

(Representation based on Waypoint or Navigation Mesh)

(例) Waypoints with 8-direction LOS(visible distance) (Killzone)

Straatman, R., Beij, A., Sterren, W.V.D., "Killzone's AI : Dynamic Procedural Combat Tactics", 2005

http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf

◆ FPS

◆ Guerrilla

◆ SCEE/SEGA

◆ PS2

◆2004/2005

Page 38: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Variation of World Representation Waypoints with LOS Distribution Map Territory Representation

Halo2KillzoneLeft 4 Dead

Damian Isla,"Building a Better Battle: HALO 3 AI Objectives",

http://www.bungie.net/inside/publications.aspx

NavMesh-Waypoint

Hierarchical Representation

Tactical Map ClusteringTactical Point System

Killzone2Halo Assassin’s Creed

Oct.8, 2011 38Alex J. Champandard, Remco Straatman, Tim Verweij, "On the AI Strategy for KILLZONE 2's Bots”

http://aigamedev.com/open/coverage/killzone2/

Michael Booth, "The AI Systems of Left 4 Dead," Artificial Intelligence and Interactive Digital Entertainment

Conference , http://www.valvesoftware.com/publications.html

Page 39: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Agent Architecture

AI

Recognitio Decision

Making

Motion

Making

Game World

Sensor Effecter

Memory

Knowledge Representation

World Representation

Game World

Represent itself

Page 40: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Agent Architecture

AI

Recognitio Decision

Making

Motion

Making

Game World

Sensor Effecter

Memory

KR

WR

KR and WR enforce and expand sensors.

Page 41: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Agent Architecture

AI

Recognition Decision

Making

Motion

Making

Game World

Sensor Effecter

Memory

KR

WR

Type of KR and WR = Type of Knowledge in Memory (via sensors)

WR

KR

Page 42: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

… And one more concept… And one more concept

Page 43: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Affordance Representation

Affordance Representation

= Actions enable in the environment

� Year 2004

� Genre:SciFi-FPS

� Developer: BUNGIE Studio

� Publisher : Microsoft

� Hardware: Xbox, Windows, Mac

� Year: 2004

The car is afford to move to one direction.

= movable to one direction for AI.

[Affordance Representation] for the car

- movable

- direction (10, 120, 40)

Page 44: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Affordance Representation

Affordance Representation

= Actions enable in the environment

� Year 2011

� Genre:Action

� Developer: FROM SOFTWARE

� Publisher : CAPCOM

� Hardware: PSP

� Year: 2011

Each object has Affordance Representation.

[CEDEC2011]

Namiki Kosuke,"Afforfance-oriented AI for PokaPoka Airu Village"

http://cedil.cesa.or.jp/session/detail/697

Attackable

Eatable

Page 45: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Affordance RepresentationAffordance Representation

= Actions enable in the environment

� Year 2011

� Genre:Action

� Developer: FROM SOFTWARE

� Publisher : CAPCOM

� Hardware: PSP

� Year: 2011

Each object has Affordance Representation.

= Each object suggests “Enabled-Action” to AI.

[CEDEC2011]

Namiki Kosuke,"Afforfance-oriented AI for PokaPoka Airu Village"

http://cedil.cesa.or.jp/session/detail/697

http://www.4gamer.net/games/100/G010022/20110906085/

Page 46: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Agent Architecture

AI

Recognitio Decision

Making

Motion

Making

MemoryKR

Game World

Sensor Effecter

Memory

Knowledge Representation

World Representation

Affordance Representation

WR

KR

Enable-Action-List

Affordance Representation = Afforded Action-List in the Environment (via sensor)

Page 47: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Agent Architecture

AI

Recognition Decision

Making

Motion

Making

MemoryKR

Attack-able to Enemy A

Eat-able to Object B

Movable to Car C

Walk-able on Bridge D

Eat-able to Object E

Game World

Sensor Effecter

Memory

Knowledge Representation

World Representation

Affordance Representation

WR

KR

Enable-Action-List

Affordance Representation = Afforded Action-List in the Environment (via sensor)

Page 48: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(4) Memory Structure & Management

Memory has two hierarchical structure

(a) time-hierarchical structure

(b) logic-hierarchical structure

Memory

Information

Page 49: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(4) Memory Structure & Management

Memory has two hierarchical structure

(a) time-hierarchical structure

(b) logic-hierarchical structure

Memory

Information

Page 50: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(4) Memory Structure & Management Memory has two hierarchical structure

(a) time-hierarchical structure

(b) logic-hierarchical structure

Memory

Working Memory

Short-term Memory

Long-term Memory

Fixed (Static)

Memory

Page 51: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Information Information propagate through hierarchical-Memory-Structure.

Memory

Working Memory

Short-term Memory

Long-term Memory

Fixed (Static)

Memory

Page 52: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Information Information propagate through hierarchical-Memory-Structure.

Memory

Working Memory

Short-term Memory

Long-term Memory

Fixed (Static)

Memory

Page 53: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Information Information propagate through hierarchical-Memory-Structure.

Memory

Working Memory

Short-term Memory

Long-term Memory

Fixed (Static)

Memory

Page 54: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Information Information propagate through hierarchical-Memory-Structure.

Memory

Working Memory

Short-term Memory

Long-term Memory

Fixed (Static)

Memory

Page 55: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Information

1 Frame Update

Multiple-Time-Scale-hierarchical-Memory-Structure.

Memory

Working Memory

Short-term Memory

Long-term Memory

Fixed (Static)

Memory

10 Frame Update

60 Frame Update

No Update

Page 56: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Information

1 Frame Update

Memory

Working Memory

Short-term Memory

Long-term Memory

Fixed (Static)

Memory

10 Frame Update

60 Frame Update

No Update

Page 57: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Memory has two hierarchical structure

(a) time-hierarchical structure

(b) logic-hierarchical structure

Ab

stra

ctio

nA

bst

ract

ion

Page 58: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making

AI

Recognition Decision

Making

Motion

Making

KR

Game World

Sensor Effecter

Memory

Knowledge Representation

World Representation

Affordance Representation

WR

KR

Enable-Action-List

Page 59: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making

Decision Making Techniques are classified to 6 types

State-based AI

Rule-based AI

Decision

Goal-based AI

Behavior-based AI

Utility-based AI

Task-based AI

Decision

Making

“Something- Based” means a Decision-Making-Method use

Something as unified-form of thinking.

Page 60: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making

Decision Making Techniques are classified to 6 types

State-based AI

Rule-based AI

Decision

The Form of thinking

Goal-based AI

Behavior-based AI

Utility-based AI

Task-based AI

Decision

Making

“Something- Based” means a Decision-Making-Method use

Something as unified-form of thinking.

Page 61: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making

Rule-based AI

� Year 2009

� Genre:Simulation

� Developer:Maxis

� Publisher : EA

� Hardware: PC, PS3

� Year: 2009

[GDC2010] Richard Evans, "Modeling Individual Personalities in The Sims 3"

http://www.gdcvault.com

Page 62: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making

State-based AI

http://www.idsoftware.com/

A Practical Analysis of FSM within the domain of first-person shooter (FPS) computer game

http://ai-depot.com/FiniteStateMachines/FSM-Practical.html

� Year 1996

� Genre:SciFi-FPS

� Developer: id Software

� Publisher : GT Interactive

� Hardware: PC

� Year: 1996

Page 63: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making

Task-based AI

� Year 2009

� Genre: FPS

� Developer: Guerrilla Games

� Publisher : SCE

� Hardware: PlayStation 3

� Year: 2009

HTN (Hierarchical Task Network)

Based on: Alex Champandard, Tim Verweij, Remco Straatman, "Killzone 2 Multiplayer Bots",

http://files.aigamedev.com/coverage/GAIC09_Killzone2Bots_StraatmanChampandard.pdf

Page 64: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making

Behavior-based AI

(1) Hierarchical Structure of Box

(2) Each box has some behaviors

(3) Each box has one selection-rule

(random, sequential, priority-order…)

(4) Finally, one behavior is selected at end-of-tree.

� Year 2004

� Genre:SciFi-FPS

� Developer: BUNGIE Studio

� Publisher : Microsoft

� Hardware: Xbox, Windows, Mac

� Year: 2004

Behavior-Tree (has become very popular method .)

Damian Isla (2005), Handling Complexity in the Halo 2 AI,

GDC Proceedings.,

http://www.gamasutra.com/gdc2005/features/20050311/isla_01.shtml

Page 65: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making(5) Decision MakingUtility-based AI

Year 2000

� Genre:Simulation

� Developer:Maxis

� Publisher : EA

� Hardware: PC

� Year: 2000

The Sims’ Motive Engine

Ken Forbus, “Simulation and Modeling: Under the hood of The Sims” (NorthWerstern University)

http://www.cs.northwestern.edu/%7Eforbus/c95-gd/lectures/The_Sims_Under_the_Hood_files/frame.htm

Page 66: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making(5) Decision MakingGoal-based AI

Goal-Oriented Action Planning (GOAP)

Has weaponHas weaponHas weaponHas weaponHas weaponHas weaponHas weaponHas weapon

Pick up weapon

No ConditionNo ConditionNo ConditionNo Condition Planner

Chaining = Matching “Preconditon” and “Result”

Jeff Orkins, "Goal-Orientd Action Planning"

TargetTargetTargetTarget

DeadDeadDeadDead

Target A Target A Target A Target A

DeadDeadDeadDead

Attack

WeaponWeaponWeaponWeapon

LoadedLoadedLoadedLoaded

WeaponWeaponWeaponWeapon

LoadedLoadedLoadedLoaded

Load Weapon

Has weaponHas weaponHas weaponHas weaponHas weaponHas weaponHas weaponHas weapon

Action

PreconditionPreconditionPreconditionPrecondition

ResultResultResultResult

Chaining

Chaining

Jeff Orkins, "Goal-Orientd Action Planning"

http://web.media.mit.edu/~jorkin/goap.html

Goal

Page 67: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(5) Decision Making(5) Decision MakingGoal-based AI

Hierarchical Goal Oriented Planning

Goal

Goal Goal Goal

Year 2006

� Genre:Robot Action

� Developer: FROM SOFTWARE

� Publisher : SEGA

� Hardware: XBox360

� Year: 2006

Goal Goal Goal GoalGoal GoalGoal Goal

CEDEC2006「クロムハウンズにおける人工知能開発から見るゲームAIの展望」(三宅陽一郎)http://cedil.cesa.or.jp/session/detail/50

Page 68: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(6) Motion Making

AI

Recognition Decision

Making

Motion

Making

KR

Game World

Sensor Effecter

Memory

Knowledge Representation

World Representation

Affordance Representation

WR

KR

Enable-Action-List

Page 69: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(6) Motion Making

Decision

Making

Motion

Making

In this field, there are many, many models between DM and Motion Making.

Page 70: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(6) Motion Making

State-based AI

Goal-based AI

Rule-based AI

Behavior-based AIDecision

Making

Utility-based AI

Task-based AI

Motion

Making

Gap

continuous

discrete

Page 71: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(6) Motion Making

State-based AI

Goal-based AI

Rule-based AI

Behavior-based AIDecision

Making

Research

Utility-based AI

Task-based AI

Motion

Making

Gap

continuous

discrete

Research

Theme

Page 72: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

(6) Motion Making

AI

Recognition Decision

Making

Motion

Making

KR Body &

Game World

Sensor Effecter

Memory

Knowledge Representation

World Representation

Affordance Representation

WR

KR

Enable-Action-List

Body &

Animation

Representation

Page 73: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Research Themes

(1)Architecture

(2)Knowledge/World/Affordance Representation

(3)Memory Structure & Memory management

(4)Sensor(4)Sensor

(5)Decision Making

…and Synthesis of all these things to make

“Real” intelligence.

Page 74: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

CHARACTER NAVIGATION

Page 75: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Character Navigation

Moving Character in the Environment

� Year 2000

� Genre:FPS

� Developer: TURTLEROCK STUDIO

� Publisher : Valve Software

� Hardware: PC

� Year: 2000

The Official Counter-Strike Bot by Michael Booth (GDC2004)

http://aigamedev.com/insider/presentation/official-counter-strike-bot/

Page 76: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Navigation Problem

Game Stage becomes bigger and complex.

1000- 10000- 40000-

Year2000 2005 2010

Number of meshes

Number of meshes has been increasing.

Problems:

(1) How to make large scale navigation meshes.

(2) How to maintenance large scale meshes.

(3) How to debug large scale meshes.

Page 77: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Navigation Mesh Auto-generation

� Year 2006

� Genre:Robot Action

� Developer: FROM SOFTWARE

� Publisher : SEGA

� Hardware: XBox360

� Year: 200640000-70000 meshes

Auto-generation from collision models

But mesh quality is not good.

CEDEC2006「クロムハウンズにおける人工知能開発から見るゲームAIの展望」(三宅陽一郎)http://cedil.cesa.or.jp/session/detail/50

Page 78: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (= Environment = Game Stage = Level Design)

AI in Game World

Procedural Techniques

(Auto-generation, Auto-Control)

Meta AI

AI Character

(=NPC) Character AI

(Brain)

(Auto-generation, Auto-Control)

Page 79: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

META-AI

Page 80: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Meta-AIAutonomous Game Mechanism

(Game Mechanism AI)

Ever, Game Mechanism is fixed at release.

It makes game content volume limited.

But Game has become bigger and complex.

http://www.valvesoftware.com/publications.html

But Game has become bigger and complex.

Make game mechanism intelligent !

Meta AI = Intelligent Game Mechanism

- Recognize Game Status in real-time

- Control (Act on, Influence)Game Status dynamically

Page 81: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (= Environment = Game Stage = Level Design)

AI in Game World

Meta AI

actionSensor &

Recognition

AI Character

(=NPC)

actionSensor &

Recognition

Page 82: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Left 4 DeadAI Director controls NPC spawning distribution and game-play-pacing.

Year 2008

� Genre:Online Action

� Developer: VALVE SOFTWARE

� Publisher : VALVE SOFTWARE

� Hardware: PC

� Year: 2008 Using nav-mesh for recognizing and controlling

Real-time status of game.

Michael Booth, "Replayable Cooperative Game Design: Left 4 Dead," Game Developer's Conference, March 2009 http://www.valvesoftware.com/publications.html

Page 83: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Left 4 Dead – AI DirectorMeta AI recognize game status in real-time

Predicting player’s route and spawning monsters dynamically.

Michael Booth, "Replayable Cooperative Game Design: Left 4 Dead," Game Developer's Conference, March 2009 http://www.valvesoftware.com/publications.html

Page 84: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

AI Director decide when enemies are spawned.

USER’S INTENSITY

ACTUAL POPULATION

DESIRED

POPULATION

Build Up …プレイヤーの緊張度が目標値を超えるまで敵を出現させ続ける。

Sustain Peak … 緊張度のピークを3-5秒維持するために、敵の数を維持する。

Peak Fade … 敵の数を最小限へ減少して行く。Relax … プレイヤーたちが安全な領域へ行くまで、30-45秒間、

敵の出現を最小限に維持する。

AI Director makes users relax, and break relax repeatedly.

Michael Booth, "Replayable Cooperative Game Design: Left 4 Dead," Game Developer's Conference, March 2009 http://www.valvesoftware.com/publications.html

Page 85: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

PROCEDURAL TECHNIQUES

Procedural

Page 86: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (= Environment = Game Stage = Level Design)

AI in Game World

Procedural Techniques

Meta AI

AI Character

(=NPC)Character AI

(Brain)

Procedural Techniques

(Auto-generation, Auto-Control)

Page 87: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Procedural Techniques

Auto-generation, Auto-Control

Recent game has many, many asset data such as

Terrain, Characters, Weather, Object, Trees, lines….

- It’s too hard work and needs big budget.

- Fixed data makes fixed Game Content.- Fixed data makes fixed Game Content.

Dynamically generate contents in game in real-time

Procedural Techniques

- make terrain, buildings, and vegetation dynamically.

- make scenario and lines in game in real-time.

Page 88: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

DUNIA ENGINE : FarCry2 Procedural Engine

� Genre:FPS

Procedural techniques (for 50kmx50km island)

- Vegetation and its animation auto-generation

- Fire-propagation

- Weather

Year 2008

� Genre:FPS

� Developer: Ubisoft

� Publisher : Ubisoft

� Hardware: PC

� Year: 2008

http://www.farcry2-hq.com/downloads,18,dunia-engine-nr1.htm

Page 89: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

SYNTHESIS

Page 90: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (fixed) (= Environment = Game Stage = Level Design)

Classic Game Structure (1970-)

AI Character

(=NPC)

AI is a part of level design, and game system (mechanism) controls AI characters.

Page 91: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (= Environment = Game Stage = Level Design)

Classic Game Structure (1970-)

AI Character

(=NPC)

AI is a part of level design, and game system (mechanism) controls AI characters.

Page 92: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (= Environment = Game Stage = Level Design)

Game Structure (1995-)

AI Character

(=NPC)

AI Character becomes autonomous. AI by itself sense and take actions.

Autonomous AI

actionSensor &

Recognition

Page 93: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game Mechanism

Game World (= Environment = Game Stage = Level Design)

Game Structure (2000-)

Procedural Techniques

(Auto-generation, Auto-Control)

AI Character

(=NPC)

Game World becomes more dynamical by procedural techniques.

Autonomous AI

actionSensor &

Recognition

Page 94: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game MechanismGame Mechanism

Game World (= Environment = Game Stage = Level Design)

Game Structure (2008-)

Procedural Techniques

(Auto-generation, Auto-Control)

actionSensor &

Recognition

Meta AI

AI Character

(=NPC)

Meta AI makes game mechanism itself more dynamical.

Autonomous AI

actionSensor &

Recognition

Page 95: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

… AND THE FUTURE ?

Page 96: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Game MechanismGame Mechanism

Game World

Game Structure (2012-)

Meta AI

Procedural Techniques

(Auto-generation, Auto-Control)

AI Character

(=NPC)Autonomous AI

Three AI Component will connect each other and makes new game.

Page 97: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

Imagine

• Imagine “Meta AI uses Procedural Techniques”

• Imagine “Meta AI uses autonomous AI”

• Imagine “Procedural AI generation”

• …. To be continued

Page 98: KEYNOTE “The Future of AI, Game, and Computer Graphics”igda.sakura.ne.jp/sblo_files/ai-igdajp/academic/Y...Variation of Knowledge Representation Dependency Graph Semantic Network

THANK YOU SO MUCH!