POV-Ray : Newsgroups : povray.advanced-users : Raising contrast inside POV-Ray? Server Time
28 Jul 2024 16:15:31 EDT (-0400)
  Raising contrast inside POV-Ray? (Message 6 to 15 of 15)  
<<< Previous 5 Messages Goto Initial 10 Messages
From: Christoph Hormann
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 03:05:47
Message: <431556cb$1@news.povray.org>
Tim Nikias wrote:
> 
> My main trouble lies within the radiosity itself, though smooth enough, I'd
> like darker shadows, but simply lowering brightness will also turn the
> bright areas darker.

raise light source brightness and adjust material properties accordingly 
and you will get higher contrast radiosity results.  A washed-out 
appearance is often a result of using unrealistically low lighting levels.

> Anyways, suggestions or techniques (using the current "standard" POV-Ray,
> not some patch-version) are welcome. :-)

:-)

Obviously you can do that with MegaPOV's post processing patch.  For 
simple brightness/contrast adjustments you can also use the tone mapping 
patch (see macro Brightness_Contrast() in tone_mapping.inc - much faster 
than with the post processing feature).

Note it is of course often more convenient to render to a plain, not 
adjusted image and do the post processing afterwards.

-- 
Christoph Hormann
http://www.tu-bs.de/~y0013390/


Post a reply to this message

From: Tim Nikias
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 05:02:37
Message: <4315722d@news.povray.org>
> POV-Ray 3.7 may include such a feature eventually.  But detils are still
to
> be determined.

Looking forward to it. :-)

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Tim Nikias
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 05:03:28
Message: <43157260$1@news.povray.org>
> Personally, after 5 years of using a gammavalue of 1 I now use 2.2
together
> with a brightness of 2.5.

Might be worth a shot, at least for a quick solution. Thanks for the tip.

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Tim Nikias
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 05:04:30
Message: <4315729e$1@news.povray.org>
>   Traditionally people have adjusted contrast as a post-processing step
> with a third-party image manipulation program.

Yeah, I know, but I like it if I can set an image in a window that it
doesn't require post-processing to look like I want it to. :-)

>   However, I have always wondered if it couldn't be possible to do it
> from within povray itself by adjustin assumed_gamma and the brightness
> of light sources...

That's what others suggested as well. I'll have to look into that.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Tim Nikias
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 05:05:02
Message: <431572be@news.povray.org>
> scenes/textures/pigments/transmitfx.pov ?

Hm. Precise answer. I'll have to find out if I does what I want. Thanks
though! :-)

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Tim Nikias
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 05:08:07
Message: <43157377$1@news.povray.org>
> raise light source brightness and adjust material properties accordingly
> and you will get higher contrast radiosity results.  A washed-out
> appearance is often a result of using unrealistically low lighting levels.

You mean like raise light_sources intensity (e.g. rgb*2) and lower the
values of the materials (like rgb*0.5)? The main light_source I'm using is
set to rgb 3, but maybe I have to raise it a little more and lower the
values of the other materials. Maybe lowering the diffuse-value would
suffice... I'll experiment. Thanks for the suggestions.

> Note it is of course often more convenient to render to a plain, not
> adjusted image and do the post processing afterwards.

Yeah. I had been thinking about using POV-Ray itself to script a small set
of macros which'll load an image and fiddle with the contrast and stuff
using functions and such. But I like a more direct solution better.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Rune
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 17:30:35
Message: <4316217b$1@news.povray.org>
Tim Nikias wrote:
>> scenes/textures/pigments/transmitfx.pov ?
>
> Hm. Precise answer. I'll have to find out if I does what I want.
> Thanks though! :-)

Sorry. transmitfx.pov demonstrates how for example a pigment with rgb 0.5 
and transmit 2.0 doubles the contrast of everything that's behind the 
surface. Using a small sphere around your camera with such a pigment will 
double the contrast of the entire image.

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Tim Nikias
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 18:01:43
Message: <431628c7$1@news.povray.org>
> Sorry.

No need. My remark about "precise answer" was honest, with POV-Ray, you
can't get any more precise than with a link to source. Especially not if the
source ships directly with POV-Ray itself! :-)

But that technique was exactly what I was looking for. I was dimly aware of
such a thing, but couldn't exactly come up with how it was done. But raising
lightsource-intensity and lowering pigment-values is another nice technique,
and, for my taste, "cleaner" as well. :-)

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Rune
Subject: Re: Raising contrast inside POV-Ray?
Date: 31 Aug 2005 19:13:53
Message: <431639b1$1@news.povray.org>
Tim Nikias wrote:
>> Sorry.
>
> No need. My remark about "precise answer" was honest

Ah. With a text-based medium it's sometimes a bit difficult to determine if 
something is meant ironic.

> But that technique was exactly what I was looking for. I was dimly
> aware of such a thing, but couldn't exactly come up with how it was
> done. But raising lightsource-intensity and lowering pigment-values
> is another nice technique, and, for my taste, "cleaner" as well. :-)

I agree about cleaner. If, however, you'd want a contrast high enough that 
the lowest set of dark colors in the image are clipped off (becoming 
completely black), then merely using lower pigment-values won't do it, 
unless you use negative components in the color, which probably doesn't 
count as "clean" either. :)

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Kenneth
Subject: Re: Raising contrast inside POV-Ray?
Date: 3 Oct 2005 01:40:01
Message: <web.4340c321d1f8c4a0cc7029a60@news.povray.org>
"Tim Nikias" <JUSTTHELOWERCASE:timISNOTnikias(at)gmx.netWARE> wrote:
> Some of you might have seen my current WIP, the image currently entitled
> "Windows". I make excessive use of radiosity in that image to get a soft,
> realistic lighting.
>
> Anyways, I've fiddled with some of the images in Paint Shop Pro and noticed
> that some higher contrast does a lot for the image. I'm a sucker for doing
> things right inside POV-Ray, so does anyone have ideas or techniques on how
> to raise the contrast inside POV-Ray?

This might sound like a very "simpleton" suggestion, and perhaps not what
you had
in mind, but from working in Photoshop, I've noticed that raising the
contrast of an image seems to increase the color SATURATION of all the
colors. This could be duplicated in POV, though not quickly, by actually
changing the   pigment {color rgb}   values of each and every OBJECT!!!  A
chore, I know.  In other words, if an object has rgb <1,.5,.5> as a reddish
color, then a more saturated color would be <1,.3,.3>.  Then, of course,
also lower the AMBIENT lighting of each object. The rendered scene might
then *appear* to be of higher contrast. Worth a try?


Post a reply to this message

<<< Previous 5 Messages Goto Initial 10 Messages

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