Horde3D

Next-Generation Graphics Engine
It is currently 27.04.2024, 18:19

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Binding Depth textures
PostPosted: 05.01.2008, 22:45 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
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...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 05.01.2008, 23:00 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 05.01.2008, 23:30 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group