You are on page 1of 61

Lecture 10: AI For Generating Content

WID3009: Artificial Intelligence Game Programming

liew.wei.shiung@um.edu.my
Generating Content with AI
• Introduction
• Procedural Content Generation (PCG) Taxonomy
• How to Generate Content
• Roles of PCG in Games
• What Can Be Generated
• Evaluating Content Generators
Exploration:
Generation: Clustering:
Learning: novelty
Large amounts Unsupervised
Representations searching
of content is deep learning
used for training shapes NEAT
generated to from content to
a neural networks to
provide training obtain compact
network. provide unique
data. representations.
content.
https://www.youtube.com/watch?v=nG7ZoIVCO7M
Four key components of experience-driven PCG
https://www.youtube.com/watch?v=5aK1vTcVqjU
Generating Content with AI
• Introduction
• Procedural Content Generation (PCG) Taxonomy
• How to Generate Content
• Roles of PCG in Games
• What Can Be Generated
• Evaluating Content Generators
• AI Dungeon: https://play.aidungeon.io/main/home
https://www.youtube.com/watch?v=9cS8LUBA2LY
https://www.youtube.com/watch?v=PRSH5ZW94gM
• AI Dungeon: https://play.aidungeon.io/main/home
Generating Content with AI
• Introduction
• Procedural Content Generation (PCG) Taxonomy
• How to Generate Content
• Roles of PCG in Games
• What Can Be Generated
• Evaluating Content Generators
Why is it difficult?
• User preferences are diverse, stochastic, and subjective.
• Player vs Designer preferences.
• Game-playing and Designing are expensive processes.

• Content quality relies on underlying algorithms.


• Non-deterministic: difficult to predict quality of generated content.
Function vs. Aesthetics
• Function: objective evaluation.
• Ex: playability, balance/difficulty, symmetry.
• Easy to define constraints for PCG.

• Aesthetics: subjective evaluation.


• Ex: artwork, music, story.
• Difficult to satisfy everybody.
Visualization
• Expressivity: uniqueness vs.
playability.

• Are the levels unique or


uniform?

• Are the levels playable?


AI
AI
• Ad-hoc objective metrics:
• Can the level be completed?

• Ad-hoc subjective metrics:


• How long does it take to complete the level?
Human Players
• Costly.
• For evaluating subjective experience, aesthetics, etc.

• How to evaluate? Type of questionnaire? Evaluation protocols?

You might also like