| View previous topic :: View next topic |
| Author |
Message |
siberianstar
Joined: 22 Jun 2006 Posts: 70
|
Posted: Fri Jun 30, 2006 10:49 pm Post subject: PSP Graphic problem |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
|
| Back to top |
|
 |
siberianstar
Joined: 22 Jun 2006 Posts: 70
|
Posted: Fri Jun 30, 2006 11:58 pm Post subject: |
|
|
| i'm using pspgl not gu |
|
| Back to top |
|
 |
siberianstar
Joined: 22 Jun 2006 Posts: 70
|
Posted: Sat Jul 01, 2006 12:11 am Post subject: |
|
|
| ok, then, i'm using pspgl. How can i see the real coords X,Y of a vector X,Y,Z. |
|
| Back to top |
|
 |
ector
Joined: 12 May 2005 Posts: 195
|
Posted: Sat Jul 01, 2006 1:58 am Post subject: |
|
|
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 |
|
 |
siberianstar
Joined: 22 Jun 2006 Posts: 70
|
Posted: Sat Jul 01, 2006 5:14 am Post subject: |
|
|
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 |
|
 |
siberianstar
Joined: 22 Jun 2006 Posts: 70
|
Posted: Sat Jul 01, 2006 6:09 am Post subject: |
|
|
| IF anyone used the pspgl how can i have the more speed? |
|
| Back to top |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Sat Jul 01, 2006 11:05 am Post subject: |
|
|
| 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 |
|
 |
ector
Joined: 12 May 2005 Posts: 195
|
Posted: Sat Jul 01, 2006 8:08 pm Post subject: |
|
|
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 |
|
 |
|