Horde3D

Next-Generation Graphics Engine
It is currently 01.11.2024, 05:27

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 27.12.2007, 17:16 
Offline

Joined: 20.12.2007, 00:18
Posts: 23
Hi, I'm new to Horde and I've come across an issue which is presumably quite simple to solve but whose solution is currently evading me.

How do you bind multiple textures (for doing effects like bloom etc)?

The current documentation suggests you would specify something along the lines of:

Code:
<BindBuffer shaderIndex="0" target="BUFFER" bufIndex="0"/>


However the examples in the SDK specify:

Code:
<BindBuffers target="BUFFER" />


The command itself is different (there is now an 's' on the end of BindBuffer which seems correct after poking around in the source code) and the shaderIndex and bufIndex attributes seem no longer necessary (and they don't seem to exist in the source).

I've tried various different methods of trying to bind 2 textures but it always results in the last specificed buffer being used and the other being ignored. I would assume the way to do this would be to have several of these BindBuffers commands in a row? i.e.

Code:
<BindBuffer shaderIndex="0" target="BUFFER1" bufIndex="0"/>
<BindBuffer shaderIndex="1" target="BUFFER2" bufIndex="0"/>


or

Code:
<BindBuffers target="BUFFER1" />
<BindBuffers target="BUFFER2" />


Am I barking up the wrong tree, or am I in fact in the wrong park alogether? Any help would be much appreciated :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 27.12.2007, 17:32 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Hi, please make sure that you are using the latest version of Horde (currently 0.13). You seem to have the right 0.13 docs but the old code from 0.12 where you couldn't bind buffers from different render targets.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 28.12.2007, 14:42 
Offline

Joined: 20.12.2007, 00:18
Posts: 23
Aha, that'll do it :)

Cheers!


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 4 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