Results 1 to 4 of 4

Thread: DirectX *.X file parser

  1. #1

    DirectX *.X file parser

    Hi everyone

    I'm looking for some tutorials/examples that show me how to parse X files. I already looked for a 'file type specification', but it's HUGE and implementing it will probably be a pain in the ass.

    I allready succeeded in loading X files in my engine, but i want more.
    I want to load the hierarchy into my object engine, and with some luck even add some templates.

    So my questions are:

    >Is there any source/tutorial available wich covers X loading??
    >Where to find a list of the 'default' templates?? (I dont want to reinvent the wheel).

    Thank you.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  2. #2

    DirectX *.X file parser

    so... None of you guys ever parsed an X file?? :?
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  3. #3
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    DirectX *.X file parser

    Hi chronozphere,

    I've not done it, I may be stating the obvious, but DelphiX loads .X files.... is it worth having a look at that (the unit is D3DFile.pas)?
    :: AthenaOfDelphi :: My Blog :: My Software ::

  4. #4

    DirectX *.X file parser

    Default templates can be found, for example, in D3DX9 headers - XEXTENSIONS_TEMPLATES (and others). But I warn you to think twice before tieing yourself to .X file format. Newest SDK from MS switched to more streamlined (and not so generic) ".SDKMesh" format.

    And .X always was more "intermediate" format than production one. It's easy to use it while in development because of it's flexibility, but loading and pasring all this stuff in production code...
    There are only 10 types of people in this world; those who understand binary and those who don't.

Bookmarks

Posting Permissions

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