Jump to content
  • Advertisement
Sign in to follow this  
Tispe

[DX9] Loading assets from memory

This topic is 2541 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
Basically what I need to know is how to load costum file formats into a mesh objects.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!