POV-Ray : Newsgroups : povray.general : Manipulating rendered pixels Server Time
25 Dec 2024 09:00:29 EST (-0500)
  Manipulating rendered pixels (Message 1 to 4 of 4)  
From: FlyerX
Subject: Manipulating rendered pixels
Date: 27 Mar 2014 20:41:29
Message: <5334c539$1@news.povray.org>
Hello,

I would like to know if there is a way of reading the resulting pixel 
value in the rendered image as it is being rendered and if it is 
possible to overwrite it with another value. Possibly based on the 
original color.

This is for testing lighting on a scene. If the color at the pixel is 
above a certain value it should be marked with another color and would 
let me know that the image is being saturated with too much light. Not a 
scientifically rigorous method but it works well for most cases.

I can do this manually by just rendering, in EXR or HDR format, the 
scene using only a simple diffuse white material for all. Then, after 
rendering, load the render into a high-dynamic image viewer or editor to 
see if there are any places on the scene that are too bright.

I already looked at ImageMagick but it just overkill for what I need.



FlyerX


Post a reply to this message

From: Alain
Subject: Re: Manipulating rendered pixels
Date: 27 Mar 2014 22:41:55
Message: <5334e173@news.povray.org>

> Hello,
>
> I would like to know if there is a way of reading the resulting pixel
> value in the rendered image as it is being rendered and if it is
> possible to overwrite it with another value. Possibly based on the
> original color.
>
> This is for testing lighting on a scene. If the color at the pixel is
> above a certain value it should be marked with another color and would
> let me know that the image is being saturated with too much light. Not a
> scientifically rigorous method but it works well for most cases.
>
> I can do this manually by just rendering, in EXR or HDR format, the
> scene using only a simple diffuse white material for all. Then, after
> rendering, load the render into a high-dynamic image viewer or editor to
> see if there are any places on the scene that are too bright.
>
> I already looked at ImageMagick but it just overkill for what I need.
>
>
>
> FlyerX

Reading a rendered pixel DURING render? Not possible without patching 
and recompiling.

I can propose some alternatives:
Render the scene with a lower light level, say, dividing all 
light_source intensity by 10 or some other value.

Have some mirror with a reflection value of 1/8, 1/32 or less showing 
the areas where you suspect are affected by clipping.



Alain


Post a reply to this message

From: FlyerX
Subject: Re: Manipulating rendered pixels
Date: 29 Mar 2014 06:06:59
Message: <53369b43$1@news.povray.org>
On 3/27/2014 9:43 PM, Alain wrote:

>> Hello,
>>
>> I would like to know if there is a way of reading the resulting pixel
>> value in the rendered image as it is being rendered and if it is
>> possible to overwrite it with another value. Possibly based on the
>> original color.
>>
>> This is for testing lighting on a scene. If the color at the pixel is
>> above a certain value it should be marked with another color and would
>> let me know that the image is being saturated with too much light. Not a
>> scientifically rigorous method but it works well for most cases.
>>
>> I can do this manually by just rendering, in EXR or HDR format, the
>> scene using only a simple diffuse white material for all. Then, after
>> rendering, load the render into a high-dynamic image viewer or editor to
>> see if there are any places on the scene that are too bright.
>>
>> I already looked at ImageMagick but it just overkill for what I need.
>>
>>
>>
>> FlyerX
>
> Reading a rendered pixel DURING render? Not possible without patching
> and recompiling.
>
> I can propose some alternatives:
> Render the scene with a lower light level, say, dividing all
> light_source intensity by 10 or some other value.
>
> Have some mirror with a reflection value of 1/8, 1/32 or less showing
> the areas where you suspect are affected by clipping.
>
>
>
> Alain

Thanks for the tip. I think I found an easy way to get an idea of 
saturated colors: rendering in HDR/EXR format with Display_Gamma=0.01. 
Any colors above 1 will still show.

FlyerX


Post a reply to this message

From: clipka
Subject: Re: Manipulating rendered pixels
Date: 26 May 2014 13:32:59
Message: <53837acb$1@news.povray.org>
Am 29.03.2014 11:06, schrieb FlyerX:

> Thanks for the tip. I think I found an easy way to get an idea of
> saturated colors: rendering in HDR/EXR format with Display_Gamma=0.01.
> Any colors above 1 will still show.

Holy cow, here's some smart thinking!


Post a reply to this message

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