Jump to content
  • Advertisement

Archived

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

dachande

quad strips demo

This topic is 6043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
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
Oh yeah, sorry, I know all that... I am more interested in the order in which the vertices need to be declared.

Sorry for the mis-information,

Dachande

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
theres a few things u cant do between begin..end statements binding textures is one of them. u will need to use multiple calls to begin(QUAD_STRIP) end()

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!