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 

Weird GU behavior

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



Joined: 13 Jul 2006
Posts: 46

PostPosted: Sun Mar 18, 2007 12:37 pm    Post subject: Weird GU behavior Reply with quote

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



Joined: 13 Jul 2006
Posts: 46

PostPosted: Sun Mar 18, 2007 7:08 pm    Post subject: Reply with quote

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



Joined: 10 Nov 2005
Posts: 86
Location: Tokyo

PostPosted: Sun Mar 18, 2007 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
sturatt



Joined: 13 Jul 2006
Posts: 46

PostPosted: Mon Mar 19, 2007 5:42 am    Post subject: Reply with quote

i dont know how to delete this post, but my new question in the first post stands.
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Mon Mar 19, 2007 5:02 pm    Post subject: Reply with quote

sceGumDrawArray is matrix aware, sceGuDrawArray isn't.

The internal code of sceGumDrawArray is something like:

Code:
sceGumUpdateMatrix();
sceGuDrawArray(...);
Back to top
View user's profile Send private message
Tinnus



Joined: 29 Jul 2006
Posts: 67

PostPosted: Wed Mar 21, 2007 1:38 am    Post subject: Reply with quote

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



Joined: 13 Jul 2006
Posts: 46

PostPosted: Wed Mar 21, 2007 10:41 am    Post subject: Reply with quote

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
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