fix(skeleton): put the jaw mapping back, and dim the head flame
The log settled it. All three skeleton models share one rig - 53 bones each, a bone named Jaw in every one, and not a single bone falling through to the root - which means the player rig has a real Jaw bone and the plain name match was landing on it correctly all along. That is why the plain and poison skeletons always looked right, and why pinning the skull group to the head deformed them. Reverted; the parent walk stays for bones that genuinely match nothing. Which leaves the real question: three models, one rig, one mapping, and only Hildir wears its jaw wrongly. The difference has to be in how that jaw is posed or bound rather than where it is mapped, so the diagnostic now prints the rest transform of every skull bone alongside the player's own. One session loading a working model and the broken one gives the exact correction instead of a third guess at it. The flame works - it resolved to the torch - but at 1.8 it was a white-hot bloom that washed out the screen and hid the skull underneath, which is no way to judge a jaw. Down to 1.1, with the torch light cut further.
This commit is contained in:
parent
5c75170a59
commit
d9b87e97f0
2 changed files with 30 additions and 20 deletions
|
|
@ -63,9 +63,10 @@ namespace RacesOfValheim
|
|||
// Above the head bone's own origin, which sits at the base of the skull.
|
||||
private const float HeadFlameHeight = 0.18f;
|
||||
|
||||
// Torch flames are authored for a fist-sized fire on a stick. This is the two knobs to
|
||||
// turn if the skull ends up wearing a bonfire or a birthday candle.
|
||||
private const float HeadFlameScale = 1.8f;
|
||||
// Torch flames are authored for a fist-sized fire on a stick. 1.8 turned the head into a
|
||||
// white-hot bloom that washed out the whole screen - and, more to the point, hid the skull
|
||||
// underneath it. This is the knob to turn if it still burns too bright or too small.
|
||||
private const float HeadFlameScale = 1.1f;
|
||||
|
||||
// Fire sources in preference order. The torch is an item every world has; the ground
|
||||
// torch and the fire pit are the building pieces to fall back on.
|
||||
|
|
@ -476,8 +477,8 @@ namespace RacesOfValheim
|
|||
// blows out the whole face. Keep the glow, lose the floodlight.
|
||||
foreach (Light light in headFlameVFX.GetComponentsInChildren<Light>(true))
|
||||
{
|
||||
light.range *= 0.5f;
|
||||
light.intensity *= 0.6f;
|
||||
light.range *= 0.35f;
|
||||
light.intensity *= 0.4f;
|
||||
}
|
||||
|
||||
// Anything that made the source a torch rather than a fire.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue