Skip to main content

Equipment Visual System

The Equipment Visual System handles rendering equipped items on VRM avatars, including weapons, shields, helmets, and temporary gathering tools (e.g., fishing rods during fishing).
Equipment visual code lives in packages/shared/src/systems/client/EquipmentVisualSystem.ts with fitting tools in packages/asset-forge/.

Architecture

Key Components


Equipment Fitting V2 Format

Export Format

Equipment models exported from Asset Forge include metadata for proper attachment:

V2 vs V1 Format

V2 Format (Current):
  • Uses world-space relative matrix approach
  • Captures exact visual relationship between hand bone and weapon
  • Preserves scale compensation automatically
  • No scale hacks needed in Hyperscape
V1 Format (Legacy):
  • Used baked position/rotation with scale multiplier hack
  • Required WEAPON_SCALE_MULTIPLIER = 1.75 in Hyperscape
  • Less accurate for complex bone hierarchies

V2 Export Process

Avatar Height Normalization

Asset Forge normalizes avatar height to 1.6m to match Hyperscape’s VRM factory:
Without this normalization, equipment fitted in Asset Forge would appear at the wrong scale in Hyperscape.

Equipment Loading in Hyperscape

V2 Format Loading

V1 Format Loading (Legacy)


Gathering Tool Display (OSRS-Style)

During gathering activities (fishing, mining, woodcutting), the appropriate tool is shown in the player’s hand even though it’s in inventory, not equipped. This matches OSRS behavior.

Flow

Implementation

Visual System Handling


Tool Detection

The resource system now checks both inventory AND equipped items when detecting tools:
This allows players to:
  • Equip a pickaxe and mine without it being in inventory
  • Equip a hatchet and chop trees
  • Use tools from either inventory or equipment slot

Asset Forge Equipment Panel

The Asset Forge equipment panel now includes tools alongside weapons and shields:

VRM Bone Mapping

Equipment attaches to VRM humanoid bones:

VRM Bone Hierarchy


Equipment Slots


Events


Network Packets

Server → Client


Position Controls

Asset Forge provides fine-grained position controls for equipment fitting:
This allows precise positioning of weapons, shields, and tools on VRM avatars.

Mining Skill Check Fix

The mining skill check now properly validates player level:
Previously, mining skill level was not cached, causing equipment requirement checks to fail for mining tools.