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 

Last parameter for sceGuClutMode - T16?

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



Joined: 26 Sep 2007
Posts: 15
Location: Hannover, Germany

PostPosted: Fri Feb 01, 2008 9:35 pm    Post subject: Last parameter for sceGuClutMode - T16? Reply with quote

Code:
sceGuClutMode(GU_PSM_8888,0,0xFF,0xFF);   
sceGuClutLoad(0xFFFF/8,rawPalette);


This makes T16 mode work as far as I can see it.
I tried placing green colors in the upper range, red colors in the lower, both colors were present when rendering the zbuffer.

This makes sense to me too because of this:

Code:
void sceGuClutMode(unsigned int cpsm, unsigned int shift, unsigned int mask, unsigned int a3)
{
   unsigned int argument = (cpsm) | (shift << 2) | (mask << 8) | (a3 << 16);
   sceGuSendCommandi(0xC5,argument);
}


mask and a3 are following which would mean that mask is not only 8 but 16 bits!

Makes me wonder how T32 works...

I could be wrong though, would be great if anyone has more information

//Edit: Looks like I was wrong - but it seems to be something which is added to the color index or something
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