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 

Idiot requires help with spaceships, aliens, lasers!

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



Joined: 19 Jan 2006
Posts: 6

PostPosted: Thu Jan 19, 2006 5:37 pm    Post subject: Idiot requires help with spaceships, aliens, lasers! Reply with quote

Hi chaps - first time poster here with a question or two. I'm trying to write a 2D game on the psp - and so far your forums have proved invaluable, especially getting cygwin and psptool up and running. I am using Blit from the samples and getting a starfield up and running with it was simplicity itself. Whack some stars into the texture and blit it every frame. Easy However now I want to load up some bitmaps (Spaceships! Lasers! Aliens!).

I can load 32 bpp Windows bitmaps into memory with a handy routine someone posted on one of these forums. Now comes the tricky bit which makes my tiny brain unhappy. Blit uses 16 bit texture blitting, but bmp files can only be in 32 bits (well at least this is what Paintshop Pro tells me....) soooo....

Either I need to convert blit to use 32 bit textures (easy to change the variables, eg GU_TEXTURE_32BITF from 16BIT but I get text working but no starfield anymore, even when filling the array with very big numbers) or I need some way to load 16 bit textures. From files obviously - encoding all the graphics in the pbp using one of those pngtoc type apps is not appropriate for a game with levels.

Have I been a thickie and just changing to 32 bit should work but I've made an elementary error, ie vertex should stay 16BIT

or is there a program out there that can output 16 bit files from bitmaps etc which I could then dump into ram.

Sorry if this is a bit long winded - only started coding two days ago, so a bit noob. No, a lot noob.

Cheers,

Robin Jubber
Back to top
View user's profile Send private message Send e-mail
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