SlideShare une entreprise Scribd logo
1  sur  27
Télécharger pour lire hors ligne
PROCEDURAL CONTENT

How I learned to stop saying I'm bad at art and love the code
PERLIN NOISE

Invented by Ken Perlin
1. Noise
2. Interpolation
3. Higher Dimensions!
NOISE
Is anyone familiar with a random number generator?
NOISE USED BY PERLIN
A pseudo-random number generator was used, but it was
important that each seed would always produce the same
"random" number
This was done so that wide landscapes, like in DUST, could be
moved in and out of memory depending on where you were, but
would look the same if you revisited a place you had left. The
computer would regenerate that section of the map, but it would
look how you remember it looking.
This also happens to be the reason seeds are identical on different computers in Minecraft. However,
Minecraft uses a tweaked 3D perlin noise to generate the landscape now. If there is interest and time I'll draw
how they accomplish this.
2. INTERPOLATION
We want smooth terrain, or edges, on any perlin noise use. We
do this by interpolating between the points. We don't want
jaggies, and in fact a derivative at each point is preferable.
COMMON INTERPOLATION FUNCTIONS
3x2+2x3
6x5-15x4+10x3
The second seems more complicated. Why use it? Because it also has a SECOND derivative. That can be
useful in some cases.
WHAT ABOUT LINEAR INTERPOLATION?
Linear:
Cubic:
Cosine:
Why suddenly cosine?
It is another non-polynomial interpolation method, that gives pretty good results while also being fast.
BEYOND 1D
2D
This can also be used, and is common in generating heightmaps. A
2D image is given white through black values, which can be
interpreted as higher vs lower ground.

Note: This uses blue instead of white, but the same idea still applies
EVEN HIGHER DIMENSIONS?
3D
Think of a cube with varying densities. This is often used to
generate clouds.
4D?
This is used to show moving/morphing clouds. The fourth
dimention is time. In the same way that slicing through a 3D
Perlin field will look in 2D like morphing 2D "clouds", slicing
through a 4D Perlin field will look like morphing 3D clouds.
5D?!?
Yes. It has been used. I don't have any good examples of it though.
Even 6D has applications, but I'm too scared to think about
anything above 4D.
FRACTALS!
If you add up Perlin fields of different frequencies (granularities),
you will end up with a fractal image that has both large hills of
noise, as well as small bumps.

Each level should be weighed less than previous levels so it will converge to zero. We don't want pixel sized
bumps contributing as much elevation as a mountain!
OTHER PROCEDURAL
CONTENT
L-SYSTEM
Great for plants!

