|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>
> 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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks for the hint!
--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Tim Nikias wrote:
>
> Thanks for the hint!
Let us know if it works :)
_____________
Kari Kivisalo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |