| View previous topic :: View next topic |
| Author |
Message |
sturatt
Joined: 13 Jul 2006 Posts: 46
|
Posted: Sun Mar 18, 2007 12:37 pm Post subject: Weird GU behavior |
|
|
I've edited the post because the question was answered, i needed to use sceGumDrawArray instead of sceGuDrawArray, but can anyone tell me why? what is the difference between the two?
Last edited by sturatt on Mon Mar 19, 2007 2:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
sturatt
Joined: 13 Jul 2006 Posts: 46
|
Posted: Sun Mar 18, 2007 7:08 pm Post subject: |
|
|
The problem was fixed ^^ but i dont know how to delete posts.
Last edited by sturatt on Mon Mar 19, 2007 2:35 pm; edited 1 time in total |
|
| Back to top |
|
 |
ufoz
Joined: 10 Nov 2005 Posts: 86 Location: Tokyo
|
Posted: Sun Mar 18, 2007 10:52 pm Post subject: |
|
|
Try changing
| Code: | | sceGuDrawArray( GU_TRIANGLES, type, 12, 0, &vertices ); |
to
| Code: | | sceGumDrawArray( GU_TRIANGLES, type, 12, 0, &vertices ); |
in Pyramid.render to use the gum matrix stack? |
|
| Back to top |
|
 |
sturatt
Joined: 13 Jul 2006 Posts: 46
|
Posted: Mon Mar 19, 2007 5:42 am Post subject: |
|
|
| i dont know how to delete this post, but my new question in the first post stands. |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Mon Mar 19, 2007 5:02 pm Post subject: |
|
|
sceGumDrawArray is matrix aware, sceGuDrawArray isn't.
The internal code of sceGumDrawArray is something like:
| Code: | sceGumUpdateMatrix();
sceGuDrawArray(...); |
|
|
| Back to top |
|
 |
Tinnus
Joined: 29 Jul 2006 Posts: 67
|
Posted: Wed Mar 21, 2007 1:38 am Post subject: |
|
|
The idea of a forum is to keep your questions and answers intact, so people with the same problems will know the solution without having to ask again :) _________________ Let's see what the PSP reserves... well, I'd say anything is better than Palm OS. |
|
| Back to top |
|
 |
sturatt
Joined: 13 Jul 2006 Posts: 46
|
Posted: Wed Mar 21, 2007 10:41 am Post subject: |
|
|
| i realize that, but the problem that i originally asked was because i mistyped and forgot to put an m in my code. I thought it might be better (especially for me) to ask about why i needed the m in sceGumDrawArray, and what the difference was withoutout it, rather than to have a huge question asking why my code didnt work (because i didnt have the m in one of my calls). |
|
| Back to top |
|
 |
|