This still uses fractals (they're everywhere in nature) but adding
randomness makes things look more natural.
WHICH LOOKS MORE NATURAL, THE NON-RANDOM OR THE
RANDOM?
MIDPOINT DISPLACEMENT
(DIAMOND-SQUARE)
Assign random points to 4 corners of a 2n+1 square. Find the
average of two points on a side, make the middle point that
plus/minus a small random value to give the terrain variety. Do
this for each side of the square. Then average the 4 corners, set
middle of the square to that value, plus/minus a random value
again. Then do the same procedure to each of the 4 subsquares
you just created. Keep doing this until you give every vertex a
value.
Notice the corners are low. If the water was high enough, this could be an island.
APPLICATIONS
This approach is pretty good when you are trying to make a
procedural island. Perlin noise would not allow you to ensure
that the edges are all under water, but if the 4 initial corners are
set underwater, you'll generally end up with an island. For noninfinite worlds that still want procedural terrain, this is a good
method. However, the downfall is that if you want to add more
terrain on, you have to start from scratch.
This is actually the technique Dwarf Fortress uses, before it erodes, rains on, floods, and all the other stuff it
does before it says your world is finished.
HYBRID APPROACHES
This is the eye candy section. These games have decided to use
many different procedural techniques to make worlds not
feasible for an artist to create (i.e. infinite worlds).
No Man's Sky
No Man's Sky
Voxel Farm Demo
Voxel Farm Demo

Contenu connexe

Similaire à Procedural Content Presentation (12)

Fmp2 production reflectionss
Fmp2 production reflectionssFmp2 production reflectionss
Fmp2 production reflectionss
 
Fmp2 production reflection
Fmp2 production reflectionFmp2 production reflection
Fmp2 production reflection
 
Fmp2 production reflection
Fmp2 production reflectionFmp2 production reflection
Fmp2 production reflection
 
Goo Create: Environment
Goo Create: EnvironmentGoo Create: Environment
Goo Create: Environment
 
Fmp2 production reflection
Fmp2 production reflectionFmp2 production reflection
Fmp2 production reflection
 
Double Exposure Skills Development
Double Exposure Skills DevelopmentDouble Exposure Skills Development
Double Exposure Skills Development
 
Art Direction for Uncharted 2: Among Thieves
Art Direction for Uncharted 2: Among ThievesArt Direction for Uncharted 2: Among Thieves
Art Direction for Uncharted 2: Among Thieves
 
Environment Tutorial
Environment TutorialEnvironment Tutorial
Environment Tutorial
 
Development pro forma
Development pro formaDevelopment pro forma
Development pro forma
 
2 maps & plane table surveying. contours
2 maps & plane table surveying. contours2 maps & plane table surveying. contours
2 maps & plane table surveying. contours
 
Shooting black-and-white
Shooting black-and-whiteShooting black-and-white
Shooting black-and-white
 
Shooting black-and-white
Shooting black-and-whiteShooting black-and-white
Shooting black-and-white
 

Dernier

Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 

Dernier (20)

AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 

Procedural Content Presentation

  • 1. PROCEDURAL CONTENT How I learned to stop saying I'm bad at art and love the code
  • 2. PERLIN NOISE Invented by Ken Perlin 1. Noise 2. Interpolation 3. Higher Dimensions!
  • 3. NOISE Is anyone familiar with a random number generator?
  • 4. NOISE USED BY PERLIN A pseudo-random number generator was used, but it was important that each seed would always produce the same "random" number
  • 5. This was done so that wide landscapes, like in DUST, could be moved in and out of memory depending on where you were, but would look the same if you revisited a place you had left. The computer would regenerate that section of the map, but it would look how you remember it looking.
  • 6. This also happens to be the reason seeds are identical on different computers in Minecraft. However, Minecraft uses a tweaked 3D perlin noise to generate the landscape now. If there is interest and time I'll draw how they accomplish this.
  • 8. We want smooth terrain, or edges, on any perlin noise use. We do this by interpolating between the points. We don't want jaggies, and in fact a derivative at each point is preferable.
  • 9. COMMON INTERPOLATION FUNCTIONS 3x2+2x3 6x5-15x4+10x3 The second seems more complicated. Why use it? Because it also has a SECOND derivative. That can be useful in some cases.
  • 10. WHAT ABOUT LINEAR INTERPOLATION? Linear: Cubic: Cosine: Why suddenly cosine? It is another non-polynomial interpolation method, that gives pretty good results while also being fast.
  • 12. 2D This can also be used, and is common in generating heightmaps. A 2D image is given white through black values, which can be interpreted as higher vs lower ground. Note: This uses blue instead of white, but the same idea still applies
  • 13. EVEN HIGHER DIMENSIONS? 3D Think of a cube with varying densities. This is often used to generate clouds. 4D? This is used to show moving/morphing clouds. The fourth dimention is time. In the same way that slicing through a 3D Perlin field will look in 2D like morphing 2D "clouds", slicing through a 4D Perlin field will look like morphing 3D clouds. 5D?!? Yes. It has been used. I don't have any good examples of it though. Even 6D has applications, but I'm too scared to think about anything above 4D.
  • 14. FRACTALS! If you add up Perlin fields of different frequencies (granularities), you will end up with a fractal image that has both large hills of noise, as well as small bumps. Each level should be weighed less than previous levels so it will converge to zero. We don't want pixel sized bumps contributing as much elevation as a mountain!
  • 16. L-SYSTEM Great for plants! This still uses fractals (they're everywhere in nature) but adding randomness makes things look more natural.
  • 17. WHICH LOOKS MORE NATURAL, THE NON-RANDOM OR THE RANDOM?
  • 19. Assign random points to 4 corners of a 2n+1 square. Find the average of two points on a side, make the middle point that plus/minus a small random value to give the terrain variety. Do this for each side of the square. Then average the 4 corners, set middle of the square to that value, plus/minus a random value again. Then do the same procedure to each of the 4 subsquares you just created. Keep doing this until you give every vertex a value.
  • 20. Notice the corners are low. If the water was high enough, this could be an island.
  • 21. APPLICATIONS This approach is pretty good when you are trying to make a procedural island. Perlin noise would not allow you to ensure that the edges are all under water, but if the 4 initial corners are set underwater, you'll generally end up with an island. For noninfinite worlds that still want procedural terrain, this is a good method. However, the downfall is that if you want to add more terrain on, you have to start from scratch. This is actually the technique Dwarf Fortress uses, before it erodes, rains on, floods, and all the other stuff it does before it says your world is finished.
  • 23. This is the eye candy section. These games have decided to use many different procedural techniques to make worlds not feasible for an artist to create (i.e. infinite worlds).