Three cannons

The gun tower from Chapter 1 goes into Unreal Engine, gets a hex floor to stand on, and turns out to be the middle of three: Cannon Tower Level 2. By the next morning it has a smaller sibling and a bigger one.

43 captures

Three copies of Cannon Tower Level 2 against a blue sky, one facing forward and two with their twin barrels tilted upward.

01 Repaint

Adobe Substance 3D Painter

Four days after its first paint job, the tower goes back into Substance 3D Painter for a heavier, older look: corroded bronze, dark iron and concrete.

Substance 3D Painter with the untextured gun tower in the viewport and the material library down the left side.

01

A clean slate

A new Substance 3D Painter project for the same model: 4096 pixels, DirectX normals. The rule from here on is to bake all seven mesh maps first, before a single material goes on.

The tower in Substance 3D Painter with a verdigris-green body, its gun housings and barrels outlined in red wireframe.

02

Masks by polygon

Every section gets its own folder and a black mask, filled with Polygon Fill in UV-shell mode, so a material lands exactly on the parts it belongs to.

The red wireframe marks the gun housings being picked out.

The tower with dark iron gun housings and barrels against a mottled green-bronze body and a pale concrete footing.

03

Iron and bronze

Dark gunmetal on the housings and barrels, corroded bronze on the body, concrete underfoot.

These become reusable Zab smart materials, among them ZabGunMetal, ZabGunHousing, ZabBronzeCorroded and ZabBaseConcrete, so the next towers start from the same palette.

Close-up of the iron gun arm and polished shroud in Substance 3D Painter, with the layer panel on the right organised into folders.

04

One folder per section

The layer stack on the right is the recipe: Base, Body, Cooler, Armor, GunHousing and GunMetal, each a folder with its own mask and a smart material inside.

The repainted tower on black: polished shroud, green-bronze body, iron guns and a concrete star-shaped footing.

05

Repainted

Same model as Chapter 1, a different machine: scuffed, chipped and weathered, the way a tower that has seen a few waves should look.

02 Into Unreal Engine

Unreal Engine 5.8

The tower arrives in the game engine as separate parts, so the turret can turn and the guns can tilt.

The tower in Unreal Engine static mesh editor, all grey, standing on a tiled floor in front of a blurred office building.

06

First look in the engine

All grey, on purpose. The FBX comes in with Combine Meshes, Import Materials and Import Textures switched off: every part stays separate, and every material is built by hand.

The same tower in the mesh editor with its new textures: green-bronze body, iron guns, polished shroud and concrete base.

07

Paint on

Substance 3D Painter exports three textures per section with its Unreal Engine preset: base colour, normal, and one packed map holding occlusion, roughness and metalness.

Wired into a hand-built material, the tower looks the way it did in Substance 3D Painter.

The tower placed in the Top Down template test level among blue blocks, ramps and a round platform.

08

A test level

The project started from Unreal Engine's Top Down template, a C++ project created on Nov 15. The tower takes its place in the template's test level, among the blue blocks and ramps.

The tower standing on top of a tall dark hexagonal pillar in an Unreal Engine level, under a blue sky.

09

On a pillar

The hex tile, modelled in Autodesk Maya on Nov 16, isn't a flat tile at all: it's a pillar 700 units tall, so later on tiles can rise and fall to make walls.

The Components panel of BP_CannonTower_L2 in Unreal Engine, listing a DefaultSceneRoot, a TurretPivot and a TiltPivot with the tower parts nested inside.

10

BP_CannonTower_L2

The parts are assembled as a Blueprint, and the Blueprint already has a new name: BP_CannonTower_L2. The gun tower is now a cannon tower, Level 2 of three. Its parts are still called GunTower and MachineGun for now.

Base and pivot base stay on the root. TurretPivot holds everything that turns; TiltPivot, inside it, holds everything that tilts.

The Details panel for BP_CannonTower_L2 showing the TurretPivot and TiltPivot hierarchy, with transform fields below.

11

Pivots by offset

The trick for each pivot: raise it to the height of its joint, then move its child meshes down by the same amount. On Level 3 the TiltPivot ends up at Z 330, with its meshes at Z −330.

Keeping these names identical on every tower means one aiming script can drive them all.

03 Hex floor

Unreal Engine Blueprints · C++

Almost the whole map will be hexagons. A Blueprint lays them out; a C++ class will make them glow under the robots' feet.

The BP-HexGrid Blueprint editor in Unreal Engine with a small node graph and the Columns and Rows variables in the side panel.

