Reputation: 103
I have a problem with importing fbx models into my monogame project on linux.
If i try to load the fbx file with
model = Content.Load<Model>("cone.fbx");
i am getting the following Error:
Microsoft.Xna.Framework.Content.ContentLoadException: Could not load cone.fbx asset!
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[Model](System.StringassetName, System.Action`1 recordDisposableObject) [0x00000] in <filename unknown>:0
at Microsoft.Xna.Framework.Content.ContentManager.Load[Model] (System.String assetName) [0x00000] in <filename unknown>:0
Ok, now people said that the current version of Monogame is not able to handle fbx files but .xnb ones i could create with XNA 4.0 on my windows operating system. That said and converted the file at windows to xnb (the fbx file "loads" fine on windows, so does the xnb one) -> still doesnt work on Monogame.
Could not find matching content reader of type Microsoft.Xna.Framework.Content.ModelReader, Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553 (Microsoft.Xna.Framework.Content.ModelReader, MonoGame.Framework.Linux, Version=2.5.1.0, Culture=neutral, PublicKeyToken=null)
But I dont know how I can transform my .fbx file to a xnb file which really works (do I need another content reader or something? /how?)
Upvotes: 0
Views: 1033
Reputation: 9944
another way to generate the xnb file using a windows phone 7 project is described in this post http://www.billreiss.com/monogame-for-windows-8-step-2-content/
..that should work
Upvotes: 0