POV-Ray : Newsgroups : povray.advanced-users : RGB Conversion Server Time
1 Nov 2024 13:21:39 EDT (-0400)
  RGB Conversion (Message 1 to 8 of 8)  
From: Tim Nikias
Subject: RGB Conversion
Date: 3 Feb 2002 17:25:11
Message: <3C5DB8B3.7FCD996E@gmx.de>
I don't know if this is the right place to ask, but I guess the
question is for the advanced, so this might be as correct
as any other place.

I am having problems creating a realistic color for a
wood-texture. I can't achieve the bright, yellow-orange
look exactly enough, and I'm the kind a guy who tends to
avoid the "copy others work - paste into mine" method.

So I tried to capture the rgb from an image using a
paint programm, but I also get things like hue,
saturation etc.
Is there a way to actually convert all that to a
single rgb, or do have to adjust finish{} as well?

And, can somebody tell me how to convert most
of the color information into rgb?

Thanks in advance!

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html


Post a reply to this message

From: Rune
Subject: Re: RGB Conversion
Date: 3 Feb 2002 18:51:54
Message: <3c5dcd1a@news.povray.org>
RGB (red, green, blue) is all there is to a color in computer context. Many
programs offer alternative ways to specify colors such as HSL (hue,
saturation, lightness), but that's not additional data, it's just the same
data shown with some different numbers. RGB is the direct way.

Many of the controls in the finish block are just some kind of multipliers
for the pigment color. A sphere with pigment {rgb 1.0} and finish {ambient
0.1 diffuse 0.6} is identical to a sphere with pigment {rgb 0.5} and finish
{ambient 0.2 diffuse 1.2}.

If you prefer to specify colors as HSL instead of RGB you should have a look
at colors.inc in the POV-Ray 3.5 distribution. It contain color conversion
macros to convert between those (and another one I don't remember right
now).

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated Jan 20)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

From: Warp
Subject: Re: RGB Conversion
Date: 3 Feb 2002 19:52:07
Message: <3c5ddb37@news.povray.org>
As Rune said, the HSL information is just an alternative format, not
an additional information.

  You are most probably wondering why the colors you took from the image
manipulation program look different when used in povray. The reason is
the assumed gamma used by povray.
  Try: global_settings { assumed_gamma 1 }


-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Tim Nikias
Subject: Re: RGB Conversion
Date: 4 Feb 2002 13:05:09
Message: <3C5ECD41.C92B1E1B@gmx.de>
Thanks, I'll have a look into those...


--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html


Post a reply to this message

From: Tim Nikias
Subject: Re: RGB Conversion
Date: 4 Feb 2002 13:06:07
Message: <3C5ECD7E.ED8F3F01@gmx.de>
>
>   You are most probably wondering why the colors you took from the image
> manipulation program look different when used in povray. The reason is
> the assumed gamma used by povray.
>   Try: global_settings { assumed_gamma 1 }
>

I always use that in the global-settings, so that can't be it. I'll have to
experiment
with lighting, finishes and rgb a bit, I guess. Thanks nontheless!

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html


Post a reply to this message

From: Kari Kivisalo
Subject: Re: RGB Conversion
Date: 4 Feb 2002 14:28:38
Message: <3C5EE123.CEE3C819@engineer.com>
Tim Nikias wrote:

> >   Try: global_settings { assumed_gamma 1 }
> >
> 
> I always use that in the global-settings, so that can't be it.

If you sample rgb color in a paint program try using it as
rgb Color^2.2 in the scene.


_____________
Kari Kivisalo


Post a reply to this message

From: Tim Nikias
Subject: Re: RGB Conversion
Date: 4 Feb 2002 15:25:35
Message: <3C5EEE2D.29FBE468@gmx.de>
Thanks for the hint!

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html


Post a reply to this message

From: Kari Kivisalo
Subject: Re: RGB Conversion
Date: 4 Feb 2002 15:30:00
Message: <3C5EEF87.D0BDD686@engineer.com>
Tim Nikias wrote:
> 
> Thanks for the hint!

Let us know if it works :)

 
_____________
Kari Kivisalo


Post a reply to this message

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