z values in color buffer / texture

Hi there,

is there a possibility of copying z values to the color buffer or into a texture on ATI cards like NV_copy_depth_to_color on NVs cards ?

Thanks in advance

Schelm

One way would be to use glReadPixels() and glTexSubImage2D()
but this is very slow and is not what you have asked for, but it’s one possibility.
If your ATI card does support ARB_depth_texture (is there one?) then you can use glCopyTexSubImage2D().