• Advertisement
Sign in to follow this  

Load .dds cubemap

This topic is 3631 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

I have a cubemap stored in a dds file. Is there any standard functions for loading such a file into a cubetexture?

Share this post


Link to post
Share on other sites
Advertisement
1. D3DXCreateCubeTextureFromFile() and related functions.

2. If the texture is already created and you really don't want D3DX creating it for you then you could load into a temporary cube texture (probably in the SYSTEM pool) and then copy each face into the destination using IDirect3DCubeTexture9::GetCubeMapSurface() and IDirect3DDevice9::StretchRect()

Share this post


Link to post
Share on other sites
Thanks, D3DXCreateCubeTextureFromFile works great. Can't believe I used to prefer OpenGL :-)

Share this post


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

  • Advertisement