I'm having a bit of an issue trying to implement a custom processor into my XNA project. I've read up on MSDN about writing my own custom importer and processor but I'm not using the existing pipeline.
I'm using the custom pipeline created in the tutorial on ziggyware...
http://www.ziggyware.com/readarticle.php?article_id=69
and I adding an assembly reference for the HeightMapPipeline which is taken from the TankOnAHeightMapPipeline tutorial sample from this site.
| static string[ pipelineAssemblies = |
| { |
| "Microsoft.Xna.Framework.Content.Pipeline.FBXImporter" + xnaVersion, |
| "Microsoft.Xna.Framework.Content.Pipeline.XImporter" + xnaVersion, |
| "Microsoft.Xna.Framework.Content.Pipeline.TextureImporter" + xnaVersion, |
| "Microsoft.Xna.Framework.Content.Pipeline.EffectImporter" + xnaVersion, |
| "HeightMapPipeline" |
| }; |
but when I go build the height map and use the custom terrain processor it doesn't recognize the processor from the HeightMapPipeline ( which is called "TerrainProcessor").
| public void Add(string filename, string name, string importer, string processor) |
| { |
| BuildItem buildItem = msBuildProject.AddNewItem("Compile", filename); |
| |
| buildItem.SetMetadata("Link", Path.GetFileName(filename)); |
| buildItem.SetMetadata("Name", name); |
| |
| if (!string.IsNullOrEmpty(importer)) |
| buildItem.SetMetadata("Importer", importer); |
| |
| if (!string.IsNullOrEmpty(processor)) |
| buildItem.SetMetadata("Processor", processor); |
| } |
At the moment it works with the standard content pipeline but not with the custom pipeline that I'm trying to implement (as shown above).
If anyone has any experience with implementing a custom pipeline using an external folder than any help you could give us would be hugely appreciated. If you need any more information or anything written above is too convoluted, let me know.