jefftkd

03-04-2002, 08:37 AM

Okay, I haven't used vertex arrays before, and am about to attempt them (hopefully successfully). However, I'm having trouble understanding something before I begin.

Let's say I have these two quads I want to render:

0 1 2

+-----+------+

| | |

+-----+------+

3 4 5

Now, obviously vertices 1 and 4 are shared. Let's now suppose a) there is a bend at 14 so that N(0143) is different from N(1254) and b) I want the same texture on both (so UV at 1 of 0143 is 1.0,1.0 and UV at 1 of 1254 is 0.0,1.0).

I don't understand how to specify two different normals for the same vertex or two different UV coordinates for the same vertex. In the Red book, it appears as though each vertex has 1 color, 1 UV and 1 normal associated with it.

I'm sure this is an easy problem. Thanks in advance!

Jeff

Let's say I have these two quads I want to render:

0 1 2

+-----+------+

| | |

+-----+------+

3 4 5

Now, obviously vertices 1 and 4 are shared. Let's now suppose a) there is a bend at 14 so that N(0143) is different from N(1254) and b) I want the same texture on both (so UV at 1 of 0143 is 1.0,1.0 and UV at 1 of 1254 is 0.0,1.0).

I don't understand how to specify two different normals for the same vertex or two different UV coordinates for the same vertex. In the Red book, it appears as though each vertex has 1 color, 1 UV and 1 normal associated with it.

I'm sure this is an easy problem. Thanks in advance!

Jeff