• Advertisement
Sign in to follow this  

[DX9] Loading assets from memory

This topic is 2328 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello good folk

I wish to load assets from a game that I bought years ago. The game uses a costum file format which bundles textures (DDS) and mesh data in to one file.
I managed to extract the DDS and compare the DDS file to the costom file using a hex editor. The DDS image is found inside the asset file with no deviations.

I load the asset file using Overlapped I/O to memory. How do I proceed in allocating (D3DXLoadTextureFromMemory, D3DXLoadMeshFromMemory) these to:
LPD3DXMESH mesh;
D3DMATERIAL9* material;
LPDIRECT3DTEXTURE9* texture;
DWORD numMaterials;

Such that I can draw it?

EDIT: The header of the DDS is different.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement