PDA

View Full Version : How to bind pbuffer to depth-texture?



Lorenzot
10-09-2003, 02:21 AM
Hi
i have read the spec of WGL_ARB_render_texture, but i cannot learn more about how to bind pbuffer to depth-texture,anyone has suggestions?
thanks.

CatAtWork
10-09-2003, 04:00 AM
http://oss.sgi.com/projects/ogl-sample/registry/NV/render_depth_texture.txt

Lorenzot
10-09-2003, 09:59 PM
Originally posted by CatAtWork:
http://oss.sgi.com/projects/ogl-sample/registry/NV/render_depth_texture.txt
thanks.
i have tried it, it works well on my GF4 Ti4600,
but it is NV's extension, does ATI cards support this extension

CatAtWork
10-10-2003, 04:34 AM
That's correct. There is no pbuffer format with depth on ATi cards currently.

Obli
10-11-2003, 05:43 AM
If you can use fragment programs, you can trick the card by putting the z in the rgb channels (this is how a depth texture would be looked up in a fragment program).