Procedurally generated scenes with Blender, Python & NumPy

Creating procedurally generated scenes with blender, python and NumPy

4.40 (5 reviews)
Udemy
platform
English
language
3D & Animation
category
37
students
2 hours
content
Nov 2022
last update
$34.99
regular price

What you will learn

How to Use NumPy to create coordinates in a 3D space

How to procedurally generate a terrain with random features

How to create a forest by using the beta distribution

How to use a parametric formula to generate town

Import external models

Export the scene to use it in Godot

Description

Hello and welcome.


If you are a designer or developer who is interested in creating scenes automatically with unique features and the ability to use them in an external application, this course is for you.


This course focuses on creating multiple Python scripts that will help us create a scene with a variety of elements in it.


For this, we will use Blender and its scripting section where we will use Python and the NumPy library.


With NumPy, we will use multiple of its function to generate multiple sequences of numbers that will help us to create 3D coordinates.


These coordinates will be used to create a terrain, a forest and a little town.


This course may be attractive to you because it can help you save time when you are designing scenes with the ability to add your custom elements to the script.


In addition, you will have access to the content created during the course.


I hope you find the content useful and that you can apply it to your personal projects.


Have fun and happy learning.


In this course you will learn:

  • How to Use NumPy to create coordinates in a 3D space.

  • How to procedurally generate a terrain with random features.

  • How to create a forest by using the beta distribution.

  • How to use a parametric formula to generate town.

  • Import external models.

  • Export the scene to use it in Godot.


You will require:

  • Blender 3.X.

  • Be familiar with Python or basic programing. You can follow the videos if you don't have any experience.

  • Optionally Godot to import the Blender scene.

Content

Introduction

Introduction

Basic Scripting

Set up working area
Executing the code
Working with NumPy
Working with np.arange
Working with np.linspace
Working with np.repeat
Arrays with multiple dimensions
Working with np.hstack
Working with np.random
Using mathematical operations
Sine wave

Terrain generator

Creating the terrain
Random reliefs
Hills. Pt 1
Hills. Pt 2
Hills. Pt 3

Forest generator

Beta distibution
Forest width
Centering the forest

Town generator

Parametric circle equation
Circle size
Circle location

Importing external models

Importing the model
Creating multiple instances

Merging code snippets

Merging the terrain and forest scripts
Merging the town script
Merging the import script

Adjusting the details

Working with shrinkwrap
Custom look at function
Custom random direction
Random size
Adding a custom material
Adding random models
Random positions for the houses
Removing duplicate positions
Removing near models
Removing overlapping house

Extra - Exporting the scene

Exporting to glTF
Importing into Godot

Extra - Creating the 3D models

Modeling a tree
Modeling a house

End

Final message

Screenshots

Procedurally generated scenes with Blender, Python & NumPy - Screenshot_01Procedurally generated scenes with Blender, Python & NumPy - Screenshot_02Procedurally generated scenes with Blender, Python & NumPy - Screenshot_03Procedurally generated scenes with Blender, Python & NumPy - Screenshot_04

Charts

Price

Procedurally generated scenes with Blender, Python & NumPy - Price chart

Rating

Procedurally generated scenes with Blender, Python & NumPy - Ratings chart

Enrollment distribution

Procedurally generated scenes with Blender, Python & NumPy - Distribution chart
4952698
udemy ID
10/30/2022
course created date
11/6/2022
course indexed date
Bot
course submited by