Page 1 of 1

256 is such a small number

Posted: Sat Feb 26, 2011 11:11 pm
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!

Posted: Sun Feb 27, 2011 12:08 am
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.

Posted: Sun Feb 27, 2011 8:55 am
by behind_you
ok so it has to be the quake palette? Any batch converters or any way to replace them with .tgas?

Posted: Sun Feb 27, 2011 9:22 am
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).

Posted: Sun Feb 27, 2011 9:48 am
by behind_you
ok. Were do i find tanebrea's technique? And does proquake 4.70 psp supprt tga conchars and other textures?

Posted: Sun Feb 27, 2011 12:11 pm
by leileilol
32-bit tgas are something you don't want in a texture cache of a sony platform

Posted: Sun Feb 27, 2011 12:24 pm
by behind_you
i never said 32 bit

Posted: Sun Feb 27, 2011 1:44 pm
by Ranger366
behind_you wrote:i never said 32 bit
Targas without transparency hm
Makes sense.

Posted: Sun Feb 27, 2011 1:55 pm
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?

Posted: Sun Feb 27, 2011 2:57 pm
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.

Posted: Sun Feb 27, 2011 3:22 pm
by behind_you
ok nd is pcx implemented in proquake 4.7 psp? How do i make the engine look forthe pcx?