12

BP_HexGrid

Two numbers, Columns and Rows, and a GenerateGrid event that runs straight from the editor with a button (Call In Editor), so the floor can be rebuilt without pressing Play.

Blueprint nodes: a GenerateGrid custom event feeding a For Loop whose last index is Columns minus one.

13

One loop

GenerateGrid starts a For Loop that counts across the columns, from zero to Columns minus one.

Blueprint nodes: two nested For Loops over Columns and Rows feeding a Spawn Actor node for BP_HexTile.

14

…inside another

A second loop over the rows runs inside the first, and every pass spawns one BP_HexTile. Columns times rows, one tile each.

Close-up of dark blue-grey hexagonal tiles with bevelled top edges catching the light.

15

Bevelled tops

Flat-top hexagons, 350 units in radius, with the top edge bevelled so every tile reads on its own.

The repainted tower selected on the hex tiles, outlined in orange, with a transform gizmo at its base.

16

Tower meets floor

The tower on its first generated tiles. The move gizmo sits at the very bottom of the base, where the design doc's first model plan put the pivot.

Close-up of the selected tower on the hex floor: iron barrels, corroded green-bronze body and a concrete footing.

17

Close in

Chips in the bronze, scuffs on the iron, pitted concrete: the wear holds up at close range, under the engine's lights rather than Substance 3D Painter's.

A larger Blueprint graph with extra math nodes between the loops and the Spawn Actor node, offsetting alternate columns.

18

Every other column

Hexagons don't stack in straight rows, so alternate columns shift by half a tile. The spacing settled at 525 across and 606.2 down, with odd columns offset 303.1.

The floor is now 60 tiles by 60.

04 A new name

Unreal Engine · Autodesk Maya

The gun tower becomes Cannon Tower Level 2, down to the name of every part, in both programs.

The BP_CannonTower_L2_i1 hierarchy with every part renamed to GEO_CannonTower or GEO_Cannon.

19

Renamed

Every part now reads GEO_CannonTower_ or GEO_Cannon_: base, cooler and pipes, barrels and sleeves, cover and braces, tilt.

The hierarchy stays the same, so nothing has to be re-rigged.

Cannon Tower Level 2 seen from above on the grey hex floor, its polished shroud catching the light.

20

From above

Level 2 from roughly where the player will see it: the shroud, the twin barrels and the footing all have to read from up here.

Three copies of Cannon Tower Level 2 against a blue sky: one facing forward, two turned with their barrels tilted up.

21

Turn and tilt

Three copies, three poses. The turret turns and the barrels tilt, testing the pivots. An early test allowed 35° of tilt; every level now stops at ±30°.

Targeting, turning toward a robot and firing aren't written yet. That's next.

Maya with the Level 2 draft open: the Outliner lists CannonTower parts alongside leftover GunTower and MachineGun names.

22

Halfway there

Back in Maya, mid-rename: GEO_CannonTower_Cooler sits a few rows from GEO_MachineGun_Barrel_L and GEO_GunTower_Tilt.

A Zab Notes entry titled Cannon Tower Level 2, with the renamed hierarchy pasted in and a dated note below it.

23

From the notebook

Making the other levels of the Cannon Tower today. I got 5 other towers to tackle after this set.

Zab Notes, Nov 19, 4:41 PM

The note sits under the renamed hierarchy: “brought in as something else and changed (renamed) to this.”

Maya Outliner listing the Level 2 parts, all renamed GEO_CannonTower and GEO_Cannon, under the base and pivot.

24

Maya catches up

The same names in Maya's Outliner. From now on a fresh export lands in Unreal Engine already sorted.

05 Levels 1 & 3

Autodesk Maya

Level 2 has two barrels. Level 1 gets one; Level 3 gets four. Each upgrade has to look bigger and fancier at a glance.

A grey Maya model seen from above: a squat tower with a tall central block and a gun on each side arm.

25

A first try at Level 1

An early draft with a gun on each arm. It reads more like a sideways Level 2 than a smaller tower, and it doesn't last.

Close-up of grey blocks in Maya: two upright boxes and a back plate on angled supports.

26

Back to boxes

Simple blocks and bevels again: the uprights and back plate that will hold Level 1's single gun.

Level 1 in Maya: a single barrel in a U-shaped cradle with round side caps, the move manipulator on its joint.

27

One barrel

By 6:33 PM Level 1 is down to a single barrel in a U-shaped cradle, with the manipulator sitting on the joint it will tilt from.

Maya Tool Settings for the Select Tool with camera-based selection ticked for Marquee and Drag styles.

28

A setting worth knowing

Camera-based selection, ticked for both marquee and drag: a box selection only picks the faces you can actually see, not the ones hidden behind.

Maya UV Editor with Level 1 UV shells packed into one square, next to the model shaded blue with a few faces highlighted pink.

29

Level 1, unwrapped

One clean 0–1 tile, no overlaps, laid out at 4096 with about 8 pixels of padding between shells. When Unfold crashes Maya, the workaround is a few shells at a time and saving often.

Close-up in Maya of a small bevelled piece with the rotate manipulator rings around it.

30

Small fixes

The rotate tool on one corner piece of the cradle: last adjustments before transforms are frozen and history deleted.

The finished Level 1 mesh in Maya, shaded blue: a single barrel in its cradle on a stacked body and star-shaped footing.

31

Level 1, built

One barrel, a cradle with side caps, a stacked body and the same star-shaped footing as the rest of the family. Exported as SM_CannonTower_L1.

Level 3 in Maya: four barrels in a diamond under a large curved cover drum and ring, on a star-shaped footing.

32

Level 3: four barrels

Four barrels in a diamond, under a bigger cover drum and ring. The idea for every tower type: each level visibly bigger, fancier and better armed.

06 Paint & wiring

Substance 3D Painter · Unreal Engine

Each level gets its own Substance 3D Painter project, its own textures and its own hand-built material.

Substance 3D Painter with the untextured Level 1 model in the viewport and smart material swatches on the left.

33

Level 1 in Substance 3D Painter

The same recipe as the repaint: bake first, then one folder per section with a polygon-fill mask and a Zab smart material. The swatches on the left now include the studio's own.

Unreal Engine Content Browser at Towers, CannonTowers, CannonTower_L2: a Textures folder, the Blueprint and a list of static meshes.

34

A place for everything

Content/Towers/CannonTowers/CannonTower_L2: the Blueprint, every part as its own static mesh, and a Textures folder.

Unreal Engine Content Browser for CannonTower_L1 with the same layout: Textures folder, Blueprint and static meshes.

35

Same shape, Level 1

Level 1 gets the same folder layout. Gun, Rocket, Freeze, Fire and Laser folders are already waiting alongside.

Unreal Engine texture editor tabs for the Level 3 textures with red and yellow error lines about mismatched sampler types.

36

A charred tower

Level 3 came in looking black and burnt. The log says why: the sampler types don't match the textures plugged into them. The normal map and the packed map had been swapped between nodes.

The lesson: check the texture names, not where the nodes happen to sit.

The M_CannonTower_L3 material graph: three texture samples wired into Base Color, Metallic, Roughness, Normal and Ambient Occlusion.

37

Wired right

M_CannonTower_L3: base colour into Base Color, the normal map into Normal, and the packed map split three ways: red to Ambient Occlusion, green to Roughness, blue to Metallic.

The packed texture uses Masks compression with sRGB off, and its node samples it as Masks.

The Unreal Engine material editor with a grey preview sphere on the left and the Level 3 material graph on the right.

38

Compiled

The material editor with its preview sphere. With the nodes in the right places, Level 3 is ready for its first look.

07 Three levels

Unreal Engine 5.8

One family, colour-coded the way every tower will be: green for Level 1, yellow for Level 2, red for Level 3.

  1. Level 1 and Level 2 side by side on the dark hex floor, both with green bodies.

    39

    Two greens

    Level 1 beside Level 2 on the hex floor, both still green.

  2. Level 1 and Level 2 with fresh textures: Level 1 rougher and more worn.

    40

    Wear by level

    New exports for both. Level 1 is meant to be the roughest and most worn; each upgrade gets newer and cleaner.

  3. Level 2 with a bright yellow body next to the green Level 1.

    41

    Level 2 turns yellow

    The middle of the colour code: Level 2's body goes yellow.

  4. The yellow Level 2 and green Level 1 from a slightly different angle.

    42

    Mustard

    A minute later, from a new angle: the yellow settles toward a muted mustard-olive.

  5. All three cannon tower levels in a row on the hex floor: green Level 1 with one barrel, yellow Level 2 with two, red Level 3 with four under a polished drum.

    43

    Three levels

    Level 1: green, one barrel, the most worn. Level 2: yellow, two barrels. Level 3: red, four barrels, the newest and cleanest.

    The cannon tower family is done. Five tower types to go.

Three cannons, standing.

Next: the gun tower comes back, this time with six barrels.