Deprecated. This function has been deprecated. Legacy clouds are no longer supported as of 13.02.08.270166 - this function now only returns 0.0. See llGetEnvironment instead.

Syntax

float llCloud( vector offset );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

vector offset
offset relative to the prim's position and expressed in local coordinates

Only the x and y coordinates in offset are important, the z component is ignored.

Returned values are in the range density (≥ 0.0, ≤ 2.0). Values above 1.0 indicate rain.

Return value

Returns a float that is the cloud density at the prim position + offset

Specification

SL features a cellular automata-based weather system. There are 16x16 square cloud "cells" per region.

Caveats

Examples

default
{
    touch_start(integer num)
    {
        llSay(0,"Cloud density:" + (string)llCloud(ZERO_VECTOR));
    }
}

Notes

Clouds and wind are interrelated.

Client

Clouds are always rendered between about 180-200m absolute height.

Algorithm

The cloud seed/growth/dissipation algorithm uses a solenoidal vector field, which is a vector field with zero-divergence: ∇ · v = 0

This condition is satisfied whenever v has a vector potential A, because if v = ∇ ⨯ A then ∇ · v = ∇ · (∇ ⨯ A) = 0

See also

Functions

Deep notes

History