Skip to content
Snippets Groups Projects
user avatar
Campbell Barton authored
from Doug:

Most applications aren't very strict with the bind pose because they support different bind poses for different meshes.  Ogre requires a single bind pose for all meshes, which makes things a lot more difficult. 

The changes are where the BindPose is defined (which is pretty much ignored by most applications, but you seemed to have added it for XNA), and the skin deformer.  In both cases, global transforms for bones were not correctly being exported.  I set global transforms for the bones equal to (my_bone.fbxArm.matrixWorld * my_bone.restMatrix) * mtx4_z90.  That  appears to do the trick for me, though I can't say I fully understand how the terms are derived.

I've tested kngcalvn_fbx_test_new.fbx and our sample file in Maya & our FBX importer, and both work with the changes.
f9e21740
History
Name Last commit Last update
add_curve_sapling
add_mesh_BoltFactory
add_mesh_extra_objects
io_anim_acclaim
io_anim_bvh
io_anim_c3d
io_anim_nuke_chan
io_coat3D
io_convert_image_to_mesh_img
io_curve_svg
io_mesh_pdb
io_mesh_ply
io_mesh_raw
io_mesh_stl
io_mesh_uv_layout
io_scene_3ds
io_scene_fbx
io_scene_m3
io_scene_map
io_scene_obj
io_scene_x3d
io_shape_mdd
light_field_tools
mesh_inset
mocap
modules
netrender
object_fracture
render_copy_settings
render_povray
rigify
space_view3d_math_vis
system_demo_mode
add_curve_aceous_galore.py
add_curve_ivygen.py
add_curve_torus_knots.py
add_mesh_ant_landscape.py
add_mesh_pipe_joint.py
add_mesh_solid.py
animation_add_corrective_shape_key.py
animation_animall.py
animation_rotobezier.py
curve_simplify.py
development_api_navigator.py
development_icon_get.py
game_engine_save_as_runtime.py
io_anim_camera.py
io_export_after_effects.py
io_export_directx_x.py
io_export_pc2.py
io_export_unreal_psk_psa.py
io_import_gimp_image_to_scene.py
io_import_images_as_planes.py
io_import_scene_dxf.py
io_import_scene_lwo.py
io_import_scene_mhx.py
io_import_scene_unreal_psk.py
mesh_bsurfaces.py
mesh_looptools.py
mesh_relax.py
object_add_chain.py
object_animrenderbake.py
object_cloud_gen.py
object_grease_scatter.py
paint_palette.py
render_renderfarmfi.py
space_view3d_3d_navigation.py
space_view3d_copy_attributes.py
space_view3d_materials_utils.py
space_view3d_panel_measure.py
space_view3d_screencast_keys.py
space_view3d_spacebar_menu.py
system_blend_info.py
system_property_chart.py
texture_paint_layer_manager.py