Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchRender3DTuning::Crowd Struct Referencefinal

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr float SEAT_SPACING = 0.55f
 
static constexpr float ROW_DEPTH = 0.85f
 
static constexpr float DOT_WIDTH = 0.44f
 
static constexpr float DOT_HEIGHT = 0.82f
 
static constexpr float JITTER = 0.12f
 
static constexpr float EMPTY_SEAT_RATIO = 0.08f
 
static constexpr float HOME_SHARE = 0.34f
 
static constexpr float HOME_END_SHARE = 0.62f
 
static constexpr float SCARF_SHARE = 0.25f
 
static constexpr float HOME_END_SCARF_SHARE = 0.5f
 
static constexpr float NEUTRAL_CHEER_SHARE = 0.6f
 
static constexpr float FLAG_SHARE = 0.004f
 
static constexpr float HOME_END_FLAG_SHARE = 0.013f
 
static constexpr float AWAY_END_FLAG_SHARE = 0.007f
 
static constexpr float POLE_HEIGHT = 1.5f
 
static constexpr float FLAG_LENGTH = 1.25f
 
static constexpr float FLAG_HEIGHT = 0.8f
 
static constexpr float FLAG_WAVE = 0.18f
 
static constexpr float FLAG_WAVE_SPEED = 3.2f
 
static constexpr float FLAG_MIN_PIXELS = 2.5f
 
static constexpr float SWAY = 0.035f
 
static constexpr float SWAY_SPEED = 1.3f
 
static constexpr float HOP = 0.3f
 
static constexpr float HOP_SPEED = 8.5f
 
static constexpr float RISE = 0.16f
 
static constexpr float RISE_RATE = 5.0f
 
static constexpr float SETTLE_RATE = 1.2f
 
static constexpr float ARM_REACH = 0.42f
 
static constexpr float ARM_WIDTH_SHARE = 0.16f
 
static constexpr float SCARF_WIDTH_SHARE = 1.9f
 
static constexpr float SCARF_HEIGHT_SHARE = 0.11f
 
static constexpr float SHOULDER_SHARE = 0.78f
 
static constexpr float SHOULDER_DROP = 0.14f
 
static constexpr ImU32 POLE_COLOR = IM_COL32(58, 52, 44, 255)
 
static constexpr float AWAY_END_SHARE = 0.55f
 
static constexpr float SHARE_SWING = 0.3f
 
static constexpr float NOISE_SEATS = 9.0f
 
static constexpr float NOISE_ROWS = 5.0f
 
static constexpr float LIGHT_SWING = 0.14f
 
static constexpr float LIGHT_JITTER = 0.04f
 
static constexpr int CLUMP_SEATS = 4
 
static constexpr int CLUMP_ROWS = 2
 
static constexpr float CLUMP_TOP_SHARE = 0.6f
 
static constexpr float CLUMP_PIXELS = 3.2f
 
static constexpr float MIN_CLUMP_PIXELS = 1.4f
 
static constexpr float FULL_DETAIL_PIXELS = 14.0f
 
static constexpr float HEAD_DETAIL_PIXELS = 5.0f
 
static constexpr float BODY_SHARE = 0.66f
 
static constexpr float NECK_GAP = 0.04f
 
static constexpr float HEAD_WIDTH_SHARE = 0.56f
 
static constexpr float SEAT_SHOW_THROUGH = 0.25f
 
static constexpr std::uint32_t SEED = 20260927U
 

Detailed Description

Spectators at real seat pitch. Seats are grouped into clumps (CLUMP_SEATS x CLUMP_ROWS) that stand in for their members once a seat shrinks below CLUMP_PIXELS on screen, and every spectator's colour fades towards its clump average as it gets smaller (a cheap mip-map), so the stands read as a crowd instead of pixel noise at any distance.

Member Data Documentation

◆ ARM_REACH

constexpr float MatchRender3DTuning::Crowd::ARM_REACH = 0.42f
staticconstexpr

Raised arms reach this share of the height above the head.

◆ ARM_WIDTH_SHARE

constexpr float MatchRender3DTuning::Crowd::ARM_WIDTH_SHARE = 0.16f
staticconstexpr

◆ AWAY_END_FLAG_SHARE

