Forum

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.

Moderator: InsideQC Admins

256 is such a small number

Postby behind_you » Sat Feb 26, 2011 11:11 pm

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!
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby mh » Sun Feb 27, 2011 12:08 am

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
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby behind_you » Sun Feb 27, 2011 8:55 am

ok so it has to be the quake palette? Any batch converters or any way to replace them with .tgas?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby revelator » Sun Feb 27, 2011 9:22 am

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).
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby behind_you » Sun Feb 27, 2011 9:48 am

ok. Were do i find tanebrea's technique? And does proquake 4.70 psp supprt tga conchars and other textures?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby leileilol » Sun Feb 27, 2011 12:11 pm

32-bit tgas are something you don't want in a texture cache of a sony platform
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby behind_you » Sun Feb 27, 2011 12:24 pm

i never said 32 bit
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby Ranger366 » Sun Feb 27, 2011 1:44 pm

behind_you wrote:i never said 32 bit


Targas without transparency hm
Makes sense.
User avatar
Ranger366
 
Posts: 203
Joined: Thu Mar 18, 2010 5:51 pm

Postby behind_you » Sun Feb 27, 2011 1:55 pm

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?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby Ranger366 » Sun Feb 27, 2011 2:57 pm

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.
User avatar
Ranger366
 
Posts: 203
Joined: Thu Mar 18, 2010 5:51 pm

Postby behind_you » Sun Feb 27, 2011 3:22 pm

ok nd is pcx implemented in proquake 4.7 psp? How do i make the engine look forthe pcx?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya


Return to General Programming

Who is online

Users browsing this forum: No registered users and 1 guest