blender-cli-rendering
![Blender](https://img.shields.io/badge/Blender-2.93-brightgreen)
A set of Blender Python scripts for generating scenes and rendering images directly from command-line interface.
Principles
- Able to run without display (thus, the renderer should be Cycles instead of EEVEE)
- Support the latest LTS release (currently 2.93)
Possible Usages
- Material to learn how to use Blender Python APIs.
- Visualization of 3D data with fancy rendering quality.
- Generation of synthetic training datasets for machine learning-based computer vision.
Scripts
01_cube.py
![01_cube](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/01_cube.jpg)
02_suzanne.py
- Directional light
- Algorithmic object placement
- Subdivision surfaces
TRACK_TO
constraint to achieve camera's look-at behavior
- Depth of field
- Smooth shading
![02_suzanne](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/02_suzanne.jpg)
03_ibl.py
- Node-tree
- Image-based lighting using an HDR image
![03_ibl](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/03_ibl.jpg)
04_principled_bsdf.py
- Principled BSDF
- Denoising
- Empty object as a target
![04_principled_bsdf](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/04_principled_bsdf.jpg)
05_composition.py
- Composition nodes
- Node group
![05_composition](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/05_composition.jpg)
06_split_tone.py
- Split tone effect
- Checker board texture
![06_split_tone](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/06_split_tone.jpg)
07_texturing.py
![07_texturing](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/07_texturing.jpg)
08_animation.py
![08_animation](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/08_animation.gif)
09_armature.py
- Skeletal animation
- Skinning
![09_armature](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/09_armature.gif)
10_mocap.py
- Mesh creation from Python data
- BVH data import
- Texture tiling
- Camera following
![10_mocap](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/10_mocap.gif)
11_mesh_visualization.py
- Wireframe
- Vertex colors
- Transparent background
![11_mesh_visualization](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/11_mesh_visualization.jpg)
12_cloth.py
- Cloth modifier
- Collision modifier
- Area light
![12_cloth](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/12_cloth.gif)
13_matcap.py
- MatCap (a.k.a. Lit Sphere)
- Image filtering (e.g., sharpen)
- Simple RGB background
- Node frame
![13_matcap](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/13_matcap.jpg)
14_procedural_texturing.py
![14_procedural_texturing](https://github.com/yuki-koyama/blender-cli-rendering/raw/master/docs/compressed/14_procedural_texturing.jpg)
License
GNU General Public License v3.0 (GPL-3.0). We have chosen this license because we respect the philosophy of free software.