Horde3D
http://horde3d.org/forums/

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

Author:  Manny [ 27.12.2007, 17:16 ]
Post subject:  Binding multiple textures

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 :)

Author:  marciano [ 27.12.2007, 17:32 ]
Post subject: 

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.

Author:  Manny [ 28.12.2007, 14:42 ]
Post subject: 

Aha, that'll do it :)

Cheers!

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