Menu

CImplicitCellular

Anonymous

CImplicitCellular

The CImplicitCellular module is intended to act as an adapter to a CCellularGenerator module, taking the output of the generator (4 distance values and 4 ID numbers) and turning it into Worley noise. It does this by applying a coefficient to each of the 4 distance values, then returning the sum of all 4 components. The coefficients are commonly denoted F1, F2, F3 and F4. Some of the more particularly useful variants include:

(F1=1, F2=0, F3=0, F4=0)

celgen=anl.CCellularGenerator(anl.EUCLID)
cell=anl.CImplicitCellular(celgen, 1.0, 0.0, 0.0, 0.0)

(F1=0, F2=1, F3=0, F4=0)

celgen=anl.CCellularGenerator(anl.EUCLID)
cell=anl.CImplicitCellular(celgen, 0.0, 1.0, 0.0, 0.0)

(F1=-1, F2=1, F3=0, F4=0)

celgen=anl.CCellularGenerator(anl.EUCLID)
cell=anl.CImplicitCellular(celgen, -1.0, 1.0, 0.0, 0.0)

The function can additionally be customized by altering the distance function of the underlying generator. Here is a shot of (F1=-1, F2=1) using the Manhattan metric:

Here is one using the Greatest Axis metric:

And the Least Axis metric:


Related

Wiki: CCellularGenerator
Wiki: CImplicitBlend
Wiki: GeneratorModule
Wiki: ModuleBasics

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.