Description
blendnoise is a Python wrapper for C-translated Blender noise functions described at BLI_noise module. It is distributed under the same conditions as Blender source code.
WARNING: The maintainer of this package is not connected in any way with Blender authors and/or developers.
Installation
From PyPI
python3 -m pip install blendnoise
From sources
python3 -m pip install build
git clone https://codeberg.org/screwery/blendnoise
cd blendnoise
python3 -m build
python3 -m pip install dist/*
You may need to install C compiler or that stuff.
Usage
I’m not much of a Python C-extension coder, so all functions are C-styled and embarrasingly straightforward.
More info about those functions and arguments you can find at official Blender docs or from Blender sources itself.
Also, you may find useful a fair Matplotlib visualization script.
import blendnoise
# use those ints for noisebasis
NOISEBASIS = {
'OriginalPerlin': 1,
'NewPerlin': 2,
'VoronoiF1': 3,
'VoronoiF2': 4,
'VoronoiF3': 5,
'VoronoiF4': 6,
'VoronoiF1F2': 7,
'VoronoiCracked': 8,
'Cell': 14,
'Blender': 0
}
# Generic noise: just noisebasis, nothing more
blendnoise.noise (noisesize: float, x: float, y: float, z: float, hard: bool,
noisebasis: int)
# Generic turbulence
blendnoise.turbulence (noisesize: float, x: float, y: float, z: float,
oct: int, hard: bool, noisebasis: int)
# Fractal Brownian Movement (FBM)
blendnoise.fbm (x: float, y: float, z: float, H: float, lacunarity: float,
octaves: float, noisebasis: int)
# Multi Fractal
blendnoise.multi_fractal (x: float, y: float, z: float, H: float,
lacunarity: float, octaves: float, noisebasis: int)
# Heterogeneous Terrain
blendnoise.hetero_terrain (x: float, y: float, z: float, H: float,
lacunarity: float, octaves: float, offset: float,
noisebasis: int)
# Hybrid Multi Fractal
blendnoise.hybrid_multi_fractal (x: float, y: float, z: float, H: float,
lacunarity: float, octaves: float,
offset: float, gain: float, noisebasis: int)
# Ridged Multi Fractal
blendnoise.ridged_multi_fractal (x: float, y: float, z: float, H: float,
lacunarity: float, octaves: float, offset:
float, gain: float, noisebasis: int)
# Variable Lacunarity: combined noise bases
blendnoise.variable_lacunarity (x: float, y: float, z: float, distortion: float,
noisebasis1: int, noisebasis2: int)
# Magic Texture (Blender shader texture)
blendnoise.magic_texture (x: float, y: float, z: float, scale: float,
distortion: float, depth: float)
Bugs
Feel free to report bugs and request features here.
Metadata
Release files for blendnoise 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| blendnoise-1.0.2.tar.gz | 26.0 kB | Without provenance | Details |
Release files / blendnoise-1.0.2.tar.gz
| Download URL | blendnoise-1.0.2.tar.gz |
|---|---|
| Size | 26.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
041aad97786a547dc0f96b50b528d7be4b3379e394450a55e29155e2937e90e0
|
|
BLAKE2b-256 checksum How to use checksums |
64095080c39ffe6e03e090589f42e3d1acd04f10b4e723746186b2dcd9070e86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for blendnoise 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.