Photoshop texture importer?

Michael Klucher writes about a Paint.NET plugin for loading and saving Photoshop files. And this plugin includes C# source for parsing the .psd format. Hmm. I wonder how hard it would be to turn this into an XNA Framework texture importer, so you could add multi-layer .psd files directly to Visual Studio without having to flatten and export to some other format first?

Just throwing this out there on the off chance some enterprising reader might find the idea as interesting as I do 🙂

Comments (3)

  1. craaash says:

    You could also use DevIL.NET to write a custom texture importer as shown at

    DevIL supports .psd as well as various other formats 🙂

  2. Anonymous says:

    You should also add a .pdn one and a .xcf(gimp) and any other image editing format if you do that.

  3. I managed to whip up an importer in about an hour or so…pretty easy to do if you don’t want to support all of the crazy layer blending modes and whatnot.  

    You could probably also do some other neat stuff like extracting specific layers or tiling the layers, but I think I’ll leave that to someone who might have a use for a thing. 😀

    Code’s here, if anyone’s interested:

Skip to main content