Water prims
Any prim you can modify can become water, or a water displacer that removes water (a dry boat hull, a basement below sea level). In Killer Frost the prim's own faces disappear and water takes its place. Other viewers show the plain prim, so nothing changes for people who don't use Killer Frost.
An older video from Crystal Frost. Some of the steps have changed since, so follow the instructions below.
Making a water prim
- Right-click the prim and choose Edit. In a linkset, tick Edit Linked Parts and select just the one prim.
- Click Water at the top of the build window. The Water Prim window opens.
- Click Make water prim. Killer Frost adds a small script to the prim that marks it as water and then deletes itself.
- Set the water's colour and clarity on the build window's Texture tab (see Colour and clarity), and tune the rest in the Water Prim window.
To make a displacer instead, do the same, then tick Water displacer in the Water Prim window.
The Water Prim window
The window follows your selection in the build window.
- Status, at the top left: Marked as a water prim, Not marked, or why the window can't be used: Select one prim, You can't modify this prim or The edit window is closed.
- Make water prim, at the top right, is available when the selected prim isn't water yet.
- Water displacer turns the prim into a displacer: it removes water inside its shape instead of being water.
- The settings list has one row per setting: a check box, the setting's name and its value. An unchecked setting isn't used, and the water follows the region's own water for it. Typing a value ticks the box for you.
Changes show on screen at once. The window saves them in the prim's description every 5 seconds while there are changes, so other Killer Frost users see them too. If the description already holds something that isn't water settings, the window asks before replacing it: click Replace to go ahead. A description holds at most 127 bytes; if your settings don't fit, the window says so, and you uncheck some.
Other Killer Frost users pick up changes when the water prim next comes into their view, for example after they relog or the prim is re-rezzed.
Settings reference
Look
Unchecked, each of these follows the region's environment (EEP) water.
| Setting | Value | What it does |
|---|---|---|
| Underwater fog | 0 to 20 | How much the underwater fog is thinned or thickened. |
| Wavelet scale | x,y,z, each 0 to 10 | How rough the waves look in reflections. |
| Large waves, Small waves | x,y, each -20 to 20 | Wave direction and speed, in the prim's own frame (turning the prim turns them). |
| Fresnel scale,offset | scale,offset, each 0 to 1 | How reflective the surface gets at shallow angles. |
| Refraction above, Refraction below | 0 to 3 | How much the water bends what's seen through it, from above and from below. |
| Blur | -0.5 to 0.5 | Blur of what's seen through the water. |
| Normal map (UUID) | texture UUID | The texture that shapes the waves. |
KWS
Used only when your water system is KWS. Unchecked, each follows the classic Crystal Frost water.
| Setting | Value | What it does |
|---|---|---|
| Refraction (i / s) | i or s | Physical or simple refraction. |
| Refraction depth | 0.1 to 50 | The depth (m) physical refraction assumes. |
| Dispersion | 0 to 1 | Rainbow fringes on refracted things; 0 is none. |
| Wind speed, Wind direction | 0.1 to 50, 0 to 360 | The wind that drives the waves (direction in degrees). |
| Turbulence, Time scale | 0 to 1, 0 to 4 | How choppy the waves are and how fast they move. |
| Volumetric light (1 / 0) | 1 or 0 | Light shafts in the water. |
| Caustic strength | 0 to 10 | Rippling light on surfaces under the water; 0 is none. |
| Dynamic waves (1 / 0) | 1 or 0 | Waves pushed by avatars and moving displacers. |
| Underwater effect (1 / 0) | 1 or 0 | The underwater view when your camera is inside. |
Displacer
Used only when Water displacer is ticked.
| Setting | Value | What it does |
|---|---|---|
| Cuts (r, p, rp, 0) | r, p, rp or 0 | Which water it removes: the region's (r), water prims' (p), both (rp, the default) or none (0). |
| Wake | 0 to 10 | How hard it pushes water aside when it moves; 0 (the default) is none. |
Colour and clarity
The water's colour and clarity come from the prim itself: the colour and transparency of face 0 on the Texture tab. The more transparent the face, the clearer the water; a solid face gives murky water. White gives clear, neutral water. Because other viewers show the plain prim, it always stands in for the water: a pool of clear blue water is a clear blue prim everywhere.
How the prim's shape becomes water
- Any shape works: boxes, cylinders, spheres, sculpts and mesh. The prim's shape is the water, and turning the prim turns the water.
- The water level is the top of the faces that point up in the prim's own frame.
- In KWS, a plain box (no cut, hollow, twist or other shape changes) turned only about the vertical axis becomes a glass tank with walls you can see the water through. Every other shape is water surface all over.
- Your camera is under water when it's inside the shape. Closed shapes work best.
- You can still click, touch and edit a water prim as usual.
- Only prims rezzed in-world can be water; worn prims can't.
Displacement: keeping water out
A displacer is a prim that removes water inside its shape. Use one for a boat hull, so the sea doesn't show inside the boat, or for a cellar, tunnel or room below the water line. Unlike a water prim, a displacer stays visible: you still see the hull or the walls, just with no water inside them.
- Build the shape that should stay dry, or use a separate prim that fills the space inside your hull. An invisible (fully transparent) prim works well for this.
- Make it a water prim as above, then tick Water displacer in the Water Prim window.
- If you need to, change Cuts to choose which water it removes: the region's water
(
r), water prims (p), both (rp, the default), or none (0, for a prim that only makes a wake).
- Link the displacer to your boat and it moves with it.
- A displacer that breaks the surface cuts a hole in the water's surface, shaped like the prim. Looking in from outside, you see into the hull, not water.
- The KWS and HDRP water systems can't keep region water and water-prim water apart, so
randpboth behave likerpthere. The Firestorm water system honours all four.
Dry zones under water
A displacer that sits completely under the water makes a dry zone: an air pocket inside the water, such as an underwater room, a glass dome or a submarine. You don't need a separate setting. A displacer that's fully submerged becomes a dry zone on its own.
- Shapes: plain boxes and plain spheres only. Any shape change (hollow, cut, dimple, twist, taper and so on) stops it being a dry zone. Stretched boxes and spheres (ovals) are fine, and so is turning them.
- Inside, the zone is completely dry: no underwater fog, light shafts or caustics. Looking out through a glass wall, the fog starts at the wall, not at your camera.
- From outside, in the water, the pocket shows as clear air: the fog skips the part of your view that passes through it.
- Dry zones work with the KWS water system. With Firestorm and HDRP water, a fully submerged displacer has no effect for now.
- Up to 32 dry zones are shown at once.
- For a room that reaches the surface, such as a dock-side cellar open to the sky, use an ordinary displacer that breaks the surface.
Wakes
Wakes are the waves pushed out by things moving through the water. They need the KWS water system.
Prim wakes
- Make the prim a displacer (see Displacement). For a wake with no hole in the water,
set Cuts to
0. - Tick Wake and set a strength from 0 to 10. Small boats look right around 1 to 3. Use higher values for big or fast craft.
- The water the wake falls on must have Dynamic waves on. Region water has it on when wakes are
on in your preferences. For a water prim, tick Dynamic waves with the value
1in its settings if it doesn't already make waves.
A displacer pushes water only while it moves, so link it to your boat or vehicle.
Avatar wakes
Avatars push water as they walk or swim through it. Their arms, legs and body make the waves, and so do wings, tails and extra legs when their mesh body uses them. Turn avatar wakes on and tune them on Preferences > Graphics > Water > KWS:
- Avatar wakes turns them on or off.
- Most avatars and Distance: how many avatars make wakes, nearest first, and how far away.
- Strength: how big the waves are.
Avatar wakes work in region water and in water prims.
Hide water (Firestorm-compatible)
Killer Frost also supports Firestorm's Hide water option, on the build window's Texture tab. It works per face: a face set to Hide water is invisible and blanks out any water drawn behind it, so you can look into a boat through its deck opening. It doesn't change the water itself: there's no dry zone and no wake, and it doesn't hide the underwater fog. It works in all three water systems and in Firestorm too, so use it when your build must look right in both viewers. Use a displacer when you want Killer Frost's full dry hull or dry zone.
Viewer settings
Preferences > Graphics > Water > General:
- Water prims turns the feature on or off. Off, water prims look as they do in other viewers.
- Most water prims: how many are shown at once, nearest first.
- Water prim distance: how far from the camera they're shown.
Preferences > Graphics > Water > KWS has the underwater effect, underwater light and avatar wake settings.