Top Banner
Introduction to Procedural Generation Darren Grey @dgrey0 www.gamesofgrey.com
25

Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Dec 23, 2015

Download

Documents

Noel Horton
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Introduction toProcedural Generation

Darren Grey@dgrey0

www.gamesofgrey.com

Page 2: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Mozart’s Dice Game

Plays randomised bars of music based on dice rollsFrom the 18th century, possibly by MozartProcedural means taking random input (eg dice rolls) and making structured output.http://www.amaranthpublishing.com/MozartDiceGame.htm

Page 3: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Applications of Procedural Generation

• Game design

• Architecture

•Music composition

• Visual arts

• AI design

•Urban planning

•Narrative design

• Data visualisation

• Visual effects in movies

• Simulations

Page 4: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 5: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 6: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 7: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 8: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 9: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Conway’s Game of Life

Alive cell:• 0 or 1 neighbours: die• 2 or 3 neighbours: stay alive• 4+ neighbours: die

Dead cell:• 0-2 neighbours: stay dead• 3 neighbours: become alive• 4+ neighbours: stay dead

http://pmav.eu/stuff/javascript-game-of-life-v3.1.1/

Page 10: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Cellular Automata

• On of the easiest and most popular ways of generating procedural content.• Start with random cells filled in, then apply a

sweep of rules to all cells, perhaps multiple times, until an interesting map is generated.• Can produce interesting fractal shapes, very

useful in making terrain maps, caves, or other naturalistic systems.• Ultimately all of reality is made by cellular

automata!

Page 11: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Cellular automata!

Page 12: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Perlin Noise Worley Noise

Page 13: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 14: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 15: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 16: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 17: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 18: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.
Page 19: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Why use PCG?

• Replayability

• Save costs

• Vast content production

• Can enable new types of gameplay

• Can surprise the creator!

Page 20: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

The downsides

•Bad PCG is boring

•Can be tricky

•Can take aaaages to get right

• Lack of control / unable to test fully

Page 21: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Some further examples

Proteus

•Procedurally generates an island to explore each game

•Generates music on the fly based on surroundings, time and actions

Page 22: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Some further examples

Sir, You Are Being Hunted

•Generally islands based on English countryside and towns•Using an array of techniques and tweaks to make

believable, “lived-in” environments

Page 23: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Some further examples

Mushroom-11

• You control a group of cells that behave like cellular automata•Procedural generation is the game

Page 24: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Some further examples

No Man’s Sky

•Procedural worlds, terrain, lifeforms, etc•Uses a vast array of techniques•Able to make a huge, varied game with a small group

of developers in Guildford

Page 25: Mozart’s Dice Game Plays randomised bars of music based on dice rolls From the 18 th century, possibly by Mozart Procedural means taking random input.

Some further examples

Microsoft Songsmith vs Van Halen•Made by Microsoft as a tool to provide a backing track

to your own singing. Produces hilarious results when applied to well known songs.•Proves the point that bad procedural content is boring!•Also, Mozart > Microsoft.