| View previous topic :: View next topic |
| Author |
Message |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
Posted: Mon Aug 28, 2006 3:22 am Post subject: What's better, triangulated mesh or quad mesh? |
|
|
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 _________________ My PSP games:
Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Mon Aug 28, 2006 8:12 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Mon Aug 28, 2006 9:21 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
Posted: Wed Aug 30, 2006 3:09 am Post subject: |
|
|
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? _________________ My PSP games:
Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Wed Aug 30, 2006 3:46 am Post subject: |
|
|
I render triangles from an obj file.
It's fast enough for any purpose. |
|
| Back to top |
|
 |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
|
| Back to top |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Wed Aug 30, 2006 5:41 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|