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

Problem with D3DX10CreateTextureFromFile

Last post 05-01-2008 4:26 PM by JujiPL. 3 replies.
  • 07-10-2007 5:36 AM

    Problem with D3DX10CreateTextureFromFile

    I noticed, that under DX10 the .tga support via D3DX10CreateTextureFromFile is no longer working. Is that a bug or not? I couldn't find any list of supported formats in the docs...

    Thanks,
    -Steve

  • 07-10-2007 6:52 AM In reply to

    Re: Problem with D3DX10CreateTextureFromFile

    Answer

    Targa is not longer supported: For a list of supported formats search for the D3DX10_IMAGE_FILE_FORMAT enumeration

     

    D3DX10_IFF_BMP = 0,
    D3DX10_IFF_JPG = 1,
    D3DX10_IFF_PNG = 3,
    D3DX10_IFF_DDS = 4,
    D3DX10_IFF_TIFF = 10,
    D3DX10_IFF_GIF = 11,
    D3DX10_IFF_WMP = 12,
  • 07-10-2007 7:13 AM In reply to

    Re: Problem with D3DX10CreateTextureFromFile

    That is most incovenient, but thanks anyway...


    -Steve

  • 05-01-2008 4:26 PM In reply to

    Re: Problem with D3DX10CreateTextureFromFile

    Hello!

    There is one workaround for this problem.
    The TGA format is not supported by DirectX 10.
    It is true, but is available on library GDI+.
    You can load such file by using GDI+, then convert it
    into GIF or other suitable graphics format (making it by GDI+ too).
    The created resource you may save as a new file
    or load it directly into DX via RAM.

    Wlodek K.

Page 1 of 1 (4 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG