fix(eyes): female face placement, smaller Dvergar/Aswid eyes, grey Alfar eyes
The female body maps the painted eyes about 6 mm lower and a quarter closer together than the male one (read from bodymale/bodyfem and the skin UVs), so every race's male-tuned eyes sat on the female brow. PlayerFace moves them for the Dvergar, Aswid, Sverm and Alfar. Dvergar eyes shrink to an 18 mm radius. The Aswid's borrowed sockets are halved before the config multiplier and the smoke is off by default. Alfar eyes become slanted, wrapped black almonds with a wet sheen. They are placed in fixed head-local units: the live lossyScale under the non-uniform Alfar body drifted as the head turned, and the 0.5 s cosmetic pass made the eyes trail the face.
This commit is contained in:
parent
a927a6d4b3
commit
026def2fde
8 changed files with 139 additions and 42 deletions
|
|
@ -39,17 +39,26 @@ namespace RacesOfValheim
|
|||
public static ConfigEntry<float> WidthScale;
|
||||
|
||||
/// <summary>
|
||||
/// 1 is the Sverm's size, which is what the design asked to try first ("se non va li
|
||||
/// allarghiamo"). Raise it to enlarge the eyes: 1.6 is roughly a grey from the films.
|
||||
/// Scales the almond eyes (EyeExtent). The default 0.8 is the tuned grey look; raise it for
|
||||
/// bigger eyes.
|
||||
/// </summary>
|
||||
public static ConfigEntry<float> EyeSizeMultiplier;
|
||||
|
||||
// The eye geometry is the Sverm's, unchanged (SvermVisuals): offsets are metres in the head
|
||||
// bone's OWN frame, so they land on the same part of the face at any body scale.
|
||||
public const float EyeSeparation = 0.032f;
|
||||
public const float EyeForward = 0.081f;
|
||||
public const float EyeHeight = 0.181f;
|
||||
public const float EyeSize = 0.062f;
|
||||
// A grey's eyes, on the Sverm's eye spot: offsets are metres in the head bone's OWN frame
|
||||
// at human scale, so they land on the same part of the face at any body scale.
|
||||
// Pushed apart and forward of the Sverm's, because an almond this wide would otherwise
|
||||
// meet its twin over the nose and sink into the cheek.
|
||||
public const float EyeSeparation = 0.037f;
|
||||
public const float EyeForward = 0.086f;
|
||||
public const float EyeHeight = 0.183f;
|
||||
|
||||
// Full width, height and depth of one eye in metres at Eye Size Multiplier 1. The saved
|
||||
// default of 0.8 makes that 50 x 28 x 18 mm.
|
||||
public static readonly Vector3 EyeExtent = new Vector3(0.0625f, 0.035f, 0.0225f);
|
||||
|
||||
// Degrees. Slant raises the outer corner; wrap turns each eye out toward its temple.
|
||||
public const float EyeSlant = 22f;
|
||||
public const float EyeWrap = 20f;
|
||||
|
||||
// ─── Eitr: diet, shield, soft fall ───────────────────────────────────
|
||||
|
||||
|
|
@ -152,7 +161,7 @@ namespace RacesOfValheim
|
|||
new AcceptableValueRange<float>(0.7f, 1.2f)));
|
||||
|
||||
EyeSizeMultiplier = config.Bind(look, "Eye Size Multiplier", 0.8f,
|
||||
new ConfigDescription("1 = the Sverm's eye size; 0.8 is slightly smaller. Raise to enlarge the black eyes.",
|
||||
new ConfigDescription("Scales the black almond eyes. 0.8 is the default look; raise it for bigger eyes.",
|
||||
new AcceptableValueRange<float>(0.5f, 3f)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue