Old 25th Jan 2008, 08:46 AM   #1
Elowan
Contributing Member
 
Elowan's Avatar
 Gallery
3DS Max Bryce LightWave Poser Terragen Paint Shop Pro Photoshop
 
Join Date: Nov 2007
Location: Arizona
Posts: 2,200
Default Graphics format advantages

We know that jpg is a lossy, compressed format which can slow up renders due to huge uncompressed sizes - so png is reccomended.

But - how do bmp, tif, tga, iff compare with png and which is better and for what purpose vis-a-vis textures and BG's?
__________________
'Meddle not in the affairs of dragons
For thou art crunchy
And go well with ketchup and cornbread.'
Elowan is offline   Reply With Quote
Old 25th Jan 2008, 09:28 AM   #2
Oscaron
Contributing Member
 
Oscaron's Avatar
 Gallery
LightWave Poser Illustrator Photoshop
 
Join Date: Dec 2007
Location: Michigan, USA
Posts: 1,283
Default

I have this PDF from SpinQuad about a year back.

Optimised image use in LightWave.pdf

Um...yeah...the link to the post is:

http://www.spinquad.com/forums/showthread.php?t=10345

Hope this helps.

Edit: They also added the article to Lightwiki, it seems.
__________________
...And then Buffy staked Edward.
The End.
Oscaron is offline   Reply With Quote
Old 25th Jan 2008, 01:31 PM   #3
Elowan
Contributing Member
 
Elowan's Avatar
 Gallery
3DS Max Bryce LightWave Poser Terragen Paint Shop Pro Photoshop
 
Join Date: Nov 2007
Location: Arizona
Posts: 2,200
Default

Thnx for the response. Whilst ir deals nicely with the jpg/png matter - it does nothing for the rest of the formats that I can see.
__________________
'Meddle not in the affairs of dragons
For thou art crunchy
And go well with ketchup and cornbread.'
Elowan is offline   Reply With Quote
Old 25th Jan 2008, 03:16 PM   #4
Rigel
Moderator
 
Rigel's Avatar
 Gallery
LightWave Photoshop
 
Join Date: Nov 2007
Location: London (the other one, in Canada)
Posts: 22,870
Default

I might suggest a simple test Elowan. Use an image editing program and convert a fairly large background image into various formats. Then set up a scene with about 50k polys in it, put the background.jpg into the background and render; write down the time. Then switch to the background.png, render, note; background.iff, render, note etc.
__________________
Those who say it can't be done,
should stop interrupting those of us who are busy doing it!

------------------------------------------------------------
Other Projects

The Universal Joint
Beechcraft 2000 airplane
LadyBug (Firefly class freighter)
Rigel is offline   Reply With Quote
Old 25th Jan 2008, 03:33 PM   #5
Rigel
Moderator
 
Rigel's Avatar
 Gallery
LightWave Photoshop
 
Join Date: Nov 2007
Location: London (the other one, in Canada)
Posts: 22,870
Default

Actually, I just went and did that test myself. I borrowed one of Bob's amazing sky backgrounds, a .jpg image of 3072 x 2048 resolution, weighing 1.9 mb.

Using PaintShop Pro, I converted it to:

.bmp (18 mb)
.iff (9.9 mb)
.png (4.3 mb)
.tga (18 mb)
.tif (18 mb)

I then loaded Malcolm Reynolds' Phase II Enterprise, 24,681 polygons, which has a hefty number of texture files on it.

For some reason Lightwave did not want to load the .iff version.

Render times, rendering at 800 x 600 with LOW AA, no shadows, were as follows:

.bmp = 22.4 seconds
.jpg = 13.3
.png = 13.3
.tga = 13.3
.tif = 13.3

This was with LW v8.5 on a 2.8ghz processor with 4 gb of RAM.
__________________
Those who say it can't be done,
should stop interrupting those of us who are busy doing it!

------------------------------------------------------------
Other Projects

The Universal Joint
Beechcraft 2000 airplane
LadyBug (Firefly class freighter)

Last edited by Rigel : 3rd Feb 2008 at 08:24 AM. Reason: error in memory reporting
Rigel is offline   Reply With Quote
Old 25th Jan 2008, 09:27 PM   #6
BillS
Administrator
 
BillS's Avatar
 Gallery
LightWave Maya Modo Softimage XSI ZBrush Illustrator Corel Paint Photoshop
 
Join Date: Aug 2006
Location: Belleville, Ontario
Posts: 10,856
Default

