forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What's better, triangulated mesh or quad mesh?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Mon Aug 28, 2006 3:22 am    Post subject: What's better, triangulated mesh or quad mesh? Reply with quote

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
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Mon Aug 28, 2006 8:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Mon Aug 28, 2006 9:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Wed Aug 30, 2006 3:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Wed Aug 30, 2006 3:46 am    Post subject: Reply with quote

I render triangles from an obj file.

It's fast enough for any purpose.
Back to top
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Wed Aug 30, 2006 4:03 am    Post subject: Reply with quote

fast enough but is it also the fastest, because when you make a 3d game you can always use some extra resources.
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
danzel



Joined: 04 Nov 2005
Posts: 182

PostPosted: Wed Aug 30, 2006 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group