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

Load model

Last post 7/10/2009 9:29 PM by TordinBjorn. 8 replies.
  • 2/18/2009 10:07 PM

    Load model

    Hi

    I like to load a x-file but it seems that the function LoadMeshfromX no more exists. I looked in the docs and searched on the internet but didn't find the answer.

    How can I load an X-file without using DXUT.
  • 2/19/2009 3:13 AM In reply to

    Re: Load model

    the nv SDK has code to load an .x file in D3D10 and I use it on one of my Maze articles on http://www.futuregpu.org/
    http://www.futuregpu.net ex-Aces Lead PM/ex DX SDK PM/ex D3D Evangelist now LRB Launch Native Title Wrangler
  • 2/19/2009 11:26 AM In reply to

    Re: Load model

    I can't get it working. Are there other librarys that load a model in DX10?
  • 2/19/2009 5:06 PM In reply to

    Re: Load model

    what cant you get to work?

    this sample
    http://www.futuregpu.org/2009/01/maze-sample-article-4-d3d10maze-maze.html

    loads the cell.x model from the DX SDK in D3D10.
    http://www.futuregpu.net ex-Aces Lead PM/ex DX SDK PM/ex D3D Evangelist now LRB Launch Native Title Wrangler
  • 2/19/2009 6:50 PM In reply to

    Re: Load model

    I get errors when rendering the mesh. But thanks for the help.

    I'm trying now to use FCollada to import dae files.
  • 2/22/2009 11:38 PM In reply to

    Re: Load model

    Let take the simplest case, the static model

    first, in DXUT, you can create Direct3D9NullRef device by one of their functions,
    which you can save the return device for using with any of D3DX9 function such as LoadfromX() and etc.

    then, you need to copy the data from ID3DXMesh into your ID3DX10Mesh

    finally, render your ID3DX10Mesh to your screen. 


    Please MS, please include an simple and stable animated meshes loader into DirectX10

    NVPerfHUD has a problem with ID3DEffectPool?
    http://developer.nvidia.com/forums/index.php?showtopic=2784
  • 3/3/2009 2:27 AM In reply to

    Re: Load model

    yes, and that is essentially what the NVSDK code I referenced does.

    given my sample loads an existing DXSDK .x file in D3D10 using this code ( cell.x ), I think the problem lies elsewhere.
    http://www.futuregpu.net ex-Aces Lead PM/ex DX SDK PM/ex D3D Evangelist now LRB Launch Native Title Wrangler
  • 7/1/2009 3:32 PM In reply to

    Re: Load model

    I'd just like to say that while I like most stuff in D3D, it's complete balls that MS did not include functionality to load an x file in 10. I mean seriously, WTH?
  • 7/10/2009 9:29 PM In reply to

    Re: Load model

    if you ask realy nice i can let you test my .obj loader class for c++/dx10. wich works realy realy well.
    if you are intressted drop me a mail at Kartflygaren675@hotmail.com
    Whow, thats a big memory leak...
    It sure is! and we are sinking!

    kartflygaren675@hotmail.com
Page 1 of 1 (9 items) Previous Next