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

Load model

Last post 10/07/2009 21:29 by TordinBjorn. 8 replies.
  • 18/02/2009 22:07

    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.
  • 19/02/2009 3:13 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
  • 19/02/2009 11:26 In reply to

    Re: Load model

    I can't get it working. Are there other librarys that load a model in DX10?
  • 19/02/2009 17:06 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
  • 19/02/2009 18:50 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.
  • 22/02/2009 23:38 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
  • 03/03/2009 2:27 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
  • 01/07/2009 15:32 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?
  • 10/07/2009 21:29 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