• Advertisement
Sign in to follow this  

more than 8 bits in color buffer?

This topic is 2922 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 am working on a post process effect which requires rendering the coordinates of each pixel into color buffer. but I forgot about limitation of the back buffer, which uses 8 bit for storing each color :/ and even if I conver my coordinates between 0.0 and 1.0 in the end they are converted to 8bit and it looks very bad probably it is impossible but is there a way for creating a color buffer with 32bit floats (or 16 bit) for each color?

Share this post


Link to post
Share on other sites
Advertisement
Yes there is. While you can't create such a backbuffer (on commodity hardware), you can create a render target surface which has floating-point color components.

Share this post


Link to post
Share on other sites
Thank you! I am using D3DFMT_A16B16G16R16F and it looks great.

altough reduced my frame rate a little :D

Share this post


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

  • Advertisement