Voxel generator based on perlin 3d noise | Python OpenGL 3.3
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.
- Directional Shadows
- Normal Mapping
- Parallax Occlusion Mapping
- Bloom/HDR effect
Install following packages via pip:
- PyOpenGL:
pip install PyOpenGL PyOpenGL_accelerate
- GLFW:
pip install glfw
- PyGLM:
pip install PyGLM
- numpy:
pip install numpy
- Pillow:
pip install Pillow
If you have errors after installation you will do following:
pip uninstall PyOpenGL PyOpenGL_accelerate
- Download and install PyOpenGL and PyOpenGL_accelerate from https://www.lfd.uci.edu/~gohlke/pythonlibs/
G - to generate the new chunk of world
ESC - to exit the program
Open your terminal or CMD and call python executable.py
or python3 executable.py
- I recommend you webiste with great amount of knowledge https://learnopengl.com. Thanks to the author Joey de Vries.
- Textures from https://textures.pixel-furnace.com.