PDA

View Full Version : InterLeavedArrays and Normals by surface



03-22-2004, 09:35 AM
Hi all,

I would like to know if it is possible to use the glInterleavedArrays() function having normal's coordinates by surfaces (and not by vertex).

Indeed, I did a AseLoader in C++, and in order not to get too many coordinates, I chose to extract the Normal's Coordinates by surface. (division by 3 of the number of normals which means that my file is not too big).

ioquan
03-22-2004, 12:34 PM
I assume by "surface" you mean a polygon. As far as I know, there is no way to do this, which is kind of annoying. The only way around it is to draw each polygon seperately, and only specify one normal for each polygon, rather than one for each vertex.