Jump to content
  • Advertisement
Sign in to follow this  
zurekx

Load .dds cubemap

This topic is 3809 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
×

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!