i need to import model from two separate files.
I have
- dog.mesh
- pet.material
dog.mesh contains vertices (converted to GeometryContent) and string "pet.material" (reference to .material file)
My MeshImporter that handles .mesh files returns NodeContent (one of children should be MaterialEffectContent)
Problem is, that in ContentImporter there is nothing to handle loading of additional assets.
Should pet.material be build by content pipeline in some way? To EffectMaterialContent for example. (Now i build it into MaterialDescription by MaterialImporter - contains string reference to .fx file)
The question is, can you even do things like this in xna? Split something that xna expects to be in one file (MeshContent) into two?