Quote:
Originally Posted by Elowan View Post
We know that jpg is a lossy, compressed format which can slow up renders due to huge uncompressed sizes - so png is reccomended.

But - how do bmp, tif, tga, iff compare with png and which is better and for what purpose vis-a-vis textures and BG's?
Well........... iff is pretty much defunct now. To get PS to even see them you need to add a plugin from the goodies folder usually. To bad actually it was a nice tight little format that could just as easily be used for music as images.

Its not really a case of what effects render time its a case of how does it chew up your ram. png has the most outstanding capabilities since you can embed alpha's, index it, grayscale them, you can even animate them like a .gif. The others are just as good. The biggest thing to look at is can they be optimized

I did a test with .jpg, .bmp, .png, .tiff and .tga
7 maps 1400x1400.
  • jpg - Layout Memory usage 39.4 meg. On disk - 538k
  • bmp - Layout Memory usage 16.9 meg. On disk - 16.8 meg
  • png - Layout Memory usage 16.9 meg. On disk - 863k
  • tga - Layout Memory usage 16.9 meg. On disk - 15 meg
  • tiff - Layout Memory usage 16.9 meg. On disk - 17 meg

So as you can see. None of the other formats are really better on your memory but when you factor in that they don't "save" you anything over .png, they come in at an average of ~15 times less hard drive space used to keep them around.

They do have advantages if you want to use the alpha channel since they save it different than .png does. But that would mostly be for compositing and such.
__________________
Bill. aka LemmingDude. aka Ethangar, Ethanger, Ethengar, Ethenger, Ethan, Eth, ehenger, etharger, Ethel, Ehtangar, Ethanfar, hanger, Eclangers, Ethand, ethang, hangar, Ethanol, Ethangix, Ethangod, Eggnog, Ethanprop........
Lemming World
BillS is offline   Reply With Quote
Old 2nd Feb 2008, 12:17 PM   #7
DanSly
Registered Member
 Gallery
Cinema 4D Corel Paint Photoshop
 
Join Date: Feb 2008
Posts: 2
Default

Part of it is also the content of the image/texture, png is better quality with hard edged and sharp graphics, whereas jpeg, although lossy, is better for photographic type images.

Although saying that, you could use jpeg2000 which is lossless, but its not widely supported yet.
DanSly is offline   Reply With Quote
Old 3rd Feb 2008, 01:01 AM   #8
Evolution
Registered Member
 Gallery
Maya Photoshop
 
Join Date: Dec 2007
Location: Melbourne
Posts: 190
Default

wow you got a 13 second render with only 4 megs of ram?!?

So am I to understand the .png is the all round better choice than?
Evolution is offline   Reply With Quote
Old 3rd Feb 2008, 08:04 AM   #9
BillS
Administrator
 
BillS's Avatar
 Gallery
LightWave Maya Modo Softimage XSI ZBrush Illustrator Corel Paint Photoshop
 
Join Date: Aug 2006
Location: Belleville, Ontario
Posts: 10,856
Default

In an all around sense yes. Lossless, smaller size on disk and the same memory foot print in layout.
__________________
Bill. aka LemmingDude. aka Ethangar, Ethanger, Ethengar, Ethenger, Ethan, Eth, ehenger, etharger, Ethel, Ehtangar, Ethanfar, hanger, Eclangers, Ethand, ethang, hangar, Ethanol, Ethangix, Ethangod, Eggnog, Ethanprop........
Lemming World
BillS is offline   Reply With Quote
Old 3rd Feb 2008, 08:26 AM   #10
Rigel
Moderator
 
Rigel's Avatar
 Gallery
LightWave Photoshop
 
Join Date: Nov 2007
Location: London (the other one, in Canada)
Posts: 22,870
Default

Quote:
Originally Posted by Evolution View Post
wow you got a 13 second render with only 4 megs of ram?!?

So am I to understand the .png is the all round better choice than?
It's a highly advance and top secret experimental RAM. Now that you know about it, I shall have to have you removed to a deep, dark hole that you shall never get out of!

Okay, so my brain was thinking of something else at the time.
__________________
Those who say it can't be done,
should stop interrupting those of us who are busy doing it!

------------------------------------------------------------
Other Projects

The Universal Joint
Beechcraft 2000 airplane
LadyBug (Firefly class freighter)
Rigel is offline   Reply With Quote

Go Back   Foundation 3D Forums > Techniques, Instruction > Texturing
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:01 AM.


2006 - 2013 Foundation 3D