zBuffer on ATI ?

Started by
2 comments, last by ET3D 17 years, 7 months ago
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 ?
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.
Sirob Yes.» - status: Work-O-Rama.
Thx for the quick reply.
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.

This topic is closed to new replies.

Advertisement