Jump to content
  • Advertisement
Sign in to follow this  
Mythar

zBuffer on ATI ?

This topic is 4375 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 all, having trouble creating a z buffer texture on my ATI 9800 pro card. pD3DDev->CreateTexture(texWidth, texHeight, 1, D3DUSAGE_DEPTHSTENCIL, D3DFMT_D24S8, D3DPOOL_DEFAULT, &pTex); Is this not supported on ATI cards ?

Share this post


Link to post
Share on other sites
Advertisement
Creating a D3DFMT_DS texture is not supported on ATI cards, nor is sampling from one directly.

ATI uses a different format (FOURCC, IIRC) for depth lookups. Of course, NVidia doesn't support those formats. Also, note the ATI depth lookup result is different from the NVidia one.

Unfortunatly, this is where hardware specific hacks start popping up. Looks like D3D10 will clear this up for a while, but it still can't fix the past.

Hope this helps.

Share this post


Link to post
Share on other sites
Quote:
Original post by sirob
ATI uses a different format (FOURCC, IIRC) for depth lookups. Of course, NVidia doesn't support those formats. Also, note the ATI depth lookup result is different from the NVidia one.

ATI will return the actual depth value, while NVIDIA won't.

Mythar, it's a good idea to check for the availability of required texture formats before using them. That'd catch such problems.

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!