SlideShare a Scribd company logo
1 of 23
Procedural Land Generation
24th August 2018
Perlin Noise
● Created by Ken Perlin for Tron in 1982
● Simplex Noise 2001
Perlin Noise
● Random value between 0 and 1
● Deterministic, will always produce the same value at the same time
● Equation of values over time
Perlin Noise
● Can still seem random depending on the sample time
● Offset and seed to change time sample placement
2D Perlin Noise
3D noise also used for depth
(Minecraft)
Uses
● Natural behaviours
http://localhost:8080/src/
● Terrain generation Demo
○ Show Offset
○ Seed
● Many more..
Octaves
● Lacunarity (2)
● Increases the frequency
● For each octave:
○ Starting from 0
○ Increase the power by 1
Octaves result
● Persistence (0.5)
● Decreases the amplitude
● For each octave:
○ Starting from 0
○ Increase the power by 1
● Back to unity
Midpoint displacement
● Find Corners
● Shove in random values
2 8
0 3
Midpoint displacement
● Find Corners
● Shove in random values
● Fill the edge with the average
value between the numbers
○ Add a random value to the result
2 5 8
1 5.5
0 1.5 3
Midpoint displacement
● Find Corners
● Shove in random values
● Fill the edge with the average
value between the numbers
○ Add a random value to the result
● Fill the center using the same
method
2 5 8
1 3.3 5.5
0 1.5 3
Midpoint displacement
● Find Corners
● Shove in random values
● Fill the edge with the average
value between the numbers
○ Add a random value to the result
● Fill the center using the same
method
● Fill the remaining values with
progressively smaller squares
2 3.5 5 8
1.5 2.83 4.15
1 2.15 3.3 5.5
0 1.5 3
Midpoint displacement
● Map size: 2n +1
○ So we can set the middle
● Looks great
● http://stevelosh.com/blog/2016/
02/midpoint-displacement/
Midpoint Displacement - Seems
Diamond Square
● Calculate the center by average
the corners
1 2 3
5 5 5
9 8 7
Diamond Square
● Calculate the center by average
the corners
● Then use half the first four
diamonds around the edge
1 3 3
5 5 5
9 8 7
Diamond Square
● Calculate the center by average
the corners
● Then use half the first four
diamonds around the edge
1 3 3
5 5 5
9 8 7
Diamond Square
● Calculate the center by average
the corners
● Then use half the first four
diamonds around the edge
● Then diagonal again
1 3 3
3 4
5 5 5
7 6
9 8 7
Diamond Square
● Calculate the center by average
the corners
● Then use half the first four
diamonds around the edge
● Then diagonal again
● Then diamonds
1 3 3
3 4 4
5 5 5
7 6
9 8 7
Diamond Square
Voronoi Tessellation
Resources
● Procedural Landmass Generation (E01 … E11)
○ https://www.youtube.com/watch?v=wbpMiKiSKm8
● KhanAcademy
○ https://www.khanacademy.org/computing/computer-programming/programming-natural-
simulations/programming-noise/a/perlin-noise
● Nature of code
○ Daniel Shiffman: https://natureofcode.com/
● Udemy: Procedural Terrain Generation
○ https://www.udemy.com/procedural-terrain-generation-with-unity/learn/v4/
● Steve Losh: http://stevelosh.com/blog/2016/02/midpoint-displacement/

More Related Content

More from Green Custard

More from Green Custard (6)

Green Custard Friday Talk 9: Software Religious Arguments
Green Custard Friday Talk 9: Software Religious ArgumentsGreen Custard Friday Talk 9: Software Religious Arguments
Green Custard Friday Talk 9: Software Religious Arguments
 
Green Custard Friday Talk 8: GraphQL
Green Custard Friday Talk 8: GraphQLGreen Custard Friday Talk 8: GraphQL
Green Custard Friday Talk 8: GraphQL
 
Green Custard Friday Talk 7: Scientific Product Design
Green Custard Friday Talk 7: Scientific Product DesignGreen Custard Friday Talk 7: Scientific Product Design
Green Custard Friday Talk 7: Scientific Product Design
 
Green Custard Friday Talk 5: React-Native Performance
Green Custard Friday Talk 5: React-Native PerformanceGreen Custard Friday Talk 5: React-Native Performance
Green Custard Friday Talk 5: React-Native Performance
 
Green Custard Friday Talk 3: Extreme Sheepdog Trials
Green Custard Friday Talk 3: Extreme Sheepdog TrialsGreen Custard Friday Talk 3: Extreme Sheepdog Trials
Green Custard Friday Talk 3: Extreme Sheepdog Trials
 
Green Custard Friday Talk 2: Technology in Games
Green Custard Friday Talk 2: Technology in GamesGreen Custard Friday Talk 2: Technology in Games
Green Custard Friday Talk 2: Technology in Games
 

Recently uploaded

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 

Green Custard Friday Talk 13: Procedural Land Generation