0
\$\begingroup\$

All the while I can only find how to convert from FBX to XNB but not the other way around. Does anyone know how can I do that?

\$\endgroup\$
1
  • \$\begingroup\$ This is typically a one way operation. \$\endgroup\$ – Vaughan Hilts Apr 22 '14 at 18:11
3
\$\begingroup\$

XNB is a binary container for all your content in programs that use the XNA content pipeline, this includes models, but also textures, fonts, audio, and sprites.

While it is possible to extract information from an XNB file (see for example this plugin for paint.net that extracts the textures in an XNB file: ) I do not know of any programs that extract model information. You will probably have to write your own program to do this.

On another note, why would you want to extract models from an XNB file, did you lose the source models? Or are you trying to extract and use a model that you didn't make yourself? Because that is legally gray/black territory.

\$\endgroup\$
1
\$\begingroup\$

Googling, I found these descriptions of the file formats:

FBX (Filmbox) is a proprietary file format (.fbx) developed by Kaydara and now owned by Autodesk. It is used to provide interoperability between digital content creation applications.

and

...compiled data files (.xnb) produced by the XNA Game Studio 4.0 Content Pipeline build process...

Judging from those short quotes, I'd guess it's a case of data loss in translation. Not all data in FBX ends up in XNB.

EDIT: Microsoft has posted a sample XNB parser (along with the format spec) which could be a starting point for the converter: http://xbox.create.msdn.com/en-US/sample/xnb_format

\$\endgroup\$
3
  • \$\begingroup\$ Correct, it's also some kind of DRM system, as you can't just copy/use art assets the easy way (although there are some converters for some file formats). \$\endgroup\$ – Mario Apr 22 '14 at 8:29
  • \$\begingroup\$ but underlying they are still 3d objects right? just like jpg is a lossy file format, can be converted to and from png. I don't understand why xnb to fbx tools are so hard to find. If they exist, at all. \$\endgroup\$ – Mc Kevin Apr 22 '14 at 9:35
  • \$\begingroup\$ From further googling, apparently the files also contain shaders and stuff. I guess it would be possible to reverse-engineer the format and make such a converter, but its usability would be limited. \$\endgroup\$ – Jari Komppa Apr 22 '14 at 11:56

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.