What's better, triangulated mesh or quad mesh?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Ghoti
Posts: 288
Joined: Sat Dec 31, 2005 11:06 pm

What's better, triangulated mesh or quad mesh?

Post by Ghoti »

Hi folks,

don't know if this is common knowledge but i was wondering, if i want to render a box using quads or triangles, which is faster?

does the same apply for more complex objects?

greets ghoti
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

The PSP GU does not have quad primitives, so the question is redundant. Also PSPGL only emulates Quads, if at all, by triangles.
As for triangles, the fastest setup should probably be a triangle fan then triangle strip.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Post by chp »

Fans vs. strips is probably an even race, since they both fetch only one vertex per triangle. Fans however gets really messy since you can't really restart on a new location so you'd have to kick each separately, but with a triangle strip you can insert a degenerate triangle to start drawing from a new location in the same call.
GE Dominator
Ghoti
Posts: 288
Joined: Sat Dec 31, 2005 11:06 pm

Post by Ghoti »

Hi thanks for the reply,

i indeed see that quads are not supported, guess i made a mistake. however i have one question though:

i wanted to know if just rendering triangles is that much slower as trianglestrips and if so, which model format is as easy to read as an obj model file or just a little bit more difficult? The obj files i create using maya creates triangles and not trianglestrips so i can't use that if i want it as fast as i like.

any ideas?
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

I render triangles from an obj file.

It's fast enough for any purpose.
Ghoti
Posts: 288
Joined: Sat Dec 31, 2005 11:06 pm

Post by Ghoti »

fast enough but is it also the fastest, because when you make a 3d game you can always use some extra resources.
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

I've been working with some 2d rendering code recently.
Rendering my sprites using a triangle strip gets 30fps, while rendering my sprites using two triangles each only gets 20fps, so yeah there is some speed difference between em. probably won't be as big as this though.
Post Reply