Forum

SPR32 for psp?

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

SPR32 for psp?

Postby Mexicouger » Mon Jun 21, 2010 1:11 am

Is adding Darkplaces sprite format as easy as adding a value

SPRITE_VERSION 32

And then replacing the spritegen.c code? Or do I have to hardcode it all? If I do have to Hard code, Where would I start :roll:
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Postby leileilol » Mon Jun 21, 2010 1:31 am

Since you are dealing with an 8-bit alpha channel, you'd also have to have to manage sorting, and make sure you don't excess the poor PSP's stupid fillrate, and since it's a 32-bit texture, you could easily get carried away at thrashing the crappy PSP vram.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby mh » Mon Jun 21, 2010 8:26 am

Once you have the loader replaced almost everything else is the same, but keep the points about alpha in mind. ;)

But if you're considering this - the world doesn't need yet another domain-specific custom binary format to become popular. Far better would be a plain text file describing the frames (in a COM_Parse-able format, for crying out loud!) and a group of TGAs (or whatever your image format of preference is).
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby leileilol » Mon Jun 21, 2010 10:59 pm

mh wrote:But if you're considering this - the world doesn't need yet another domain-specific custom binary format to become popular.


.spr32 has been around for 10 years now, and FIMG can make them.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby mh » Tue Jun 22, 2010 12:27 am

MSPaint and Notepad support what I suggested! :twisted: :lol:

(But yeah, fair point.)
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest