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 

PSP Graphic problem

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



Joined: 22 Jun 2006
Posts: 70

PostPosted: Fri Jun 30, 2006 10:49 pm    Post subject: PSP Graphic problem Reply with quote

Hello,

i'm developing a 3d game for psp but there is a problem with the psp culling system.

http://85.25.18.122/IM000345.jpg

the psp cut off the triangles that have the vertex too far from the screen, how can i solve it ?

I'm using pspgl
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Jun 30, 2006 11:45 pm    Post subject: Reply with quote

Search forums for "clipping" and find lots of info, like
http://forums.ps2dev.org/viewtopic.php?t=2961&highlight=clipping
Back to top
View user's profile Send private message
siberianstar



Joined: 22 Jun 2006
Posts: 70

PostPosted: Fri Jun 30, 2006 11:58 pm    Post subject: Reply with quote

i'm using pspgl not gu
Back to top
View user's profile Send private message
siberianstar



Joined: 22 Jun 2006
Posts: 70

PostPosted: Sat Jul 01, 2006 12:11 am    Post subject: Reply with quote

ok, then, i'm using pspgl. How can i see the real coords X,Y of a vector X,Y,Z.
Back to top
View user's profile Send private message
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Sat Jul 01, 2006 1:58 am    Post subject: Reply with quote

Well, if you're going to do manual clipping, you'll want to do it in 3D space.

But I think that you should just subdivide all your triangles into smaller ones, since the PSP can handle quite a lot of them without problems.
_________________
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
Back to top
View user's profile Send private message
siberianstar



Joined: 22 Jun 2006
Posts: 70

PostPosted: Sat Jul 01, 2006 5:14 am    Post subject: Reply with quote

i've done a test ...

using 700 triangles = 60fps about
using 2100 triangles = 23fps

-_- and if i comment the glDrawElements the fps returns to 60fps also with 2100 triangles.
Back to top
View user's profile Send private message
siberianstar



Joined: 22 Jun 2006
Posts: 70

PostPosted: Sat Jul 01, 2006 6:09 am    Post subject: Reply with quote

IF anyone used the pspgl how can i have the more speed?
Back to top
View user's profile Send private message
danzel



Joined: 04 Nov 2005
Posts: 182

PostPosted: Sat Jul 01, 2006 11:05 am    Post subject: Reply with quote

I'm making a 2d game and I was rendering all the sprites by drawing 2 triangles, I changed this to use a triangle strip to draw each sprite and saw a 50% improvement.
Back to top
View user's profile Send private message
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Sat Jul 01, 2006 8:08 pm    Post subject: Reply with quote

Do not ever draw your sprites or triangles one by one, always submit lists of triangles or sprites. You will get huge speed improvements compared to sending them off one by one.
_________________
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
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