constexpr float MatchRender3DTuning::Crowd::AWAY_END_FLAG_SHARE = 0.007f
staticconstexpr

◆ AWAY_END_SHARE

constexpr float MatchRender3DTuning::Crowd::AWAY_END_SHARE = 0.55f
staticconstexpr

◆ BODY_SHARE

constexpr float MatchRender3DTuning::Crowd::BODY_SHARE = 0.66f
staticconstexpr

◆ CLUMP_PIXELS

constexpr float MatchRender3DTuning::Crowd::CLUMP_PIXELS = 3.2f
staticconstexpr

Seat pitch on screen below which clumps replace spectators.

◆ CLUMP_ROWS

constexpr int MatchRender3DTuning::Crowd::CLUMP_ROWS = 2
staticconstexpr

◆ CLUMP_SEATS

constexpr int MatchRender3DTuning::Crowd::CLUMP_SEATS = 4
staticconstexpr

◆ CLUMP_TOP_SHARE

constexpr float MatchRender3DTuning::Crowd::CLUMP_TOP_SHARE = 0.6f
staticconstexpr

Clump quads reach this share of a spectator above the next row.

◆ DOT_HEIGHT

constexpr float MatchRender3DTuning::Crowd::DOT_HEIGHT = 0.82f
staticconstexpr

◆ DOT_WIDTH

constexpr float MatchRender3DTuning::Crowd::DOT_WIDTH = 0.44f
staticconstexpr

◆ EMPTY_SEAT_RATIO

constexpr float MatchRender3DTuning::Crowd::EMPTY_SEAT_RATIO = 0.08f
staticconstexpr

◆ FLAG_HEIGHT

constexpr float MatchRender3DTuning::Crowd::FLAG_HEIGHT = 0.8f
staticconstexpr

◆ FLAG_LENGTH

constexpr float MatchRender3DTuning::Crowd::FLAG_LENGTH = 1.25f
staticconstexpr

◆ FLAG_MIN_PIXELS

constexpr float MatchRender3DTuning::Crowd::FLAG_MIN_PIXELS = 2.5f
staticconstexpr

Flags smaller than this on screen (px) are left to the crowd tint.

◆ FLAG_SHARE

constexpr float MatchRender3DTuning::Crowd::FLAG_SHARE = 0.004f
staticconstexpr

◆ FLAG_WAVE

constexpr float MatchRender3DTuning::Crowd::FLAG_WAVE = 0.18f
staticconstexpr

◆ FLAG_WAVE_SPEED

constexpr float MatchRender3DTuning::Crowd::FLAG_WAVE_SPEED = 3.2f
staticconstexpr

◆ FULL_DETAIL_PIXELS

constexpr float MatchRender3DTuning::Crowd::FULL_DETAIL_PIXELS = 14.0f
staticconstexpr

Seat pitch at which a spectator shows its own colour fully.

◆ HEAD_DETAIL_PIXELS

constexpr float MatchRender3DTuning::Crowd::HEAD_DETAIL_PIXELS = 5.0f
staticconstexpr

Spectators wider than this get a separate head block.

◆ HEAD_WIDTH_SHARE

constexpr float MatchRender3DTuning::Crowd::HEAD_WIDTH_SHARE = 0.56f
staticconstexpr

◆ HOME_END_FLAG_SHARE

constexpr float MatchRender3DTuning::Crowd::HOME_END_FLAG_SHARE = 0.013f
staticconstexpr

◆ HOME_END_SCARF_SHARE

constexpr float MatchRender3DTuning::Crowd::HOME_END_SCARF_SHARE = 0.5f
staticconstexpr

◆ HOME_END_SHARE

constexpr float MatchRender3DTuning::Crowd::HOME_END_SHARE = 0.62f
staticconstexpr

The home end (west) is packed with the club's own supporters.

◆ HOME_SHARE

constexpr float MatchRender3DTuning::Crowd::HOME_SHARE = 0.34f
staticconstexpr

◆ HOP

constexpr float MatchRender3DTuning::Crowd::HOP = 0.3f
staticconstexpr

◆ HOP_SPEED

constexpr float MatchRender3DTuning::Crowd::HOP_SPEED = 8.5f
staticconstexpr

