Archived

This topic is now archived and is closed to further replies.

dachande

quad strips demo

Recommended Posts

Guest Anonymous Poster
There are no quad strips. Only triangle strips. Quads get broken down to triangles by the drivers, so might as well use triangles in the first place.

Share this post


Link to post
Share on other sites
1-3-5
|.|.|
2-4-6 etc

glBegin( GL_QUAD_STRIP )
glVertex3fv(1);
glVertex3fv(2); .. 3.4.5.6etc
glEnd();

using quads instead of tris require less typing and also for certain things its easier to see whats going on eg make a sphere with quads + tris, view both in wireframe or the quads look better

Share this post


Link to post
Share on other sites
I have figured the order out using trial and error now..

I have a different problem though.

How do I select different textures to be used on diferent quads?

I can select a texture to be used.. but selecting textures in between the glBegin(GL_QUAD_SRIPS_ and glEnd functions does not work(in this case anyway, it must work for some). So how do I choose a second or third texture?

Since vertices overlap with strips, how am I to select 2 textures for those vertices.. I''m guessing that I don''t.. so whats''s the deal with this! Strips seem only good for coloured polygons, or those that require just one looping texture.

Dachande

Share this post


Link to post
Share on other sites