11
\$\begingroup\$

Whats the best way to export from Blender 2.59 for XNA 4? I have heard you can use the DirectX to export to .x instead of .fbx which works better with animations?

Unfortunately all the tutorials out there are a bit dated and go on about the quirks with older versions..

\$\endgroup\$
  • \$\begingroup\$ it would be amazing can answer! Bcoz am good Blender, and I want to switch to XNA world! \$\endgroup\$ – 0bserver07 Sep 27 '11 at 18:41
  • 1
    \$\begingroup\$ Yeah that's the problem with the www and badly managed documentation for long-running apps such as Blender. There are a million sources, of which 99.9% are old, so it's ludicrously hard to find the most current stuff. \$\endgroup\$ – Engineer Oct 3 '11 at 9:02
  • \$\begingroup\$ I assumed you tried this? wiki.blender.org/index.php/Extensions:2.4/Py/Scripts/Export/… \$\endgroup\$ – Jonathan Dickinson Oct 5 '11 at 15:55
  • \$\begingroup\$ Are you looking to use .x instead of .fbx, or are you fine with either? \$\endgroup\$ – ChrisC Oct 5 '11 at 22:48
  • \$\begingroup\$ im fine with either \$\endgroup\$ – markmnl Oct 6 '11 at 6:20
4
+100
\$\begingroup\$

Since you're open to using .fbx, you may want to check out this sorta recent article on MSDN to skin your model, add bones to it, and export the animations to XNA 4. It actually summarizes this Codeproject article but it's still up-to-date with the newer Blender 2.5 interface. However there's a gotcha because of a difference of exporting in 2.59 as shown from a comment in the CodeProject article -

The latest Blenders FBX export does not have the "XNA Export", as this is newly included in 2.59 (Simply export to FBX, and click "XNA Strict" in the list on the left when choosing file-name)

In other words, you want to use the XNA Strict Options setting on the options list.

\$\endgroup\$
2
\$\begingroup\$

I just found a way to export .x files in Blender 2.59 (It doesn't seem to show up):

Open the python console by right clicking on the bottom border of the 3D view and selecting split areas. Set the new area to the python console in the tool bar at the bottom.

Type

import io_export_directx_x

then

io_export_directx_x.register()

and then the option seems to appear in the export menu under file. I don't know if it works though (you can export the file but I don't know if its actually a valid x file), there's probably a reason why you have to manually load it.

Hope it helps!

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.