Skip to content

stanfortonski/Perlin-Noise-3D-Voxel-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perlin-Noise-3D-Voxel-Generator

Voxel generator based on perlin 3d noise | Python OpenGL 3.3

Voxel Terrain Perlin Noise 3D

About

This is example program had written in Python that generate blocks similar minecraft. This implementation is not optmalized because that draw instanced cubes with position offset. The positions are generating by Perlin Noise. This program do not generation one big mesh. Made for learning purpose.

Features

  • Directional Shadows
  • Normal Mapping
  • Parallax Occlusion Mapping
  • Bloom/HDR effect

Installation

Install following packages via pip:

  1. PyOpenGL: pip install PyOpenGL PyOpenGL_accelerate
  2. GLFW: pip install glfw
  3. PyGLM: pip install PyGLM
  4. numpy: pip install numpy
  5. Pillow: pip install Pillow

If you have errors after installation you will do following:

  1. pip uninstall PyOpenGL PyOpenGL_accelerate
  2. Download and install PyOpenGL and PyOpenGL_accelerate from https://www.lfd.uci.edu/~gohlke/pythonlibs/

Control

G - to generate the new chunk of world
ESC - to exit the program

Execution

Open your terminal or CMD and call python executable.py or python3 executable.py

Thanks