POV-Ray : Newsgroups : povray.unofficial.patches : Feature idea : rgb_adjust : Re: Feature idea : rgb_adjust Server Time
1 Sep 2024 22:17:25 EDT (-0400)
  Re: Feature idea : rgb_adjust  
From: Mick Hazelgrove
Date: 29 Sep 2000 14:08:16
Message: <39d4da90@news.povray.org>
I think this would be an excellent addition to POV. I often need random or
slightly changing values for objects and colors and it ain't always easy to
do.

Mick

"Fabien Mosen" <fab### [at] skynetbe> wrote in message
news:39D4BF73.3A275524@skynet.be...
> Here's an idea for a (simple, I think) texturing feature.  It would
> give the ability to adjust resulting rgb values where they are
> produced (essentially in pigments and textures).  Example :
>
>  I need to repeat several wooden planks, and want to change
> slightly their brightness, randomly.  Usually, I would do
> that using ambient, but it is unpractical, and has annoying
> consequences (if I use radiosity, etc..).  My idea is to do it
> that way :
>
>   pigment {wood color_map {WoodMap}
>            rgb_adjust <r,g,b>*(1+rand(r1)*.1)
>           }
>
> Other formulaes could be used to adjust contrast, hue, apply
> some color filter... without messing with other settings which
> are not designed to do that.  Much easier than messing with
> the color_map, especially if it was generated externally.
> And it would also work with any complex texture :
>
>  texture {VeryComplexTexture scale.. rotate .. rgb_adjust <r*.5,g,b>}
>
> ...which would dim the Red channel at each point of the texture.
>
> Fabien.


Post a reply to this message

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