Jump to content

  • Log In with Google      Sign In   
  • Create Account


QUADS vs. TRIANGLES


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 masonium   Members   -  Reputation: 118

Like
Likes
Like

Posted 26 September 2001 - 04:06 PM

which is faster? Drawing a quad or two triangles using GL_TRIANGLES?

Sponsor:

#2 Drizzt DoUrden   Members   -  Reputation: 100

Like
Likes
Like

Posted 26 September 2001 - 04:13 PM

Quad- 4 vertex's
Triangle-3 vertex's *2

SO drawing 2 triangles needs 6 calls to glVertex3f, quads only need 4.

Quads are faster :\

"I've sparred with creatures from the nine hells themselves... I barely plan on breaking a sweat here, today."~Drizzt Do'Urden

Edited by - Drizzt DoUrden on September 26, 2001 11:13:39 PM

#3 Slinger   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 September 2001 - 04:32 PM

GL_TRIANGLE_STRIP

Quad- 4 vertex''s
Triangle -3 vertex''s *2
Triangle Strip - 4

Better to use GL_TRIANGLE_STRIP instead GL_TRIANGLES if you want to make a quad(ish)
could also be faster than using GL_QUADS, but not buy much, all depends on the hardware

#4 Maximus   Members   -  Reputation: 124

Like
Likes
Like

Posted 27 September 2001 - 03:13 AM

The hardware/drivers are almost always optimized for triangles.

#5 MButchers   Members   -  Reputation: 123

Like
Likes
Like

Posted 27 September 2001 - 09:24 PM

hi there,

If your using Vertex arrays use GL_QUADS
not GL_TRIANGL_STRIP as for each quad
you would have to make seperate calls
to glDrawArrays(..) as opposed to
one with GL_QUADS.

Hope it helps

Mark.

#6 jerry2   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 September 2001 - 12:34 AM

the triangle is used in much more hands than quads.
the quad can only make the regular objects,but triangle is the basis of polygons,so every ploygon and complex objects r made of triangles.and triangle-strip is convenient and fast to use in modeling.
for these reasons,i think triangle is more powerful than quad.

jerry2
Programming,make a whole new world.

#7 Vlion   Members   -  Reputation: 151

Like
Likes
Like

Posted 28 September 2001 - 09:16 AM

Quads cannot handle convex or concave surfaces.
In other words, all 4 points muct lie on a plane.
3 points are the minimum needed to define a plane, so Tri handle wierd shapes better.
So it all comes down to what you are doing.

Landscapes you probably want Tris.
For other things you probably want a mixture.
V''lion


I came, I saw, I got programmers block.
~V''''lion




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS