@setsphere=n creates a post-processing "sphere" effect for the sending object. Every rendered pixel is given an effect strength that depends on the distance between the 3D point it shows and the sphere origin (the avatar or the camera), and the chosen effect is applied with that strength. Typical uses are blindfolds and fog (blend towards a color beyond a distance) or blurred vision.
@setsphere=<n|y|add|rem>
@setsphere_<modifier>[:<value>]=force
| Modifier | Type | Default | Meaning |
|---|---|---|---|
| mode | int | 0 | 0 blend, 1 blur, 2 variable blur, 3 chromatic aberration, 4 pixelate |
| origin | int | 0 | 0 avatar, 1 camera |
| color | r/g/b | 0/0/0 | Blend color (stored as params r/g/b/1) |
| param | a/b/c/d | 0/0/0/0 | Mode-specific parameters (shares storage with color) |
| distmin | float m | 0 | Distance where strength is valuemin |
| distmax | float m | 0 | Distance where strength is valuemax |
| distextend | int | 1 | Bit 1: keep valuemax beyond distmax; bit 2: keep valuemin inside distmin |
| valuemin | float | 1 | Strength at distmin |
| valuemax | float | 1 | Strength at distmax |
| tween | float s | 0 | Interpolation time for later changes |
For a pixel at distance d from the origin:
With the defaults (both distances 0, both values 1, extend 1, mode blend, color black) the whole scene is blended fully to black: a complete blindfold.
@setsphere restrictions can be active at once; a seventh @setsphere=n fails with RLV_RET_FAILED_LOCK. Each holder's sphere is rendered in turn, chained one after another.=n fails with RLV_RET_FAILED_OPTION (there are no global modifiers).// Fog: clear up to 2 m, solid grey from 8 m
llOwnerSay("@setsphere=n");
llOwnerSay("@setsphere_color:0.5/0.5/0.5=force");
llOwnerSay("@setsphere_distmin:2=force");
llOwnerSay("@setsphere_distmax:8=force");
llOwnerSay("@setsphere_valuemin:0=force");
llOwnerSay("@setsphere_valuemax:1=force");
setsphere_* modifiers above; @setoverlayRlvBehaviourProcessor<RLV_BHVR_SETSPHERE>("setsphere") plus ten local modifiers, rlvhelper.cpp:240-251; enum ERlvLocalBhvrModifier rlvdefines.h:297-316.rlvhandler.cpp:2156-2199; local modifier path rlvhandler.cpp:1865-1869; cleared on removal rlvhandler.cpp:1767-1768.rlveffects.cpp:152-408; shader app_settings/shaders/class1/deferred/rlvF.glsl:110-151; pipeline hook pipeline.cpp:9025-9033.This command works differently from RLV's @setsphere; see the comparison.