PDA

View Full Version : using vertex lists and normal vectors



JtheKing
11-01-2001, 08:31 PM
Could someone please explain how to use these in a simple way, or direct me to a good webpage about it? So far in my class I have just been using individually drawn polygons instead of vertex lists and normal vectors. Also, another question. Could I still use light sources with my old project which was created using the individually drawn polygons? Thanks

jide
11-02-2001, 04:11 AM
for the vertices list, the best way is to buy the opengl book.

But i can tell that you can keep your light, if your list contains normal vertices !

good luck

Rob The Bloke
11-02-2001, 04:23 AM
Originally posted by JtheKing:
Also, another question. Could I still use light sources with my old project which was created using the individually drawn polygons? Thanks

all that is required for lighting is normal vectors at the vertices. Vertex arrays merely draw your stuff faster than glBegin()/glEnd()