jmonkeyengine icon indicating copy to clipboard operation
jmonkeyengine copied to clipboard

Animated models should have proper model bound

Open ghost opened this issue 11 years ago • 8 comments

Reference on googlecode: https://code.google.com/p/jmonkeyengine/issues/detail?id=343

ghost avatar Mar 24 '14 19:03 ghost

This issue has been bugging me for some time. Unfortunately, I don't see any way to address it without recalculating the bound on every frame --- a big hit to performance.

stephengold avatar Dec 15 '18 22:12 stephengold

It doesn't need to be recalculated every frame as the issue mentions... it just needs to be a max extent for all frames (calculated once). However, it might be reasonable compromise to just recommend that users set their own bounding box that is 'big enough'.

pspeed42 avatar Dec 15 '18 22:12 pspeed42

The max extent of all frames is a good solution for keyframe animations using the default animation channel. But that would leave closely-related issues when custom animation channels are used to blend animations together, or when a user transform is applied to a Bone. My usual workaround in these cases is to disable scene-graph culling.

stephengold avatar Dec 16 '18 00:12 stephengold

But you might as well just give it a bounding box of 1,000,000x1,000,000 in that case. Surely there is a compromise on your bounding box.

pspeed42 avatar Dec 16 '18 00:12 pspeed42

I think if this issue is on the old animation system, it should be closed.

pavly-gerges avatar May 29 '23 12:05 pavly-gerges

I'm sure the new animation system has the same issue.

stephengold avatar May 29 '23 22:05 stephengold

Is this only an issue with hardware skinning?

Ali-RS avatar May 30 '23 05:05 Ali-RS

No, it's also an issue with software skinning.

stephengold avatar May 30 '23 06:05 stephengold