PDA

View Full Version : How to use VOB with Materials??



Itun.itu
10-09-2010, 12:15 PM
There are a vertex array, for this vertex array there are some indexed arrays for each there are material (DIFFUSE COLOR, AMBIEN COLOR, SPECULAR COLOR, etc.).
In this case I can create a vertex buffer and element buffers. I make glDrawElements(...) for each element buffer. All is well.
But how I can to add some material for each pieces or for each vertex, somebody other...
I want create the render without queries to CPU.

BionicBytes
10-09-2010, 03:55 PM
Didn't you already post this in the beginners forum?