3D particles & weather
3D particles & weather is the plugin that brings particles and weather into the world of a 3D scene:
- Real 3D particles. Each particle lives at its own place in the world, at its own distance. The set hides them pixel by pixel: a column in front of a campfire hides the part of the flame behind it, and the rest shows. They blend with fog and with the glow of the scene look (Realistic or Cartoon).
- Real light. A campfire, a torch or a spell lights up the floor, the walls and the characters, flicker included, and fades with its particles.
- Weather in the world. Rain, snow, dust and fireflies falling around the camera. It does not rain under a roof, and rain splashes on the floor and on roofs.
It is only for 3D scenes: flat scenes do not change at all. The usual flat particles and the screen weather are still available.
Turning it on
- Open Plugins and choose 3D particles & weather (Art and graphics section).
- Switch it On. It needs the 3D scenes plugin: if that one is off, it is turned on with this one.
The plugin page lists the scenes that use it.
The effects are the usual ones
There is no new format. A particle source uses the effect you choose:
- one of the basic effects of the Effects section;
- or one from VFX PRO.
Turning the plugin on does not change any field in VFX PRO or in Effects. An effect is designed the same way and works the same in a flat scene and in a 3D one.
What the effect already has is used automatically:
- Its size. The effect's pixels become metres: what a ×1 character measures on screen.
- Its light. If a VFX PRO effect has Dynamic light, in 3D that light really lights the scene.
Only one thing an effect does works differently in 3D: colliding with the edges of walkable areas and obstacles, which belong to flat scenes. In 3D, an effect that collides does so with the floor and what is above it. Diagnostics tells you which effects use it.
Putting particles in a 3D scene
In the editor of a 3D scene, Particles in the palette and a click wherever you want. With the plugin on, the source is born real 3D.
In its card, the 3D particle group:
- Real 3D / Flat. "Flat" draws it as before: a card facing the camera, on top of the world, which fades out if something covers it. Switching to "Flat" does not erase the rest of the group: if you go back to "Real 3D", it is as you left it.
- Volume. How an effect designed in the plane is taken into the world:
- Around (default): what the effect does in the plane is spread around the vertical axis. A fan of fire becomes a cone; a circle, a sphere.
- Sheet: it stays in the source's vertical plane, turned with its rotation. Good for a waterfall on a wall or a sheet of sparks.
- 3D shape. Where the particles come from: The effect one (its own shape, taken into the world with its volume), or one of its own in metres: point, box, sphere, disc on the floor or cone upwards, with its opening, which also decides where they go. The editor view draws it as a pink wireframe. To resize it by dragging, select the source and switch to Scale (S as in Blender, R as in Unity): the gizmo grabs the shape. A sphere grows evenly in every direction; a disc or a cone, only in width.
- Solid pieces. Instead of cards facing the camera, each particle is a real piece: shards, cubes, leaves or a model from Assets (its first mesh, at the particle's size). They are opaque, take the scene's light and shadow (and cast shadows on High quality), tumble through the air and bounce on the floor under the source, also inside a house; Bounce decides how much (0: they stay where they land). They take the particle's color (a model keeps its own) and shrink at the end of their life. For debris flying out of an explosion, falling stones or a swirl of leaves. They cost more than cards: better few, and the soft edge and tint do not apply.
- Tilt. Tilts the source forwards or backwards.
- Soft edge against the set (25 cm by default). Smoke and fire fade as they get close to the floor or a wall, instead of ending in a straight cut. Only on High quality.
- Tinted by the scene's light. Smoke next to the campfire looks orange and, in moonlight, blue. By default: yes with normal blending (smoke, leaves) and no with additive blending (fire, sparks, which give light).
- Pushed by the weather's wind. A chimney's smoke bends in the storm.
- Lights up the scene, with its colour, intensity, range, flicker and flicker speed. Casts shadows only on High quality, and only one light at a time.
The 3D editor view draws the particles live, with the same code as the game: what you see while editing is what you see while playing. The ⏸ button of the canvas stops them.
Effect lights
Effect lights are few, because each light costs on every pixel of the screen: 1 on Low quality, 2 on Medium and 4 on High.
- If more sources give light, the ones closest to the camera shine.
- When the camera turns, lights do not jump from one source to another: they change with a short fade.
- If the quality drops while playing (Automatic), fewer lights are lit.
- Diagnostics warns if a scene has more than eight point lights and spotlights in total (its own, the objects' and the particles').
Seeing an effect in 3D while designing it
With the plugin on, the stage of the VFX PRO studio has a 3D button. It shows the effect as it will look in a 3D scene:
- on a reference floor, next to a 1.7 m person to judge its size;
- with its dynamic light really lighting the floor.
Drag to orbit and use the wheel to zoom. Changes to the effect show at once, and the transport (play, pause, speed, reset) works the same. Reloading the page (F5) keeps it in 3D; the button again goes back to the usual view.
Weather in the world
In the 3D scene Environment, the Weather in the world group:
- Weather: rain, snow, dust in the air or fireflies.
- Intensity: from 0 to 2 (1 is normal).
- Wind: where it blows towards (degrees) and its strength (m/s). It tilts rain and pushes snow.
- Does not fall under a roof (on by default) and Splashes on the floor and on roofs (rain only, on Medium and High quality).
- Radius around the camera and Colour.
The weather falls in a box that follows the camera. It is anchored to the world: when the camera moves, the rain is not dragged along with it.
To know where it does not rain, the game looks at the scene from above and notes the highest thing at each point: the floor, a roof, a terrace. Inside a house it does not rain; on its roof it does, and splashes. Glass counts too. Invisible volumes (hotspots, regions) and characters do not count.
The usual screen weather is still in its Weather group. You can use both, for example dust on screen and rain in the world. If both are the same kind, Diagnostics suggests removing one.
While playing
- Particles (on, off, burst) works the same with 3D sources. When a source is switched off, its light goes out with it.
- VFX PRO's Burst, Change a value and Stop also act on the 3D sources that use that effect.
- Play VFX effect places the effect in the world, on the floor under its point of the scene. Attach VFX effect attaches it to a character (at chest height) or an object, and follows it. Effect on character releases a burst on them. All three also work in the Cinematics VFX track. Attach to a bone (VERB Rig) is still only for flat scenes.
- Weather (3D) changes the weather in the world of the scene: kind, intensity, wind and the seconds of transition. From rain to snow, the rain fades out and the snow fades in; with the same kind, the intensity goes from one to the other. None removes it and The scene one goes back to the Environment one. The saved game remembers it per scene and, in multiplayer, everyone sees the same.
Quality and phones
| Low | Medium | High | |
|---|---|---|---|
| Live particles in the scene | 1,500 | 4,000 | 10,000 |
| Effect lights | 1 | 2 | 4 (one with shadows, if asked for) |
| Soft edge against the set | no | no | yes |
| Tinted by the light | no | yes | yes |
| Raindrops | 1,500 | 4,000 | 8,000 |
| Splashes | no | yes | yes |
- If an effect asks for more particles than fit, it is cut back in proportion; nothing is removed.
- Raindrops are computed entirely on the graphics card: the processor does no work for them.
- It also works on devices with a single graphics context: the particles show, because they live inside the 3D world. Flat particles do not show on those devices.
- A game with only flat scenes downloads nothing from this plugin.
With the AI agent
The agent can do all of this:
- Turn the plugin on:
set_plugin {id: "particles3d"}. - Place 3D particles:
add_scene_element {kind: "emitter", at3d, fx3d}, with their shape, light and the rest of the card; withfx3d.mesh({piece: shard|cube|leaf|model, model, bounce}), solid pieces. - Change them:
world3d_editwith{op: "set", target, fx3d}.{off: true}makes them flat without losing the rest. - Weather in the world:
world3d_editwith{op: "environment", weather}. - Read it all:
read_scenesays whether each source is real 3D, itsfx3dand what its effect does not translate, and also the weather.
The get_world3d_guide guide explains it.