News for hackers. Stuff that matters.
Re:Game Engine: How I Implemented Skeletal Animation by wrnr on Saturday April 03, 2021 @09:17PM (#26686168)
Nice, I was just reading how to solve the same problem using geometric algebra: https://www.jeremyong.com/klein/case_studies/ga_skeletal_ani...
Re:Game Engine: How I Implemented Skeletal Animation by gfxgirl on Sunday April 04, 2021 @03:28AM (#26687569)
unfortunately, IIUC, GA doesn't handle scaling. It's ironic the picture of a T-POSE in that article is a cartoon like character. Cartoon animation is full of "squash and stretch" which means lots of animation of scale.
Re:Game Engine: How I Implemented Skeletal Animation by bsenftner on Sunday April 04, 2021 @07:54AM (#26688730)
Squash and stretch is not implemented with scaling. In fact, for any rational animation system (meaning one that a non-engineer digital artist can actually use) the use of scaling is simply not available in the system. Scaling in a hierarchical animation system is a guaranteed method to fuck up an untold large number of additional systems such as the physics/dynamics associated with the scaled character as well as any geometry attached to the character, as well as any sub-systems which use the now-scaled character for decision triggers. There are simply too many inter-dependent systems that rely on aspects of the environment, such as the scale of objects, to remain consistent for the entire illusion of a consistent world to be maintained.

Speaking from experience: I've written dozens of 3D animation systems for games and film VFX. I've been writing 3D animation systems since the 80's.

Re:Game Engine: How I Implemented Skeletal Animation by gfxgirl on Sunday April 04, 2021 @10:06AM (#26689479)
So have I. I can assure you there is scaling in every game and VFX I've worked on since the late 90s
Re:Game Engine: How I Implemented Skeletal Animation by bsenftner on Sunday April 04, 2021 @05:45PM (#26693108)
You may have scaling in your tools, but under the hood the transformation pipeline treats the result as a translation. Scales cause physics and dynamics issues, which are linked to too many related systems. That's why tools that scale have a "bake" operation afterwards, that baking is transforming scales into translations so runtime and scene logic can use a uniform coordinate space.
Re:Game Engine: How I Implemented Skeletal Animation by gfxgirl on Monday April 05, 2021 @10:46PM (#26707445)
Not my experience. Have shipped several AAA games with scaling, no baking.
Re:Game Engine: How I Implemented Skeletal Animation by AnthonBerg on Sunday April 04, 2021 @06:31AM (#26688275)
I’m still only circling geometric algebra – could you give me some leads on GA not handling scaling? I’ve understood it such that it did, but I’d love to dig into it however it is :) Thanks!
Re:Game Engine: How I Implemented Skeletal Animation by amelius on Sunday April 04, 2021 @08:52AM (#26689045)
You probably want projective geometric algebra.

http://projectivegeometricalgebra.org/

Re:Game Engine: How I Implemented Skeletal Animation by AnthonBerg on Saturday April 10, 2021 @05:39AM (#26760237)
Perfect! Thank you so much!
Re:Game Engine: How I Implemented Skeletal Animation by DonHopkins on Monday April 05, 2021 @05:30AM (#26696949)
You should try triangulating geometric algebra too! ;)
Re:Game Engine: How I Implemented Skeletal Animation by AnthonBerg on Saturday April 10, 2021 @05:35AM (#26760214)
:kiss: MWAH :heart:
Re:Game Engine: How I Implemented Skeletal Animation by lasagnaphil on Sunday April 04, 2021 @07:58AM (#26688755)
Although it says that it's solving the problem using geometric algebra, I really can't see how GA makes the problem easier (in terms of both conceptual simplicity or implementation). You can replace the term 'motor' in the article with 'dual quaternions' and the whole thing doesn't get any more simple or complex.