xavier150 / Blender-For-UnrealEngine-Addons

I have created this addons for export asset from Blender to Unreal Engine 4
https://www.xavierloux.com/
GNU General Public License v3.0
2k stars 247 forks source link

wrong transform with MMD camera. #161

Closed iJzFan closed 1 year ago

iJzFan commented 2 years ago

Hi, I am trying use this addons to convert MMD Camera to UE. Some of the frames will have wrong transform.

image P1 was the frames 586 location & rotation showed in blender.

image P2 was the frames 586 location & rotation imported by Copy import script(Sequencer) which was wrong.

image P3 was the frames 586 location & rotation copy by Copy Cine Cameras for Unreal which was right.

I also attached the blender files as below. wrong_camera_after_frame_586.zip

xavier150 commented 1 year ago

Hello @iJzFan Thanks for the report! This is because your camera do extreme rotation movement in one frame. By addon try to fix axis flippings but extrem rotation movement in one frame will break it. I added an option for disable it and so it Fix the Issue. image You can try the last dev branch here: https://github.com/xavier150/Blender-For-UnrealEngine-Addons#download-and-installation-from-dev-branch

But the best is would be to have multiple camera in your Blender scene and use Markers to camera switch https://docs.blender.org/manual/en/dev/animation/markers.html#bind-camera-to-marker and so avoid extreme movement in one frame

xavier150 commented 1 year ago

If all good I will close this issue after 0.4.0 update release.

iJzFan commented 1 year ago

Yes, it fixed my issue. Thanks!