• Advertisement
Sign in to follow this  

Triangles over quads

This topic is 4729 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

in creating my graphics environment(only a small room) for my university project i have used a quad strip to create the walls of the room, rather than triangles as with little experience in CG i thought it would be ok at the time. as my project involves the use of shaowing algorithms i was suprised to just read that an advantage triangles have over quads is something about the way they are lit, could someone explain to me why this is, and whether i will have to change my environment before i start implementing the shadowing algorithms(shadow mapping and shadow volumes) Thanks

Share this post


Link to post
Share on other sites
Advertisement
Considering that quad strips are converted to tri strips internally, I can't think of how either one would have an advantage.

Share this post


Link to post
Share on other sites
hmmm... quads have 4 points, triangles have 3

3 points lay always in the same plane wheareas 4 poins don't. So if you were to calculate the normal of a plane formed by 3 points, you wouldn't have a problem. If the 4 points of your quad wouldn't lay in the same plane however, then you'd have trouble calculating the normal.

it's late, it's badly explained, but I tink it's about right

edit: if what JohnBolton said is true (and it more than likely is) then OpenGL makes the conversion for you and you won't have anything to worry about.

Share this post


Link to post
Share on other sites
As far as I know, the only advantage to tris over quads is that they draw faster. But JohnBolton hit it dead on, they turn out to be the same thing in the end.

Edit: Just listen to Shai. He knows what he is talking about.

Share this post


Link to post
Share on other sites
thanks peeps,

thats a great load off my mind

good old nehe forums, ever the aide :-p

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement