Skip to content

NormalZAdjust

The depth bias applied to the structure's main shape.

Specification
Applies to
BuildingType
File
art.ini
Section
[<Image ID>]Image ID: Image= value; ObjectType ID when omitted
Value
integer
When omitted
0

The value shifts the depth at which the structure’s main shape is drawn, which decides what the structure covers and what covers it. A negative value brings the structure toward the viewer, so it covers more of what surrounds it. A positive value pushes it back. The direction matches an animation’s depth bias, such as ActiveAnimZAdjust.

art.ini
[MYWEAP] ; example war factory, drawn from its own Image ID
NormalZAdjust=-10

The bias applies to the main shape wherever it is drawn, including the frames a Gate=yes structure draws while its gate moves and the copy of the structure shown under fog. Three other shapes use fixed biases: the BibShape apron is drawn one pixel toward the viewer, the DoorAnim frames five pixels toward the viewer, and the UnderDoorAnim shape with no bias.

The main shape ignores this value in three cases:

  • The frames drawn from DeployingAnim while the structure is unloading use no bias.
  • A FirestormWall=yes structure is always drawn one pixel toward the viewer.
  • A LaserFence=yes segment is drawn one pixel toward the viewer while its run is slack. Its live frames use this value.