Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Custom pipeline processor error

$
0
0

@YTN wrote:

I have a custom pipeline processor for processing a model and adding a custom tag that sets a bounding box etc.

I recently tried adding a couple more features to my tag and ran into an issue.

The problem is when I try to read / reference the textures of the model:

The exact error I get is:

<blah>/Content/models/dude/dude.fbx : error : Importer 'TextureImporter' had unexpected failure!
Microsoft.Xna.Framework.Content.ContentLoadException: TextureImporter failed to load  <blah>/Content/bin/DesktopGL/models/head_0.xnb

The xnb file seems to be in the correct location, so that's not the problem. Also, I am using the model that comes with the skinning / animation sample from MS (the dude.fbx model). All the textures for that model are TGA files (if that matters).

The exact code I am using to try and reference the texture in my processor is:

Texture2D myTexture = context.BuildAndLoadAsset<TextureContent, Texture2D>(((BasicMaterialContent)meshPart.Material).Texture, "TextureProcessor", null, "TextureImporter");

I am not sure if the issue is the TGA texture file, or the way I am trying to reference it.

FYI meshPart.Material.Texture is of type ExternalReference<TextureContent>.

I am also currently running the 3.6 dev version of Monogame from the build server. It's not the most current version, but it's only a couple weeks old at the most.

Any ideas on how I can get past this problem? This has really gotten me stuck....

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles