Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#24882] fbx exporter Krash, screw objects and animations

Date:
2010-11-24 10:23
Priority:
3
State:
Closed
Submitted by:
Jean-Christophe Romain (alewinn)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Import/Export
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
fbx exporter Krash, screw objects and animations
Detailed description
The python fbx/collada exporter don't seems to work correctly.

using the following sequence with the attached files show the problem :

[CODE]
outfile = "test.fbx"

import math
from mathutils import Matrix
# -90 degrees
mtx4_x90n = Matrix.Rotation(-math.pi / 2.0, 4, 'X')

io_scene_fbx.export_fbx.save( None,bpy.context, filepath=outfile,
GLOBAL_MATRIX=mtx4_x90n,
EXP_OBS_SELECTED=False,
EXP_MESH=True,
EXP_MESH_APPLY_MOD=True,
EXP_ARMATURE=True,
EXP_LAMP=False,
EXP_CAMERA=False,
EXP_EMPTY=True,
EXP_IMAGE_COPY=False,
ANIM_ENABLE=True,
ANIM_OPTIMIZE=False,
ANIM_OPTIMIZE_PRECISSION=6,
ANIM_ACTION_ALL=True,
BATCH_ENABLE=False,
BATCH_GROUP=True,
BATCH_FILE_PREFIX='',
BATCH_OWN_DIR=False)
[/CODE]

see
http://blenderartists.org/forum/showthread.php?t=202531
and
http://forum.unity3d.com/threads/61889-Blender-2.54-soon/page2?highlight=blender+2.54
for more informations about my tests protocols (using windows command lines).

About the attached files : i tryed to isolate the problem, and it seems to occur when the blend file contains animation clips (but it's not 100% - average probability is more about 70%).
gourls.blend => create a fbx file truncated (exporter krashes inside ntpath.py)
pillard2_demo.blend => create a complete fbx file but the rendered object is broken
Marchande_02.blend => Krashes Blender during export. Generated fbx is truncated
Bridge_1.blend => A static object (no animation). Exporter krashes, fbx truncated.

Followup

Message
  • Date: 2010-11-24 17:03
  • Sender: Campbell Barton
  • fixed remaining issue r33288.

    So there were a few bugs here.
    - Loading a new scene in background mode could use a freed window manager (crashing).
    - Loading 2.4x files in background mode didn't load a window manager and crashed blender.
    - getting the relative path from C:\, D:\ or similar would raise an exception.

    Also edited the script for testing, (below).

    If there are specific problems with 2.4x animations not loading correctly into 2.5x or one of your test files not working as expected, please report this separately.

    closing.

    # --- snip
    import bpy
    outfile = bpy.data.filepath.replace(".blend", ".fbx")

    import math
    from mathutils import Matrix
    # -90 degrees
    mtx4_x90n = Matrix.Rotation(-math.pi / 2.0, 4, 'X')

    # import io_scene_fbx
    import io_scene_fbx
    import io_scene_fbx.export_fbx

    class FakeOp:
    def report(self, tp, msg):
    print("%s: %s" % (tp, msg))

    io_scene_fbx.export_fbx.save(FakeOp(), bpy.context, filepath=outfile,
    GLOBAL_MATRIX=mtx4_x90n,
    EXP_OBS_SELECTED=False,
    EXP_MESH=True,
    EXP_MESH_APPLY_MOD=True,
    EXP_ARMATURE=True,
    EXP_LAMP=False,
    EXP_CAMERA=False,
    EXP_EMPTY=True,
    EXP_IMAGE_COPY=False,
    ANIM_ENABLE=True,
    ANIM_OPTIMIZE=False,
    ANIM_OPTIMIZE_PRECISSION=6,
    ANIM_ACTION_ALL=True,
    BATCH_ENABLE=False,
    BATCH_GROUP=True,
    BATCH_FILE_PREFIX='',
    BATCH_OWN_DIR=False)
    # --- snip
 

Attached Files:

Name Date Download
gourls.blend 2010-11-24 10:23 Download
pillard2_demo.blend 2010-11-24 10:23 Download
Marchande_02.blend 2010-11-24 10:23 Download
Bridge_1.blend 2010-11-24 10:23 Download

Changes:

Field Old Value Date By
ResolutionInvestigate2010-11-24 17:03campbellbarton
close_date2010-11-24 17:032010-11-24 17:03campbellbarton
status_idOpen2010-11-24 17:03campbellbarton
ResolutionNone2010-11-24 11:26ton
assigned_tonone2010-11-24 11:26ton
File Added13765: Bridge_1.blend2010-11-24 10:23alewinn
File Added13764: Marchande_02.blend2010-11-24 10:23alewinn
File Added13763: pillard2_demo.blend2010-11-24 10:23alewinn
File Added13762: gourls.blend2010-11-24 10:23alewinn