zBuffer on ATI ?
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 ?
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.
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.
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
Popular Topics
Advertisement