---
title: Packages
description: Find Tide's optional rendering, particles, geometry, visibility,
  physics, multiplayer menu, Steam and voice packages, and docs for git or local
  packages.
source_url: https://tide-engine.dev/packages
source_file: docs/packages/index.md
source_revision: d46b7bc81b49e31e268bd62d158c040ec1c9ff21
source_worktree: modified
documentation_sha256: cff5cc1f43e9cab7c438614cde0e25d6b097b0171d16e0bfbecd7198624f4f9d
documentation_scope: Website source checkout; not matched to an installed Tide
  release. Check tide version and the project toolchain.
---

<a id="packages"></a>

# Packages

Packages add shared Tide code and C libraries to a game. This source tree contains eleven optional packages: 2D and 3D renderers, CPU visibility queries, mesh building, particle effects, two physics integrations, two multiplayer menus, a Steam integration and Opus voice chat. Each package has its own page here, with setup, API examples and current limits. Use a checkout or installation containing the packages you need.

<a id="bundled-packages"></a>

## Bundled packages

The name in the first column is what you pass to `tide add` or write in `tide.packages`. The namespace is what you use in Tide code.

| Package | Namespace | What it provides | Documentation |
|---|---|---|---|
| `render2d` | `Render2D` | Elevated sprites, normal maps, lights, cutout shadows, screen-space Radiance Cascades and bloom | [Render2D](https://tide-engine.dev/packages/render2d.md) |
| `render3d` | `Render3D` | Static/skinned PBR meshes, lights, shadows, transparency, vertex hooks, bloom and HDR effects | [Render3D](https://tide-engine.dev/packages/render3d.md) |
| `cornerculling` | `CornerCulling` | Conservative CPU box occlusion, cached queries and a spatial tree | [Corner Culling](https://tide-engine.dev/packages/cornerculling.md) |
| `geometry` | `Geometry` | Meshes built in code: shapes, normals and tangents, welding, merging and bounds over a game's own vertex structs | [Geometry](https://tide-engine.dev/packages/geometry.md) |
| `particles` | `Particles` | Bounded particle emitters, code-defined spawn and update functions, and instanced 2D/3D drawing | [Particles](https://tide-engine.dev/packages/particles.md) |
| `box2d` | `Box2D` | Deterministic 2D rigid bodies, shapes, collisions and queries | [Box2D](https://tide-engine.dev/packages/box2d.md) |
| `box3d` | `Box3D` | Deterministic 3D rigid bodies, shapes, collisions and queries | [Box3D](https://tide-engine.dev/packages/box3d.md) |
| `rooms` | `Rooms` | Play, Host and Join menus, room-code sharing and volume settings | [Rooms](https://tide-engine.dev/packages/rooms.md) |
| `lobby` | `Lobbies` | Pre-match lobbies, ready flags, browsing and quick match, with a menu | [Lobby](https://tide-engine.dev/packages/lobby.md) |
| `steam` | `Steam` | Steam identity, lobbies, matchmaking and match transport for `lobby` | [Steam](https://tide-engine.dev/packages/steam.md) |
| `voice` | `Voice` | Optional Opus voice chat through sessions, push-to-talk and receive volume | [Voice chat](https://tide-engine.dev/packages/voice.md) |

Choose `rooms` for a simple Play/Host/Join flow, or `lobby` when players gather before a match and browse or find games. `steam` extends `lobby` for desktop Steam builds and requires the game's own Steamworks library; that library is not bundled with Tide.

Choose `render2d` for lit sprites on the XY plane, with Z elevation, normal maps, cutout silhouettes, shadows on lower surfaces and optional screen-space indirect lighting. Its first version supports opaque and alpha-tested sprites; see its page for the visible-surface GI limits.

Choose `render3d` for package-owned lighting and shadow passes over static or skinned mesh/material components on match entities. It has one camera, multiple directional/point/spot lights, bounded shadow maps, normal/height/ORM/emission maps, cutout shadows, sorted transparency, shared vertex deformation, bloom and an ordered HDR effect chain. Lights can be match or local entities. Its page includes interactive material, animation and effect comparisons with orbit cameras. The engine's drawing and shader APIs remain available for other rendering paths.

Choose `geometry` for meshes a game makes in code: ground, levels built from pieces, shapes for prototypes. It appends to the vertex and index lists `Draw.Mesh` takes, over any vertex struct.

Choose `particles` for sparks, smoke, rain, magic and other local visual effects authored in Tide code. Emitters supply storage and lifetimes; your functions define their behavior.

Choose `box2d` or `box3d` for their collision APIs.

To add one, run this in the game's folder:

```sh
tide add box2d
```

That adds `box2d` to `tide.packages`. Its code uses the namespace `Box2D`, so a file can say `using Box2D;` or name a type in full, such as `Box2D.Body`. `tide add` also adds any packages it needs.

Bundled packages compile with games that list them. A game that leaves a package out compiles and ships none of it. Their versions follow your Tide installation: `tide upgrade` updates them, while `tide update` updates packages from git. See [Using and writing packages](https://tide-engine.dev/packages/using-and-writing.md) for dependency files, pinned commits, local folders, conditional builds and making a package your own.

<a id="what-is-built-into-the-engine"></a>

## What is built into the engine?

The [ECS](https://tide-engine.dev/game/entities.md), [drawing](https://tide-engine.dev/game/views.md), [audio](https://tide-engine.dev/game/audio.md), [GUI](https://tide-engine.dev/game/gui.md), [math](https://tide-engine.dev/language/math.md) and [match networking](https://tide-engine.dev/multiplayer/networking.md) are engine features. You use them without adding a package. `render3d` builds its material lighting, shadows and presentation passes on the engine's mesh, shader and render-target APIs.

In particular, [`Session.Start`, `Open` and `Join`, room codes and host migration](https://tide-engine.dev/multiplayer/matches.md) belong to the engine. The `rooms` package supplies a menu over those features. The `lobby` package adds pre-match groups and matchmaking. Rigid-body collision physics comes from `box2d` or `box3d`.

<a id="finding-a-package-s-docs"></a>

## Finding a package's docs

For a bundled package, use its page in this section. Its installed source folder also contains a `README.md`. Run `tide version` to find the installation folder, then look in `src/packages/<name>/`.

For a package from git, start with the source listed in your game's `tide.packages`: open that repository and read its README, documentation and examples. A source with `//` names a package subfolder within the repository. The file pins a commit, so use documentation from that commit when the repository's latest docs describe a different API. For a local package, start with the folder named by its dependency line.

Editors provide completion and go to definition for packages in the game, so you can inspect the exact declarations you build with. Run `tide fetch` first if a git package has not been downloaded. Package documentation is supplied by its author; Tide does not currently have a package documentation registry or a command that opens a package's docs.

<a id="writing-documentation-for-your-package"></a>

## Writing documentation for your package

When [sharing a package](https://tide-engine.dev/packages/using-and-writing.md#writing-a-package), put a README in its folder that names the package and namespace, shows how to add it and gives a minimal usage example. Link any fuller API docs and examples there, and describe dependencies, required C libraries, supported targets and current limits. Keep the docs with the code so users of a pinned commit can find the matching instructions.
