Skip to content

Build your first 3D scene

eaxScadaTutorialProEnterpriseView as Markdown

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.

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. 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.
  • 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. 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).

  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.

The New 3D scene dialog: Name, Folder (project root) and Identifier, with Cancel and Create. The New 3D scene dialog: Name, Folder (project root) and Identifier, with Cancel and Create.

The identifier is the address operators use: /runtime/line1_3d.

If the designer asks about unsaved changes of an “Untitled” scene you never used, choose Discard changes.

  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.

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).

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. 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.

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. 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.

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.

The Scene settings: Lighting and floor (indoor plant hall, exposure, shadows, quality, floor) and Operator camera (Free orbit). 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.

  1. Click Deploy, type your password and click Sign and deploy, as in the 2D tutorial.
  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.

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 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.

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: