Forum

Adding JPEG texture Support???

Post tutorials on how to do certain tasks within game or engine code here.

Moderator: InsideQC Admins

Adding JPEG texture Support???

Postby Stroggos » Sun Apr 19, 2009 9:53 am

is it possible to add JPEG suport into quake??? Because i dont like pcx's because they only support 8bpp and TGA are kool but take up too much space so JPEGs just solve all problems
Stroggos
 
Posts: 50
Joined: Tue Apr 14, 2009 11:40 am
Location: Australia

Postby Electro » Sun Apr 19, 2009 12:45 pm

JPG produces fairly rubbish artifacts on textures, as an artist I'd never want to use them for that.

Considered PNG? Or maybe pk3 support instead, and using tga's but in pk3's (you'll find they compress a lot).
Benjamin Darling
http://www.bendarling.net/

Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
Electro
 
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia

Postby Urre » Sun Apr 19, 2009 5:58 pm

TGA's in pk3 compress as much as PNG does, unless you RLE compress the TGA, which makes it compress less inside a pk3. Avoid RLE.
I was once a Quake modder
User avatar
Urre
 
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon

Postby mh » Sun Apr 19, 2009 7:01 pm

Most Q1 engines out there feature JPEG support, adding it should be a simple matter of grabbing the source code, finding what's required, and doing it. OK, it's lossy and it can be crap, but I think it's still a valid thing to have.
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 revelator » Sun Apr 19, 2009 10:56 pm

also tga has a really old bug where it flips textures which you then have to correct engine side ;).

jpeg is ok as long as you dont try alpha channel textures (looks really crap) png is quite a load better in that regard but can make load times a bit high if theres a lot of textures (especially if compressed inside a pak).

im toying with jasper support instead of jpeg since most of the ancient jpeg bugs have been fixed and its still developed.
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby Spike » Mon Apr 20, 2009 12:54 am

reckless wrote:also tga has a really old bug where it flips textures which you then have to correct engine side ;).

Or you could just fix your TGA loader. But hey, whatever works...
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby revelator » Mon Apr 20, 2009 4:10 pm

wasnt that what i ment ?
"which you then have to correct engine side" 8)

assuming he started from square 1 :roll:

but yes apart from this tga is probably the best.

reason: tga copes better with being compressed inside paks.
and loads quite a bit faster than png.
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger


Return to Programming Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest