|
|
Image_maps using png images are gamma corrected, which is bad, because the
entire image of the scene is also gamma corrected, so the image_maps are
gamma corrected twice. Image_maps should never be gamma corrected. This was
discussed years ago IIRC, but I can't find the thread right now.
The scene below should illustrate the problem. When rendered as an animation
it places itself in its own image, and the gamma issue becomes obvious. Can
anyone confirm?
// save the code in a file "pnggamma.pov"
// command line settings:
// +kff4 +kc +fn
background {rgb 0.7}
#default {finish {ambient 1}}
plane {y, -5 pigment {rgb 0.5}}
#declare Frame = ceil(clock*4-0.5);
sphere {<-1.1,0,3>,0.5 pigment {red 0.7}}
#if (Frame>0)
box {0,1
#local Img =
concat("pnggamma",str(Frame,1,0),".png")
pigment{image_map{png Img}}
scale <2,1.5,1.5> translate <-0.5,-0.75,3>
}
#end
Rune
--
3D images and anims, include files, tutorials and more:
Rune's World: http://rsj.mobilixnet.dk (updated Feb 16)
POV-Ray Users: http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk
Post a reply to this message
|
|
|
|
in news:3c817af3@news.povray.org Rune wrote:
> Image_maps using png images are gamma corrected, which is bad,
> because the entire image of the scene is also gamma corrected, so the
> image_maps are gamma corrected twice. Image_maps should never be
> gamma corrected.
Shouldn't they always be corrected to gamma=1 ?
Ingo
Post a reply to this message
|
|
|
|
"ingo" wrote:
> Shouldn't they always be corrected to gamma=1 ?
That might be the issue. I'm no expert on the field, I just know that it
currently doesn't work the right way...
Rune
--
3D images and anims, include files, tutorials and more:
Rune's World: http://rsj.mobilixnet.dk (updated Feb 16)
POV-Ray Users: http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk
Post a reply to this message
|
|
|
|
Kari Kivisalo <ray### [at] engineercom> wrote in
news:3C8220B6.36773D3D@engineer.com:
> Rune wrote:
>> Image_maps should never be gamma corrected.
> This would really be the best situation. There are so many broken
> programs when it comes to png gamma.
I realize this is a probably feature request, but what might be best here
is to provide a means to manually specify the gamma of an image map (e.g.
image_map {... assumed_gamma X}). This would be exceptionally useful for
dealing with image formats which don't store gamma values and for using the
same image maps in scenes with different assumed_gamma values without
keeping copies of the same map at different gamma values.
This is something to keep in mind for 4.0, I think.
Post a reply to this message
|
|