PDA

View Full Version : Vertex Array and Multitexturing



enmaniac
12-18-2003, 01:05 PM
Is it possible to perform multitexuring ( one texture on the other ) using vertex arrays ?? I mean when you use VA you enable proper client states, setup pointers and finaly drawing using ie glDrawArrays. But how to enable multitexturing ??

Thx in advance

sebh
12-18-2003, 02:38 PM
I think you can send one texture coord pointer per texture unit.

enmaniac
12-18-2003, 03:36 PM
What does it mean 'texture unit'?? Does it mean that multitexturing can be done only inside glBegin/glEnd specifying glMultiTexCoord2fARB for every vertex ?? Isn't there any faster method to do it?? glBegin/glEnd with glVertex'es is extremally slow method for displaying thousands of faces isn't it ??

zeckensack
12-18-2003, 05:14 PM
You need glClientActiveTextureARB to select the coordinate set influenced by glTexCoordPointer and glEnableClientState.

You may want to have a look at these threads:
http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/010231.html
http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/011049.html



[This message has been edited by zeckensack (edited 12-18-2003).]

enmaniac
12-19-2003, 01:56 AM
Thx A LOT!!! It is exactly what I need :-)