Inside3D!
     

Adding JPEG texture Support???

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Programming Tutorials
View previous topic :: View next topic  
Author Message
Stroggos



Joined: 14 Apr 2009
Posts: 43

PostPosted: Sun Apr 19, 2009 9:53 am    Post subject: Adding JPEG texture Support??? Reply with quote

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
_________________
Dont even try to port Quake 4 to the ipod
Back to top
View user's profile Send private message
Electro



Joined: 29 Dec 2004
Posts: 241
Location: Brisbane, Australia

PostPosted: Sun Apr 19, 2009 12:45 pm    Post subject: Reply with quote

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).
_________________
Unit reporting!
http://www.bendarling.net/
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Sun Apr 19, 2009 5:58 pm    Post subject: Reply with quote

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.
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
mh



Joined: 12 Jan 2008
Posts: 909

PostPosted: Sun Apr 19, 2009 7:01 pm    Post subject: Reply with quote

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.
_________________
DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines
Back to top
View user's profile Send private message Visit poster's website
reckless



Joined: 24 Jan 2008
Posts: 390
Location: inside tha debugger

PostPosted: Sun Apr 19, 2009 10:56 pm    Post subject: Reply with quote

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

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.
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Mon Apr 20, 2009 12:54 am    Post subject: Reply with quote

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...
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
reckless



Joined: 24 Jan 2008
Posts: 390
Location: inside tha debugger

PostPosted: Mon Apr 20, 2009 4:10 pm    Post subject: Reply with quote

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

assuming he started from square 1 Rolling Eyes

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Programming Tutorials All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group