io7m / jcalcium

Skeletal animation
ISC License
0 stars 0 forks source link

Reject meshes with vertices whose unaggregated weights sum to more than 4 #19

Open io7m opened 7 years ago

io7m commented 7 years ago

If a given vertex has large weight values for a large number (> 4) of bones, then the jcalcium compiler is going to pick the largest four and ignore the rest, even though by definition the contributions from the other bones are not insignificant. This could be surprising as the mesh deformations produced at run-time by jcalcium are clearly not going to match whatever came out of an authoring program such as Blender.

This sort of thing should be caught as early as possible, and so compilation should fail when this situation is detected.

io7m commented 7 years ago

Blender seems to be doing some sort of normalization internally. Need to find out exactly what!