View Full Version : Multitextures questions

06-30-2004, 02:51 AM
Hello all,
Few questions about Multitexturing:

1) Can I have different automatic texture coordinates generation applied for each texture unit in multitexture rendering?

2) Can I have different texture matrix, one per texture unit?

3) Is there a mechanism to use vertex arrays that defines more than one set of texture coordinates per vertex?

Many thanks,

Tom Nuydens
06-30-2004, 03:05 AM
Yes, yes and yes.

1) Texgen settings apply to the currently active texture unit. Just call glActiveTexture() and then set up texgen as usual. Repeat this for every texture unit that needs texgen.

2) Same story. Use glActiveTexture() to set the current texture unit, then change its matrix.

3) glTexCoordPointer() also applies to the currently active texture unit, but you have to activate it using glClientActiveTexture().

-- Tom

06-30-2004, 03:30 AM
Thanks a lot Tom

06-30-2004, 11:51 AM
though if you leave nvidia / ati territory those things might not be working well, ran into quite some issues with a sis card and resulted into doing texcoords manually (texgens) and apply via texcoordpointers for each unit