croce

11-21-2003, 07:57 AM

Hi,

I have a flat rotating concave polygon and some lighting. The concave polygon has the form of a 'T', it is build from two rectangles.

When the 'T' is rotating, at some angles, the two rectangular polygons are not equally lit and you can see my T is build from two polygons. This looks rather ugly.

glShadeModel(GL_SMOOTH) doesn't seem to help much because I am using GL_QUADS, not strips or something else.

How do I use lighting and have the same color for the whole of my concave 'T'-polygon?

Thanks.

I have a flat rotating concave polygon and some lighting. The concave polygon has the form of a 'T', it is build from two rectangles.

When the 'T' is rotating, at some angles, the two rectangular polygons are not equally lit and you can see my T is build from two polygons. This looks rather ugly.

glShadeModel(GL_SMOOTH) doesn't seem to help much because I am using GL_QUADS, not strips or something else.

How do I use lighting and have the same color for the whole of my concave 'T'-polygon?

Thanks.