PSP Graphic problem

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

Moderators: cheriff, TyRaNiD

Post Reply
siberianstar
Posts: 70
Joined: Thu Jun 22, 2006 9:24 pm

PSP Graphic problem

Post by siberianstar »

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Search forums for "clipping" and find lots of info, like
http://forums.ps2dev.org/viewtopic.php? ... t=clipping
siberianstar
Posts: 70
Joined: Thu Jun 22, 2006 9:24 pm

Post by siberianstar »

i'm using pspgl not gu
siberianstar
Posts: 70
Joined: Thu Jun 22, 2006 9:24 pm

Post by siberianstar »

ok, then, i'm using pspgl. How can i see the real coords X,Y of a vector X,Y,Z.
ector
Posts: 195
Joined: Thu May 12, 2005 10:22 pm

Post by ector »

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.
siberianstar
Posts: 70
Joined: Thu Jun 22, 2006 9:24 pm

Post by siberianstar »

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.
siberianstar
Posts: 70
Joined: Thu Jun 22, 2006 9:24 pm

Post by siberianstar »

IF anyone used the pspgl how can i have the more speed?
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

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.
ector
Posts: 195
Joined: Thu May 12, 2005 10:22 pm

Post by ector »

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.
Post Reply