# Build your first 3D scene

> In about 15 minutes, build a 3D scene of a tank, a pump and a valve, drive the tank's level, the pump's state and the valve's colour from tags, deploy it and look at it in the runtime and on a phone with the thumb sticks.

Product: eaxScada · Type: Tutorial · Editions: Pro, Enterprise
Source: https://eaxware.com/docs/eaxscada/tutorials/build-your-first-3d-scene/
Verified against commit d283039.

A 3D scene shows a plant area as a model whose equipment moves with live values. In this tutorial you build one: storage tank TK-1 with its liquid level, pump P-1 with its state, and valve XV-1 that turns green when it is open. At the end the scene runs in the operator runtime and on a phone.
[Image: The finished scene in the operator runtime: the cut-away tank TK-1 at 84 % with its ladder and railing, pump P-1 labelled STOPPED and control valve XV-1, with the Joystick button.]
[Image: The finished scene in the operator runtime: the cut-away tank TK-1 at 84 % with its ladder and railing, pump P-1 labelled STOPPED and control valve XV-1, with the Joystick button.]

What you will build: the level, the pump's state and the labels follow the tags.
## Before you start

- **A Pro or Enterprise licence.** Designing 3D scenes is a Pro feature. Without it (Free and Starter) the 3D designer opens read-only with "3D design requires a Pro licence or higher", and existing scenes still open and run with live data in the runtime.
- You can open the Studio as an engineer (Lead_Engineer or Administrator).
- The four tags and the fill script of [Build your first 2D screen, step 1](/docs/eaxscada/tutorials/build-your-first-2d-screen/#1-create-the-tags). If you skipped it, create `Line1/Tank1/Level`, `Line1/Tank1/HighSetpoint`, `Line1/Pump1/Running` and `Line1/Valve1/Open` under **Drivers → Local tags (eaxTags)**.
- A computer with a graphics card helps: the designer draws the scene in real time.
- About 15 minutes.

A 3D view shows the plant; it sends no commands. Clicking equipment in the runtime opens its faceplate read-only. Commands stay on 2D screens and isometric maps, where confirmations, e-signatures and interlocks apply (see [Choose an editor](/docs/eaxscada/explanation/choose-an-editor/)).

## 1. Create the scene

1. Open **3D** in the activity bar. The left panel has the tabs **Scenes**, **Palette**, **Outliner** and **Layers**.
2. In **Scenes**, click **New**.
3. Enter **Name** `Line 1 in 3D` and **Identifier** `line1_3d`, then click **Create**.
[Image: The New 3D scene dialog: Name, Folder (project root) and Identifier, with Cancel and Create.]
[Image: The New 3D scene dialog: Name, Folder (project root) and Identifier, with Cancel and Create.]

The identifier is the address operators use: <code>/runtime/line1_3d</code>.
If the designer asks about unsaved changes of an "Untitled" scene you never used, choose **Discard changes**.

## 2. Place the equipment

1. Open **Palette** and type `storage tank` in the search box (**/** puts the cursor there).
2. Click **Storage tank**. It is placed in the middle of the view and selected; its **Properties** open on the right.
3. Type the label `TK-1` in **Display name (label)**.
4. Place a **Centrifugal pump** (label `P-1`) and set its **Position (m)** to X `-4`, Z `0`.
5. Place a **Control valve** (label `XV-1`) at X `3.5`, Z `0`.

Drag in the view to turn around the scene and use the wheel to zoom. **Iso**, **Top**, **Front** and **Side** in the toolbar jump to a standard view. **Ctrl+Z** undoes a step.

## 3. Drive the equipment from tags

Equipment reads its own tags in the **Live data** section of **Properties**:

1. Select the tank and set **Level tag** to `Line1/Tank1/Level`. The liquid in the cut-away tank rises to the level at once, and a label shows the value.
2. Select the pump and set **Running tag** to `Line1/Pump1/Running`. Its label now shows its state (STOPPED while the tag is 0).
[Image: The 3D designer with the tank, the pump and the valve placed; the tank's level is shown at 84 % and the pump is labelled STOPPED.]
[Image: The 3D designer with the tank, the pump and the valve placed; the tank's level is shown at 84 % and the pump is labelled STOPPED.]

Live values in the designer: a tag with no value, or a Bad one, moves nothing and shows a dash.
The valve's own **Position tag** expects an opening in percent. Your tag is 0 or 1, so use a property binding instead:

1. Select the valve and scroll to **Property Bindings**. Click **Add**.
2. Enter the tag `Line1/Valve1/Open`, choose **Colour on condition**, the condition `==` `1`, a green colour for true and a grey one for false.
[Image: The valve's Properties: Live data with an empty Position tag, and a property binding "Colour on condition" on Line1/Valve1/Open == 1 with a green and a grey colour.]
[Image: The valve's Properties: Live data with an empty Position tag, and a property binding "Colour on condition" on Line1/Valve1/Open == 1 with a green and a grey colour.]

Property bindings work on any object: colour, visibility, glow, an alarm highlight, rotation, level, speed, flow or valve position.
To join the equipment with pipes, use the **Pipe** tool (**P**): see [Draw pipes in 3D](/docs/eaxscada/how-to/draw-pipes-in-3d/).

## 4. Set the look and save

Press **Escape** so that nothing is selected (or click the toolbar's **Scene** button): Properties shows the **Scene**: its lighting (an indoor plant hall by default), shadows, quality and floor, and the **Operator camera**. Keep the defaults for now.
[Image: The Scene settings: Lighting and floor (indoor plant hall, exposure, shadows, quality, floor) and Operator camera (Free orbit).]
[Image: The Scene settings: Lighting and floor (indoor plant hall, exposure, shadows, quality, floor) and Operator camera (Free orbit).]

The runtime shows the scene with the same settings.
Save with the green save button at the right of the 3D toolbar (**Save this 3D scene**). The status line under the view changes from **Unsaved changes** to **Saved**.

## 5. Deploy and look at it

1. Click **Deploy**, type your password and click **Sign and deploy**, as in [the 2D tutorial](/docs/eaxscada/tutorials/build-your-first-2d-screen/#8-deploy-and-run-it).
2. Open `http://<server>:8080/runtime/line1_3d`. Drag to orbit, use the wheel to zoom, and click the tank: its faceplate opens, read-only.
3. Start the pump from your 2D screen or isometric map: the pump's label changes to its running state and the liquid rises. Open the valve: it turns green.

On a phone or a tablet the runtime shows two thumb sticks over the view: the left one moves, the right one orbits, and the buttons between them zoom, raise and lower the view, focus and reset it. The **Joystick** button switches them off.
[Image: The scene on a phone: the top bar with Line 1 in 3D and No active alarms, the Joystick button, the scene, and the MOVE and ORBIT sticks with the zoom, height, focus and reset buttons.]
[Image: The scene on a phone: the top bar with Line 1 in 3D and No active alarms, the Joystick button, the scene, and the MOVE and ORBIT sticks with the zoom, height, focus and reset buttons.]

The thumb sticks only move the camera: they send nothing to the plant.
## What you built

A 3D scene whose tank, pump and valve follow four tags, deployed and visible to operators on a desktop and on a phone.

To go further:

- How scenes, live data, alarms and the joystick work: [3D digital twin](/docs/eaxscada/explanation/digital-twin-3d/).
- Pipes and inline valves: [Draw pipes in 3D](/docs/eaxscada/how-to/draw-pipes-in-3d/); your own models: [Use the 3D asset library](/docs/eaxscada/how-to/3d-asset-library/).
- Show the scene inside a 2D screen: place a **3D scene view** (palette, Web and media) and choose the scene's identifier.
- Add the commands next to it: [Build your first 2D screen](/docs/eaxscada/tutorials/build-your-first-2d-screen/) or [Build your first isometric plant map](/docs/eaxscada/tutorials/build-your-first-isometric-plant-map/).
