Horde3D
http://horde3d.org/forums/

Binding Depth textures
http://horde3d.org/forums/viewtopic.php?f=2&t=211
Page 1 of 1

Author:  swiftcoder [ 05.01.2008, 22:45 ]
Post subject:  Binding Depth textures

Pardon me if this is an idiotic question, but I can't seem to find a way to bind the depth component of a render target to a texture unit in the pipeline config.

I am working up an example of screen space ambient occlusion, but I need access to the depth buffer in the shader...

Author:  marciano [ 05.01.2008, 23:00 ]
Post subject: 

Depth attachments have a special buffer index which is 32. You can find this info in the pipeline documentation :)

SSAO is quite cool, I also started a very small demo (3 hours of work in total) some time ago based on this article. It is basically working but still needs a plenty of tweaking. So I'm looking forward to see what you will achieve.

Author:  swiftcoder [ 05.01.2008, 23:30 ]
Post subject: 

marciano wrote:
Depth attachments have a special buffer index which is 32. You can find this info in the pipeline documentation :)

Ah, many thanks, I missed that when reading through - all working now.

marciano wrote:
SSAO is quite cool, I also started a very small demo (3 hours of work in total) some time ago based on this article. It is basically working but still needs a plenty of tweaking. So I'm looking forward to see what you will achieve.

That is one of the articles I am working from, but you also might want to read his partner's devlog, here

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/