|
-
May 24th, 2007, 09:38 AM
#1
Thread Starter
Junior Member
How to load x-file from byte-array
Sry that it´s me again, but its gonna frustrating.
I thought I could load the mesh from resource, like I did with my texture.
So I loaded the file checked if all is ok then switch to LoadFromResource, but the function I saw is from DX9 not DX8. So I´m wondering if I could load my mesh from a resource.
Till now I got the x-file loaded from resource into a bytearray, but don´t know how to create the meshobject (like Set meshobject = D3DXLoadMeshFromXInMemory). The only way I found that comes a little bit closer to the solution is the function D3DX8.LoadMeshFromXof. Here I can parse the data for myself (never tried, but keep on walking) but it still needs a file.
This is where I am till now, maybe I have something overlooked but at the moment I´m running in circles.
Thanks for viewing.
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
|