Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


DirectX textures

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

Here''s an easy one. How do I create a texture in DX8 without using D3DXCreateTextureFromFile or something like that? I want to load quake 3 lightmaps that are saved as byte[128][128][3]. Thanks... (Sometimes I miss OpenGL where I actually knew how to do this stuff... )

Share this post

Link to post
Share on other sites
Well, I can''t help you on the technicals, but I might suggest locking the surface (I hope you can do this in DX8), getting the surface''s bitmap array, and just use a few FOR-loops to transfer the data.

BTW, if you''re gonna do this, you can''t use any fancy texture formats.

Hope this helps!

Share this post

Link to post
Share on other sites

  • 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!