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.
Printable View
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.
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.
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.
Here we go I think I got it, I found this in a tutorial, just:
Thanx for the help anyway tho.Code:Dim D3DX As D3DX8
Set Mesh = D3DX.LoadMeshFromX(App.Path & "\Filename.x", D3DXMESH_MANAGED, D3DDevice, Nothing, mtrlBuffer, nMaterials)
that's the same code I use ... but my files are plain text :) ... well resolved is resolved so good luck