style(dvergar): shrink the cap from most of a face to an eye
The buried-ball idea is right and the first sizing of it was not: a 30mm radius clearing the face by 9mm showed a 43mm cap. Radius halved to 15mm and the centre pulled out to keep about 4mm of clearance, which gives roughly a 20mm eye. Halving the radius also halves how hard the cap reacts to a millimetre of depth, which matters more than the size itself - the big ball made every adjustment an overshoot.
This commit is contained in:
parent
fc608d677a
commit
aee34caafd
1 changed files with 10 additions and 5 deletions
|
|
@ -108,13 +108,18 @@ namespace RacesOfValheim
|
|||
// cap, pull it out to grow one.
|
||||
//
|
||||
// Sized off two measurements. At a centre of 82mm with an 8mm radius the eyes were
|
||||
// visible; at 74mm with the same radius they were gone. So the face sits about 85-90mm
|
||||
// from the head bone, and a 30mm radius centred at 65mm clears it by roughly a
|
||||
// centimetre. All values here are pre-scale - a Dvergar renders at 0.78.
|
||||
// visible; at 74mm with the same radius they were gone. So the face sits about 86mm from
|
||||
// the head bone. All values here are pre-scale - a Dvergar renders at 0.78.
|
||||
//
|
||||
// The cap grows far faster than the depth that makes it, and faster still on a big ball:
|
||||
// a 30mm radius clearing the face by 9mm showed a 43mm cap, most of a face. Radius is
|
||||
// halved for that reason - it does not only shrink the cap, it halves how violently the
|
||||
// cap answers to a millimetre of depth, which is the difference between tuning this and
|
||||
// fighting it. 15mm of radius clearing by 4mm gives about 20mm of eye.
|
||||
public static readonly float EyeSeparation = 0.032f; // half the distance between them
|
||||
public static readonly float EyeForward = 0.083f; // centre ~65mm out
|
||||
public static readonly float EyeForward = 0.096f; // centre ~75mm out
|
||||
public static readonly float EyeHeight = 0.200f;
|
||||
public static readonly float EyeSize = 0.077f; // ~60mm across, so a 30mm radius
|
||||
public static readonly float EyeSize = 0.038f; // ~30mm across, so a 15mm radius
|
||||
|
||||
// Base glow, before any star. The tiers replace it with the emissive colours the game
|
||||
// itself gives a starred dverger - RGBA(0, 4, 3.3) at one star and RGBA(12, 0, 8.8) at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue