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

Supported file format(s)

Last post 11/12/2009 10:14 PM by Jonathan Archer. 5 replies.
  • 10/26/2009 10:58 AM

    Supported file format(s)

    Hi there!

    Is it correct, that .x is the only out-of-the-box file format that is supported by D3D9? I also have seen the obj example in the samples. But are there other formats directly supported?

    And what about D3D10?

    Thanks a lot in advance!
  • 10/28/2009 11:09 AM In reply to

    Re: Supported file format(s)

    Answer
    Reply Quote
    Hi,
    Yes .x is the only out-of-the-box file format for 3D Models in D3D9.
    And afaik D3D10 doesn't support any 3D file format, so you have to write it
    on your own, or use the D3D9 importer.
  • 10/29/2009 9:41 AM In reply to

    Re: Supported file format(s)

    Answer
    Reply Quote
    yes ,if you want to use other format ,you must write by yourself
  • 10/29/2009 11:41 PM In reply to

    Re: Supported file format(s)

    Answer
    Reply Quote
    the nv sdk contains nvut, which contains support for using .x files in D3D10.

    it works, I have used it.

    its slightly ugly, though, in that it creates both devices, locks the D3D9 vertex and index buffers, and copies them into D3D10 equivalents.
    http://www.futuregpu.net ex-Aces Lead PM/ex DX SDK PM/ex D3D Evangelist now LRB Launch Native Title Wrangler
  • 11/4/2009 10:40 PM In reply to

    Re: Supported file format(s)

    Ok, thanks a lot guys for your help!

    Is there a special reason why D3D10 does not support .x (or any other file format) out of the box? This seems very strange to me at the moment. That makes things in the workflow more complicated in my opinion. E.g. what is the fav export format now for my 3D artist?
  • 11/12/2009 10:14 PM In reply to

    Re: Supported file format(s)

    Answer
    Reply Quote
    I found sth interesting concerning DX10 and .x. In the D3D10 samples of the April 2007 SDK under p.c (SDK root)\Samples\C++\Direct3D10\Tutorials\Tutorial09 you can find this statement:

    "DXUT handles meshes through the CDXUTMesh10 class, which is a wrapper for the D3DX Mesh class. This class provides function to import, render, and destroy, amongst other things. The file format we will use for importing is the .X file. There are many freely available converters that will convert other model formats to the .X format. The DirectX SDK includes .X format exporters for 3D Studio Max and Maya."

    So, when using the DXUT functions it should be relatively easy and streamlined to load .x files with DX10!
Page 1 of 1 (6 items) Previous Next