POV-Ray : Newsgroups : povray.binaries.images : Photographic compression (50k) Server Time
18 Aug 2024 02:16:55 EDT (-0400)
  Photographic compression (50k) (Message 7 to 16 of 16)  
<<< Previous 6 Messages Goto Initial 10 Messages
From: Kari Kivisalo
Subject: Re: Photographic compression (50k)
Date: 10 Aug 2001 10:21:30
Message: <3B73EE91.7FB6B38@pp.htv.fi>
Mael wrote:
> 
> Very nice.. Can we see the non post-processed image to see the effect of
> compression ?

http://www.pp.htv.fi/kkivisal/48bit.jpg
http://www.pp.htv.fi/kkivisal/48bit2.jpg


_____________
Kari Kivisalo


Post a reply to this message

From: Tony[B]
Subject: Re: Photographic compression (50k)
Date: 10 Aug 2001 11:16:40
Message: <3b73fad8@news.povray.org>
You've got to be kidding! Wow!


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Photographic compression (50k)
Date: 10 Aug 2001 11:56:33
Message: <3B7404D9.D78EFE48@pp.htv.fi>
ingo wrote:

> So what you are doing is "gamma adjustment the hard way", but with more
> control over the result?

It's the engineer's approach. I tested with gamma corrected range limited
output and the compression can be done also after gamma correction but
I had to iterate some time to get it right because the gamma changes
the shape of the compression curve. When black and white tresholds
are used it will be even more complicated. In general the order of non
linear operations can't be reversed but this is about faking a certain
look anyway so it's the final result that counts. I tried it before
but without experience of the whole process the results weren't good.
Now I can find more economical way to make it work.


_____________
Kari Kivisalo


Post a reply to this message

From: Tek
Subject: Re: Photographic compression (50k)
Date: 10 Aug 2001 19:14:52
Message: <3b746aec@news.povray.org>
That looks so real! Great technique, I'll have to try it. :)

--
Tek
http://www.evilsuperbrain.com


Kari Kivisalo <kki### [at] pphtvfi> wrote in message
news:3B731A2A.4B783AE3@pp.htv.fi...
>
> Outputted from pov as 48 bit linear. Compressed in Photoshop
> using transfer curve (intensity only) based on a film response
> curve from Kodak site. It's a typical compression curve. Then
> gamma 2.2 corrected and converted to 24 bit.
>
> My tests with the Cornell box indicated that correct fade_distance
> for diffuse sources is same as source diameter. The spotlights
> use (90^2/falloff^2)*diameter as fade distance because of the
> directional nature of the source. I'm not sure if this is correct
> but it looks ok. Any lighting engineers here?
>
>
> _____________
> Kari Kivisalo


--------------------------------------------------------------------------------


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Photographic compression (50k)
Date: 10 Aug 2001 20:33:10
Message: <3B747DEF.D156076C@pp.htv.fi>
"Tony[B]" wrote:
> 
> You've got to be kidding! Wow!

It's no magic. The idea is to use realistic texture parameters
(diffuse, reflection, transmit) and light source intensities so
that when you want to put 60W and 200W light bulbs in a scene
you say: LightBulb(60) LightBulb(200). Then adjust a global scale
parameter so that nothing important isn't clipped. In the editor
compress the bright parts so that the important parts of the scene
become visible. It's basically just contrast adjustment so that
IRTC judges should be ok with that :)

_____________
Kari Kivisalo


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Photographic compression (50k)
Date: 11 Aug 2001 20:06:25
Message: <3B75C929.6F21A77F@pp.htv.fi>
ingo wrote:
>
> > All the data is non clipped. By scaling light source and ambient
> > source intensities I can make sure the scene fits in 0-1 range.
> 
> The "studio-situation" form a photography view point.

Actually no. The uniform scaling is done only to fit all the samples
in the 48 bit file, not to reduce contrast ratio. 48 bit file can store
a scene with 60 000:1 contrast ratio. 
 
_____________
Kari Kivisalo


Post a reply to this message

From: Andy Cocker
Subject: Re: Photographic compression (50k)
Date: 12 Aug 2001 20:40:09
Message: <3b7721e9@news.povray.org>
"Kari Kivisalo" <kki### [at] pphtvfi> wrote in message
news:3B731A2A.4B783AE3@pp.htv.fi...
>
> Outputted from pov as 48 bit linear. Compressed in Photoshop
> using transfer curve (intensity only) based on a film response
> curve from Kodak site. It's a typical compression curve. Then
> gamma 2.2 corrected and converted to 24 bit.
>
> My tests with the Cornell box indicated that correct fade_distance
> for diffuse sources is same as source diameter. The spotlights
> use (90^2/falloff^2)*diameter as fade distance because of the
> directional nature of the source. I'm not sure if this is correct
> but it looks ok. Any lighting engineers here?



At the risk of sounding dim, I don't understand what you are doing here.
This is just one of many of the more technical threads that I find are above
my head.

Are the two 'before' images you linked to really transformed into these
gorgeous images by post-processing? They look as though you have rendered
them again with radiosity. Is your process equivalent to both the
compression and expansion techniques used in audio production... compressing
the peaks whilst making the softer passages 'louder'?

I don't have Photoshop.. I have Paint Shop Pro. How would I go about
adopting your technique? Infact, could I impose upon you and ask you to
provide a sample scene/tutorial?

I have often wished for the ability to say Lightbulb(60) or equivalent, and
have the scene behave as much like the real world as posible, without the
tedious (and in my case 'blind') parameter changes. A fully featured .INC
would be great.

All the best,

Andy Cocker


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Photographic compression (50k)
Date: 13 Aug 2001 18:17:03
Message: <3B785287.36E72AE8@pp.htv.fi>
Andy Cocker wrote:
>
> Are the two 'before' images you linked to really transformed into these
> gorgeous images by post-processing?

Correct. That is the unmodified pov output, only 24bit because
that's jpg limitation.

> Is your process equivalent to both the
> compression and expansion techniques used in audio production...
> compressing  the peaks whilst making the softer passages 'louder'?

That's it. I just apply one transfer curve to the whole image.

> Infact, could I impose upon you and ask you to
> provide a sample scene/tutorial?

These were just tests to see if this can be done with povray. It seems
to work but as always there's a cost. Longer rendering time because
higher quality aa and maybe radiosity are required. I'm building a
more normal scene to test with textures and all and if that looks as
good as I hope then I will write a page about it. Currently it doesn't
seem to work with a more complex scene because there is still some
parameter in radiosity that's dependand on absolute scale of the scene :(

I think that currently Photoshop is the only editor that can apply
histogram and curve adjustments to 48 bit images while displaying
gamma corrected result in real time.

> I have often wished for the ability to say Lightbulb(60) or equivalent,
> and have the scene behave as much like the real world as posible,

Radiance can do this far better than pov and can even simulate how person
would see a scene. The compression is just a simple way to mimic how a
photograph of a scene might look like.

The problem with light sources is their radiation
pattern. Simple light bulbs and fluorcesent tubes pov can handle but
as soon as they are put inside a fixture with reflecting, diffusing
and translucent surfaces things get so complicated that it's just
better to guess how it would distribute the light and use spot_light(s)
for it. Indoor radiosity scenes are sensitive to the total energy
output from a light source so I'm trying to find way to relate
the spot_light parameters to the imaginary 100W bulb inside this
virtual spotlight. This would allow the scene builder to say:
This is a 100W light source and I'm going to use this spot_light(s)
to approximate it's radiation pattern. When there is only one light
source the strength can be chosen at will but when there are several
sources their relative strenghts are important.


_____________
Kari Kivisalo


Post a reply to this message

From: ingo
Subject: Re: Photographic compression (50k)
Date: 14 Aug 2001 04:24:21
Message: <Xns90FD69DB27F87seed7@povray.org>
in news:3B785287.36E72AE8@pp.htv.fi Kari Kivisalo wrote:

> The problem with light sources is their radiation
> pattern. Simple light bulbs and fluorcesent tubes pov can handle
> but as soon as they are put inside a fixture with reflecting,
> diffusing and translucent surfaces things get so complicated that
> it's just better to guess how it would distribute the light and use
> spot_light(s) for it.

Use a sphere with an image_map around the source, to simulate the 
radiation pattern. Maybe even generate the image_map from photometric 
files (IES LM_63), if something like that is possible.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Photographic compression (50k)
Date: 14 Aug 2001 07:28:51
Message: <3B790C1C.80584A0B@pp.htv.fi>
ingo wrote:
>
> Use a sphere with an image_map around the source, to simulate the
> radiation pattern. Maybe even generate the image_map from photometric
> files (IES LM_63), if something like that is possible.

I thought of that but I'm not trying to make a Radiance out of povray :)

And even though pov radiosity works with the Cornell box scene the minute
I tried to make an ordinary room there were some major errors in the rad
solution. The gurus haven't respondend yet in the "other" forum so I'm
assuming it's a feature. I have one earlier simple test scene where the
error is so big it took a while for me see it as an error. I was hoping
that particular scene was just extra tough but I guess not. As Beavis
would say: "Damn it! There is always someting."


_____________
Kari Kivisalo


Post a reply to this message

<<< Previous 6 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.