PDA

View Full Version : z values in color buffer / texture



DerSchelm
08-11-2002, 01:03 AM
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

Liquid
08-11-2002, 08:31 AM
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().