Gorilla.Volumetric.Noise Unit Reference

Overview

The Gorilla.Volumetric.Noise unit provides TGorillaVolumetricNoise, a ready-to-use procedural cloud / smoke / fog body. It subclasses TGorillaVolumetricMesh, fills its own 3D texture with fractal (FBM) Perlin noise, and renders it as a physically based emission-absorption medium you can fly through.

The constructor applies cloud-friendly defaults: Sizes = vms64x64x64, DataType = vmdtUInt8, RenderInside = True, UseLighting = False, LinearFiltering = True, and the emission-absorption blend (with Density driving the absorption). All properties inherited from TGorillaVolumetricMesh remain available.

Class Hierarchy

TGorillaSingletonMesh
  └── TGorillaVolumetricMesh
        └── TGorillaVolumetricNoise

Enumerations

TGorillaVolumetricNoisePreset = (vnpClouds, vnpSmoke, vnpFog);
Value Look
vnpClouds Puffy cumulus clouds (billowy, rounded, medium coverage). Default.
vnpSmoke Denser, more filled smoke body.
vnpFog Thin, evenly distributed haze.

TGorillaVolumetricNoise

Published Properties — Noise Shaping

Property Type Default Description
Seed LongWord 1500 Random seed of the Perlin generator
Frequency Single 3.0 Base noise scale (cycles across the volume)
Octaves Integer 5 Number of FBM octaves summed for detail
Persistence Single 0.5 Amplitude falloff per octave (0–1)
Lacunarity Single 2.0 Frequency growth per octave
Coverage Single 0.9 Cloud coverage 0–1 (lower = fewer/smaller puffs)
Density Single 1.5 Overall opacity (render-time absorption scale)
EdgeFalloff Single 0.5 Border fade 0–1 (rounded blob vs. filled cube)
Billowy Boolean True Use abs() noise for the puffy cumulus / smoke look

Changing any shaping property (except Density) re-samples the volume automatically. Density only rebuilds the render-time blend, so it is cheap to change.

Public Properties

Property Type Description
Offset TPoint3D Sampling offset added to every voxel. Animate it (and call Regenerate) to make the body drift like moving smoke.

Public Methods

Method Description
ApplyPreset(APreset) Load a complete set of shaping parameters (vnpClouds / vnpSmoke / vnpFog) and rebuild the volume
Regenerate() Re-sample the noise volume from the current parameters and upload it. Call after changing Offset for animation.

Inherited Highlights

From TGorillaVolumetricMesh:

Member Note for noise bodies
Sizes Volume resolution — drop to vms32x32x32 for animated bodies
Details Ray-march quality/performance dial
RenderInside True by default so you can fly through
RayStop Ray termination alpha
SetEmissionAbsorptionBlend / SetLinearBlend The noise uses emission-absorption; Density feeds its absorption scale
FrontFaceRenderPass / BackFaceRenderPass Required face passes (as for any volumetric mesh)

Notes

  • Density is applied as a render-time Beer-Lambert absorption scale, not baked into the voxel data. This keeps dense bodies smooth (no saturation "shells") and makes Density cheap and safe to animate.
  • Regenerate re-samples the whole volume on the CPU — the costly part of animation. Use a modest Sizes and a timer rather than a per-frame update.
  • Lighting is intentionally off: a homogeneous medium has no lit iso-surface. Lit clouds need light-marching (a separate feature).

See Also