won't load 'non-content' FBX in monogame 3.4.0.455 on linux

Just went through other post topics but don’t see the same error.

I started a project and wanted load a FBX model:

Content.Load<Model>("mesh");

And it gives me the: Could not load mesh asset as non-content file.

I assumed I made a mistake, with either Pipeline, the properties or so. But when I try to load a Texture2D with the exact same settings it doesn’t throw an error.

Anyone care to help?

(What I tried:

  1. Add existing item in project, compile as content and copy if newer
  2. Add to pipeline MGCB file with the pipeline tool.
  3. Add the resulting XNB file to the project.
  4. Add a content project with the file.
    ).

Fritz

Double check that case of the file (ie, is it called “Mesh” on disk?).

It should be an XNB compiled using MonoGame Pipeline.

Thanks for getting back to me, but yes I checked (double, triple checked) the filename. It’s not an upper-case file.

Fritz

I had issues like that untill this:

If you exported your model with bender, you have to select “export using 6.something”, default is 7.something…
Otherwise it wont work for some reason…

Also you have to set the solution configuration for windows 8, in VS2010… -At least thats my only option for it to work.

Incase you havent done so, just add the exported model to your content-projects content folder, and dont change its properties at all… Then link to it in your game-projects References…

Remarkable. So if I would start a Windows machine and compile the fxb with the pipeline tool I can commit it and try if it works on my Linux machine?

From where did you get MonoGame Pipeline? The bug I found only occurs in development version of MonoGame, not 3.4.

Anyway if you have 3.4 installed here is what you do:

Hi cra0zy,

Thanks for the video and response. I have Pipeline 3.4.0.456 which I downloaded and built with the generate_deb.sh from here: http://www.monogame.net/2015/04/29/monogame-3-4/

EDIT:
The monogame I see now is another version: 3.4.0.459. Changed this to the DLL that came out of the zip I downloaded.
Working now… Thanks!

Fritz

[quote=“fritzvd, post:8, topic:2455”]
The monogame I see now is another version: 3.4.0.459. Changed this to the DLL that came out of the zip I downloaded.
[/quote]That is really odd because there are no code differences between those two. 459 was a rebuild of 456 to submit to Nuget.

Strange. I’m checking it now again. And actually the square that I made with blender is working fine. But FBX’s that I got from somewhere else are not. Some problem with the TGA path being hardcoded in the file. After fixing that, the tga wouldn’t process through texture processor.

I gave up and downloaded another here: http://tf3dm.com/