256 is such a small number

Discuss programming topics for any language, any source base. If it is programming related but doesn't fit in one of the below categories, it goes here.
Post Reply
behind_you
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

256 is such a small number

Post by behind_you »

im lookin to

Use .tgas instead of .lmps for menu graphics, conchars, and hud

Batch .lmp converter

And an explanation on what an .lmp file is. I know its a quake image but i need to know about it (ie how much bit depth, file structure, etc.)

Thanks!
mh
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Post by mh »

A .lmp starts with two ints - width and height. Following that is a stream of bytes (of length equal to width * height) that are indexes into the Quake palette. Couldn't be simpler.
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
behind_you
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Post by behind_you »

ok so it has to be the quake palette? Any batch converters or any way to replace them with .tgas?
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

definatly ;)

several engines support tga conchars (or png or jpeg or ...) you get the drift :lol: look in gl_draw.c for draw_chars then compare the code from an engine like say joequake with the original to get an idea
how it works :).

tenebrae got a simplistic way of doing it (close to the original) but you might want to go with joequakes textureloader (tenebraes textureloader is rather unstandard).
behind_you
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Post by behind_you »

ok. Were do i find tanebrea's technique? And does proquake 4.70 psp supprt tga conchars and other textures?
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Post by leileilol »

32-bit tgas are something you don't want in a texture cache of a sony platform
i should not be here
behind_you
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Post by behind_you »

i never said 32 bit
Ranger366
Posts: 203
Joined: Thu Mar 18, 2010 5:51 pm

Post by Ranger366 »

behind_you wrote:i never said 32 bit
Targas without transparency hm
Makes sense.
behind_you
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Post by behind_you »

Ranger366 wrote:
behind_you wrote:i never said 32 bit
Targas without transparency hm
Makes sense.
They have to be 32 bit to be transparent? Does that include pink color transparency? Can i use pcxs instead?
Ranger366
Posts: 203
Joined: Thu Mar 18, 2010 5:51 pm

Post by Ranger366 »

behind_you wrote: They have to be 32 bit to be transparent? Does that include pink color transparency? Can i use pcxs instead?
1) yes, only 32b targas support transparence
2) pink color transparency? i dont think so. but i never tried it.
3) sure.
behind_you
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Post by behind_you »

ok nd is pcx implemented in proquake 4.7 psp? How do i make the engine look forthe pcx?
Post Reply