Results 1 to 5 of 5

Thread: How do I load a X File [Resolved]

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Resolved How do I load a X File [Resolved]

    I'm using DirectX 8 and I was wanting to load a X File I have, the only thing is its not a text X file. If I open it in Notepad its mostly symbols. Is there a procedure in DirectX for loading these X Files?

    Thanx for any help.
    Last edited by Electroman; Sep 20th, 2004 at 09:12 AM.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    oi, I'm a bit new here ... but as far as I know a .x file is always plain text and coordinates when you open it :-S.
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  3. #3

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Well the one I've got is 469KB and it opens in the "Mesh Viewer" that comes with the DirectX SDK but when I open it in notepad its far from plain text.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  4. #4

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Here we go I think I got it, I found this in a tutorial, just:
    Code:
    Dim D3DX As D3DX8
    Set Mesh = D3DX.LoadMeshFromX(App.Path & "\Filename.x", D3DXMESH_MANAGED, D3DDevice, Nothing, mtrlBuffer, nMaterials)
    Thanx for the help anyway tho.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  5. #5
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502

    Thumbs up

    that's the same code I use ... but my files are plain text ... well resolved is resolved so good luck
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width