PDA

View Full Version : Loading and Parsing ".x" files



beezerindb
02-19-2003, 07:09 PM
I was wondering if someone could point me to where i can find information on how to load .x or .3ds files. Thanks !

Allan Walton
02-20-2003, 04:34 AM
aaarrrggghhh.

.X files are direct3D's standard format - i appreciate that they are (IMO) a half decent format and can be quite useful but what's wrong with another?

If you really want to look on the microsoft developer site. (start at www.microsoft.com (http://www.microsoft.com) and search through for direct3d, then X-Files)

Allan

HalcyonBlaze
02-20-2003, 06:18 AM
Hey beererindb,

If you are looking for tutorials on loading .3ds files, check out http://www.gametutorials.com . I think that the model loading tutorials are on page 5 of the OpenGL tutorials. The .x stuff....i have no idea.

- Halcyon

DFrey
02-20-2003, 07:56 AM
Both the Direct3D8 and Direct3D9 SDK's contain detailed information on both the text and binary forms of .x files. You should be able to pull that info straight from MSDN if you don't want to download the SDK's.
http://msdn.microsoft.com/library/en-us/...xfileformat.asp (http://msdn.microsoft.com/library/en-us/directx9_c/directx/graphics/reference/fileformat/xfileformat.asp)


[This message has been edited by DFrey (edited 02-20-2003).]

beezerindb
02-20-2003, 02:11 PM
Thanks all for your input. I was just using the .x format because the file i have is in that format. I'll try converting it to .3ds and loading that, it might be easier.