◆ JITTER

constexpr float MatchRender3DTuning::Crowd::JITTER = 0.12f
staticconstexpr

◆ LIGHT_JITTER

constexpr float MatchRender3DTuning::Crowd::LIGHT_JITTER = 0.04f
staticconstexpr

◆ LIGHT_SWING

constexpr float MatchRender3DTuning::Crowd::LIGHT_SWING = 0.14f
staticconstexpr

◆ MIN_CLUMP_PIXELS

constexpr float MatchRender3DTuning::Crowd::MIN_CLUMP_PIXELS = 1.4f
staticconstexpr

Clump width below which the stand face alone shows the crowd.

◆ NECK_GAP

constexpr float MatchRender3DTuning::Crowd::NECK_GAP = 0.04f
staticconstexpr

◆ NEUTRAL_CHEER_SHARE

constexpr float MatchRender3DTuning::Crowd::NEUTRAL_CHEER_SHARE = 0.6f
staticconstexpr

◆ NOISE_ROWS

constexpr float MatchRender3DTuning::Crowd::NOISE_ROWS = 5.0f
staticconstexpr

◆ NOISE_SEATS

constexpr float MatchRender3DTuning::Crowd::NOISE_SEATS = 9.0f
staticconstexpr

◆ POLE_COLOR

constexpr ImU32 MatchRender3DTuning::Crowd::POLE_COLOR = IM_COL32(58, 52, 44, 255)
staticconstexpr

◆ POLE_HEIGHT

constexpr float MatchRender3DTuning::Crowd::POLE_HEIGHT = 1.5f
staticconstexpr

Flag pole, cloth size (metres) and waving.

◆ RISE

constexpr float MatchRender3DTuning::Crowd::RISE = 0.16f
staticconstexpr

Rising out of the seats for a shot: height share and rates (1/s).

◆ RISE_RATE

constexpr float MatchRender3DTuning::Crowd::RISE_RATE = 5.0f
staticconstexpr

◆ ROW_DEPTH

constexpr float MatchRender3DTuning::Crowd::ROW_DEPTH = 0.85f
staticconstexpr

◆ SCARF_HEIGHT_SHARE

constexpr float MatchRender3DTuning::Crowd::SCARF_HEIGHT_SHARE = 0.11f
staticconstexpr

◆ SCARF_SHARE

constexpr float MatchRender3DTuning::Crowd::SCARF_SHARE = 0.25f
staticconstexpr

◆ SCARF_WIDTH_SHARE

constexpr float MatchRender3DTuning::Crowd::SCARF_WIDTH_SHARE = 1.9f
staticconstexpr

◆ SEAT_SHOW_THROUGH

constexpr float MatchRender3DTuning::Crowd::SEAT_SHOW_THROUGH = 0.25f
staticconstexpr

Seat colour showing through the crowd on the stand faces.

◆ SEAT_SPACING

constexpr float MatchRender3DTuning::Crowd::SEAT_SPACING = 0.55f
staticconstexpr

◆ SEED

constexpr std::uint32_t MatchRender3DTuning::Crowd::SEED = 20260927U
staticconstexpr

◆ SETTLE_RATE

constexpr float MatchRender3DTuning::Crowd::SETTLE_RATE = 1.2f
staticconstexpr

◆ SHARE_SWING

constexpr float MatchRender3DTuning::Crowd::SHARE_SWING = 0.3f
staticconstexpr

Low-frequency swing of the team share (fan blocks, quieter areas).

◆ SHOULDER_DROP

constexpr float MatchRender3DTuning::Crowd::SHOULDER_DROP = 0.14f
staticconstexpr

◆ SHOULDER_SHARE

constexpr float MatchRender3DTuning::Crowd::SHOULDER_SHARE = 0.78f
staticconstexpr

Shoulders taper to this share of the body width.

◆ SWAY

constexpr float MatchRender3DTuning::Crowd::SWAY = 0.035f
staticconstexpr

Idle sway and goal hop as shares of a spectator's height.

◆ SWAY_SPEED

constexpr float MatchRender3DTuning::Crowd::SWAY_SPEED = 1.3f
staticconstexpr

The documentation for this struct was generated from the following file: