X-Plane / XPlane2Blender

Scenery & Aircraft export addon for Blender and X-Plane
GNU General Public License v3.0
197 stars 67 forks source link

Apply rotation/scale before export #57

Closed der-On closed 12 years ago

der-On commented 13 years ago

Currently one has to be very careful about rotations and scale of objects when it comes to nested animations. Try to find a way of applying or correctly calculating those during export.

ksgy commented 13 years ago

Hi

Tested this, and seem it's still wrong something with this feature, here is a shot about: http://x-plane.hu/temp/rotation.png

Blender file: http://x-plane.hu/temp/Stabilizers-b25.blend Obj file: http://x-plane.hu/temp/Stabilizers.obj

Or am I doing something wrong in blender?

der-On commented 13 years ago

Thank you for testing. I will have a look into that asap. This feature is a bit complex and will probably have some cases in which its still buggy.

der-On commented 13 years ago

Fixed. Closing again. If another bug occurs I will reopen.

ksgy commented 13 years ago

Found another bug on this issue: eg.: Make a cube, apply random location, rotation, scale, then add some keyframes with different loc/rot/scale. The script will apply the loc/rot/scale, but only on first keyframe, so the final result will be bad, if the cube has a default loc/rot/scale, BEFORE the animation added, for example

rot on 1st keyframe: 30 deg rot on 2nd keyframe: 60 deg rot on 3rd keyframe: -30 deg

the script will result:

rot on 1st keyframe: 0 deg rot on 2nd keyframe: 60 deg rot on 3rd keyframe: -30 deg

so the animation will be result as completly different animation what user wants. Don't know exactly what happens in script, but maybe it would be a solution to watch the change matrix on loc/rot/scale on each keyframes comparing to each other, if that possible.

Thanks :)

der-On commented 13 years ago

I don't think scaling is working correctly. Needs to be checked for instanced mesh data.

der-On commented 13 years ago

ksgy: Please send me the testing file, as I don't understand the problem completly.

der-On commented 12 years ago

Scaling seems to work well now. Rotations too. Closing once again.