Marine added @setsphere for compatibility with RLVa, using Kitty Barnett's RLVa-derived effect code and shader, so modes, defaults, the distance/strength formula and the meaning of each parameter match. The command model around it does not: how parameters are sent, stored, replaced and combined between objects differs, and so do some value formats. This page covers @setsphere and all its setsphere_* parameters.
| Aspect | RLV (Marine) | RLVa (Firestorm) |
|---|---|---|
| Setting a parameter | @setsphere_<param>:<value>=n, stored as an ordinary restriction (visible in @getstatus, reported by @notify). =force is accepted as a synonym of =n. | @setsphere_<param>[:<value>]=force only, a modifier of the sender's own sphere; there is no =n/=y form. |
| Order of commands | Parameters may be sent before or after @setsphere=n. | The sender must already hold @setsphere=n; otherwise the parameter fails (unheld behavior). |
| Changing a value | A new value is added next to the old one and the two are mixed; remove the old one with =y and the exact same option first. | A new value replaces the old one; =force without a value restores the default. |
| Several objects | Objects using the same mode share one effect, with parameters mixed (lowest distmin, distmax, distextend, tween, origin; highest valuemin, valuemax; blend colors multiplied, other params by largest component). | Each holder gets its own sphere with its own values; the spheres are rendered one after another. At most six can be active; a seventh @setsphere=n fails. |
Parameters from an object without @setsphere | Still applied to the mode-0 effect if another object activated mode 0. | Rejected. |
Vector values (param) | Up to four floats separated by ; or /; missing values are 0. | Exactly four floats separated by /; anything else fails. |
| Blend color | Set through setsphere_param:r;g;b; there is no setsphere_color. | setsphere_color:r/g/b, or setsphere_param (they share storage). |
| Origin 0 (avatar) | RLV's reference joint (the head by default, configurable), even in mouselook. | The avatar's render position. |
| Tween | Effects are rebuilt from defaults whenever any setsphere restriction changes, so a tween probably animates from the defaults rather than from the previous state. | Later changes are interpolated from the current values. |
| Side effects | Adding any setsphere command forces anti-aliasing, bump/shiny, transparent water, atmospheric shaders and Advanced Lighting Model on and depth of field off; the avatar counts as vision-restricted (as with @camdrawmin/max), and valuemax ≥ 0.25 hides edit beams. | Rebuilds GL buffers if needed; no settings are changed. |
@setsphere=n first, then each parameter once with =force, with vectors as four /-separated floats, e.g. @setsphere=n,setsphere_param:0.4/0/0/0=force,setsphere_distmin:2=force,setsphere_distmax:6=force. To change a value, send @setsphere=y and start over, since RLV adds rather than replaces. Not tested in-world.@setsphere_valuemin, which follows the same model (highest value wins in RLV).@setsphere at all.