armory3d / armory

3D Engine with Blender Integration
https://armory3d.org
zlib License
3.03k stars 315 forks source link

Simple cylinder with 2 bones deforms differently in Armory than Blender #1180

Open Bugsbane opened 5 years ago

Bugsbane commented 5 years ago

Take a look at how the cylinder (left) bends in Blender, maintaining it's length and width: screenshot_20190219_005041

Then look at how the same cylinder in the same file bends in Armory: screenshot_20190219_005327

This is using: Kubuntu 18.10 64 bit Armory 0.6 beta and git versions ( a6c954cda7ca429e3887069100e11ba5441b88c9 ) Blender 2.8 beta Both krom and browser target (FF and Chromium)

Original test file: wiggle-cylinder.3.zip (trigger bend animation with space bar)

Bugsbane commented 4 years ago

Is there any further info I can supply that would help? This issue still persists in a just updated git version today ( Armory v2019.7 - 817bd37d712a58bf387b7808cccc5ae19cf6f534 )

knowledgenude commented 3 years ago

I don't know why the deformation is happening in your case, but Armory does not export the current object pose from Blender. You need to create a single frame and stash it into the armature and play it on init:

example.zip

I can see cases when this would be useful and some of them can be reached by applying the armature modifier in the object (this way it will keep in the pose forever like it was modeled in this way), but anyway this is a destructive method.