Jump to content
  • Advertisement
Sign in to follow this  
ryan20fun

can somebody clarify this

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

Hi Everbody.

can somebody explain this, im not too fimilier with the different d3d formats.

i was browsing some documentation about finding a suitable d3d format and is saw this


Full-screen applications should not specify a DisplayFormat that contains an alpha channel. This will result in a failed call. Note that an alpha channel can be present in the back buffer but the two display formats must be identical in all other respects. For example, if DisplayFormat = D3DFMT_X1R5G5B5, valid values for BackBufferFormat include D3DFMT_X1R5G5B5 and D3DFMT_A1R5G5B5 but exclude D3DFMT_R5G6B5
[/quote]
from here
IDirect3D9::CheckDeviceType Method (Windows)

now why is this ?
is alpha not apllicable to fullscreen ?

Thanks In Advance.

Share this post


Link to post
Share on other sites
Advertisement
Who knows why that is there. It is perfectly valid to specific an alpha channel in the back buffer. I would ignore this, and move on because it doesn't make any sense.

Share this post


Link to post
Share on other sites

Who knows why that is there. It is perfectly valid to specific an alpha channel in the back buffer. I would ignore this, and move on because it doesn't make any sense.


This guy sort of right. But the real answer is that technically there is no such thing as alpha on the back buffer since that wouldn't have any effect when getting copied to your monitor. (What would the back buffer get blended with? Your monitor is suddenly going to turn partially transparent in real life!) Alpha channels only have meaning if they are somehow getting blended with something. In my experience, though, most video cards could care less if your back buffer format is specified as having an alpha channel. The final value of the alpha channel in the back buffer will either never be written, or will be ignored. I would stick with the documentation, though, and use D3DFMT_X8R8G8B8, just to be safe.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!