Original Post
Hi there, I want to introduce what we know as Clusters in some 3D packages in my 3D engine. The main purpose here is to assign multiple materials on the same mesh. My question is: how do I organize the data and how do I send it to OpenGL?Create a polygon list for each material? Draw the entire mesh then draw over with the polygon list and his associate material? Or maybe, instead of creating a polygon list for each material is there a way to tell OpenGL: draw this list of faces but omit those ones? Some kind of a mask, an array matching a face list, of 0 and -1 for instance… where -1 mean not to draw this face. I m curious… any constructive inputs would be appreciated!