Jump to content
  • Advertisement


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


Converting D3DFMT_A8R8G8B8 rendertarget to D3DFMT_L8

This topic is 5298 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''m moving from OpenGL to DirectX, so bear with me! I''m creating lightmaps for my large world on the fly by rendering to a texture. After much time spent figuring out that D3DFMT_L8 isn''t supported as a render target format, I''ve decided that I need to copy one the R, G, or B planes from the texture into a new D3DFMT_L8 and use it as the lightmap. Does this make sense? Surely dynamic luminance-only lightmaps have come up before, but I couldn''t find any posts on it. Copying seems like a waste of cycles, but I''d really like to reduce the amount of video memory I''m using for lightmaps. Thanks!

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!