|
-
Jan 26th, 2003, 08:40 AM
#1
Thread Starter
Ex-Super Mod'rater
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.

-
Jan 26th, 2003, 09:00 AM
#2
Hyperactive Member
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
-
Jan 26th, 2003, 09:06 AM
#3
Thread Starter
Ex-Super Mod'rater
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.

-
Jan 26th, 2003, 09:10 AM
#4
Thread Starter
Ex-Super Mod'rater
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.

-
Jan 26th, 2003, 10:19 AM
#5
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|