XNA Creators Club Online
Page 1 of 1 (9 items)
Sort Posts: Previous Next

Importing .psd files

Last post 10/21/2009 10:59 PM by MJP. 8 replies.
  • 11/23/2007 4:06 AM

    Importing .psd files

    hi

    I want to import .psd files in to my directx application, Is there any library through which i can import psd files... Or any other method by which i can import .psd files..............

    cheers
    ppontheweb
  • 11/23/2007 11:50 AM In reply to

    Re: Importing .psd files

    There are some free converters around, I came across one here but I couldn't say if its any good since I haven't tried it. I think the file format is defined in adobes sdk which you can download if you sign up as a developer on their site.
  • 11/26/2007 12:23 AM In reply to

    Re: Importing .psd files

    The converter you told me to see is an exe, and i want the code or technique for my task......

    thanks
  • 11/26/2007 4:37 AM In reply to

    Re: Importing .psd files

    The codeproject seems to have some tuts and sample code that might be worth looking at, ones in c++ and the other c#.

     

  • 11/26/2007 10:24 AM In reply to

    Re: Importing .psd files

    Just a personal question: Why would you want to import .psd files anyways?
    -Insane
  • 11/26/2007 1:29 PM In reply to

    Re: Importing .psd files

    I've wanted to do this myself :-)

    You can then add the original artwork files to the project and let the content pipeline worry about converting them into a hardware friendly format. This saves the artists the effort of having to export to PNG or something everytime they work on a texture.
    Brandon Bloom
    Software Design Engineer
    XNA Platform and Tools
  • 11/29/2007 5:59 AM In reply to

    Re: Importing .psd files

    Thanks for the replies, i think i have found the right parser for my job
    Thanks
  • 10/20/2009 1:32 PM In reply to

    Re: Importing .psd files

    ppontheweb, I'd be very interested in hearing how it went for you. Did you manage to integrate the PSD format into the XNA content pipeline and spritebatch.draw()?
  • 10/21/2009 10:59 PM In reply to
    • (2342)
    • premium membership MVP
    • Posts 1,226

    Re: Importing .psd files

    I made a really simple ContentImporter for .psd when Shawn Hargreaves made a blog post about it.  It's really really basic since all it does is smush all of the layers together using a simple alpha-blend, but if you needed something more fancy it would give you a good starting point.
    Matt Pettineo | DirectX/XNA MVP


    Ride into The Danger Zone | PIX With XNA Tutorial
Page 1 of 1 (9 items) Previous Next