Sign in to follow this  
Mythar

zBuffer on ATI ?

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this