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?
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?
Ok, I guessed somewhat that that would be the problem.
I managed to get ‘acceptable’ result by using a trianglefan for the T, and quadstrips for some other letters. Better tesselation is postponed till I have some routines…
Thanks for the link! I hadn’t seen much of the website yet.