From fc608d677a33df96342b0ccdb578460eea76c565 Mon Sep 17 00:00:00 2001 From: kanym Date: Wed, 5 Aug 2026 21:37:43 +0200 Subject: [PATCH] feat(dvergar): make the eye a buried ball showing only its cap Your idea, and a better shape for the problem than balancing a small sphere on the surface. A large ball centred well inside the skull breaks the face with a slice of itself, so the face bounds the glow, it cannot float off the cheek, and the visible size is set by how deep the centre sits rather than by the sphere alone. Sized from the two depths already measured: visible at a centre of 82mm with an 8mm radius, gone at 74mm with the same, which puts the face surface around 85-90mm from the head bone. A 30mm radius centred at 65mm clears that by about a centimetre. --- JotunnModStub/Dvergar/DvergarConfig.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/JotunnModStub/Dvergar/DvergarConfig.cs b/JotunnModStub/Dvergar/DvergarConfig.cs index 7c4e93e..f13e600 100644 --- a/JotunnModStub/Dvergar/DvergarConfig.cs +++ b/JotunnModStub/Dvergar/DvergarConfig.cs @@ -102,15 +102,19 @@ namespace RacesOfValheim // guessed: 0.067 buries the eyes completely behind the face, 0.140 stands them off the // skull in profile. 0.105 is the far end of what still reads as inset. // - // Which means depth is spent, and size is the other lever - but it cuts both ways. Taking - // it down to 0.014 did pull the glow into the socket and cost the eye its volume with it: - // at 11mm across, most of the ball is behind the face and the visible cap is flat enough - // to read as a decal rather than an eye. Bigger leaves more sphere standing out of the - // skull, which is what gives it roundness. + // The eye is a large ball buried deep, not a small one balanced on the surface. What shows + // is the slice of it that breaks the face - a spherical cap - so the face itself decides + // the shape and the glow can never float off the cheek. Push the centre in to shrink the + // 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. public static readonly float EyeSeparation = 0.032f; // half the distance between them - public static readonly float EyeForward = 0.105f; + public static readonly float EyeForward = 0.083f; // centre ~65mm out public static readonly float EyeHeight = 0.200f; - public static readonly float EyeSize = 0.026f; + public static readonly float EyeSize = 0.077f; // ~60mm across, so a 30mm 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