Difference between revisions of "RLVa RFC setsphere"
Jump to navigation
Jump to search
(Created page with "==Mode: Pixelate== ===Example:=== # Clear all modifiers and switch @setsphere to 'pixelate' mode #: <pre>@clear,setsphere=n,setsphere_mode:4=force</pre> # Set the block size t...") |
|||
Line 1: | Line 1: | ||
==Mode: Pixelate== | ==Mode: Pixelate== | ||
− | ===Example | + | {| class="wikitable" |
+ | ! style="text-align:left;"| Command | ||
+ | ! Value(s) | ||
+ | ! Description | ||
+ | |- | ||
+ | |setsphere_mode | ||
+ | |4 | ||
+ | |Switches @setsphere to pixelate mode | ||
+ | |- | ||
+ | |setsphere_param | ||
+ | |<width>/<height>/0/0 | ||
+ | |Specifies the pixelate block size (in pixels) - last 2 params are unused by this mode | ||
+ | |- | ||
+ | |setsphere_distmin | ||
+ | |<distance> | ||
+ | |Sets the distance (in m) at which the effect should start | ||
+ | |- | ||
+ | |setsphere_distmax | ||
+ | |<distance> | ||
+ | |Sets the distance (in m) at which the effect should end | ||
+ | |- | ||
+ | |setsphere_distextend | ||
+ | |1 or 0 | ||
+ | |Specify 1 (default) to extend the effect past the maximum distance or 0 to end it | ||
+ | |- | ||
+ | |setsphere_valuemin | ||
+ | | - | ||
+ | |Unused | ||
+ | |- | ||
+ | |setsphere_valuemax | ||
+ | | - | ||
+ | |Unused | ||
+ | |- | ||
+ | |} | ||
+ | ===Notes=== | ||
+ | * don't use @setsphere_distextend:1=force with a min/max distance value in this mode; just setting distmin will suffice (see examples) | ||
+ | |||
+ | ===Example=== | ||
# Clear all modifiers and switch @setsphere to 'pixelate' mode | # Clear all modifiers and switch @setsphere to 'pixelate' mode | ||
#: <pre>@clear,setsphere=n,setsphere_mode:4=force</pre> | #: <pre>@clear,setsphere=n,setsphere_mode:4=force</pre> | ||
− | # Set the block size to 10x10 | + | # Set the block size to 10x10 (everything is pixelated) |
#: <pre>@setsphere_param:10/10/0/0=force</pre> | #: <pre>@setsphere_param:10/10/0/0=force</pre> | ||
− | # Enforce the effect only when >=10m away | + | # Enforce the effect only when >=10m away (only objects >10m away appear pixelated) |
#: <pre>@setsphere_distmin:10=force</pre> | #: <pre>@setsphere_distmin:10=force</pre> | ||
# Tween to a block size of 25x25 in 15 seconds (and then reset the tween duration for following commands) | # Tween to a block size of 25x25 in 15 seconds (and then reset the tween duration for following commands) |
Revision as of 22:28, 8 January 2021
Mode: Pixelate
Command | Value(s) | Description |
---|---|---|
setsphere_mode | 4 | Switches @setsphere to pixelate mode |
setsphere_param | <width>/<height>/0/0 | Specifies the pixelate block size (in pixels) - last 2 params are unused by this mode |
setsphere_distmin | <distance> | Sets the distance (in m) at which the effect should start |
setsphere_distmax | <distance> | Sets the distance (in m) at which the effect should end |
setsphere_distextend | 1 or 0 | Specify 1 (default) to extend the effect past the maximum distance or 0 to end it |
setsphere_valuemin | - | Unused |
setsphere_valuemax | - | Unused |
Notes
- don't use @setsphere_distextend:1=force with a min/max distance value in this mode; just setting distmin will suffice (see examples)
Example
- Clear all modifiers and switch @setsphere to 'pixelate' mode
@clear,setsphere=n,setsphere_mode:4=force
- Set the block size to 10x10 (everything is pixelated)
@setsphere_param:10/10/0/0=force
- Enforce the effect only when >=10m away (only objects >10m away appear pixelated)
@setsphere_distmin:10=force
- Tween to a block size of 25x25 in 15 seconds (and then reset the tween duration for following commands)
@setsphere_tween:15=force,setsphere_param:25/25/0/0=force,setsphere_tween=force