POV-Ray : Newsgroups : povray.binaries.images : Bad coloring skills... : Re: Bad coloring skills... Server Time
6 Aug 2024 23:21:07 EDT (-0400)
  Re: Bad coloring skills...  
From: Alain
Date: 12 Aug 2006 10:57:04
Message: <44ddec40$1@news.povray.org>
RusHHouR nous apporta ses lumieres en ce 11/08/2006 12:04:
> ....to say the least. :(
> 
> Please, can someone advice me in finding the proper setting for this image.
> The content of the glass should be whisky.... But I just cant get the color
> right, or the proper "shine-thru". :/
> 
> And, besides, my pictures always have like a dull filter. *boo-hoo*
> Any hints on what one should remember to avoid this?
> 
> This is the setting for the glass. Yep, it's the one from the documentation
> atm:
> 
> -------------------
> 
> // A simple water glass made with a difference:
> #declare MyGlass=
> difference
> { cone { <0,0,0>,1,<0,5,0>,1.2 }
>   cone { <0,.1,0>,.9,<0,5.1,0>,1.1 }
>   material { M_Glass3 }
> }
> 
> 
> 
> #declare MyGlassWithWater=
> union
> { object { MyGlass }
>   intersection
>   { cone { <0,.1,0>,.9,<0,5.1,0>,1.1 }
>     plane { y,2 }
>     scale .999
> 
>     pigment { color rgbft <0.3647,0.2862,0.0156,0.5,0.5> }
>     normal {ripples 0.5 scale <0.25,0.5,0.25> }
>   //  finish {Phong_Glossy}
> 
>   }
> }
> 
> 
> object {MyGlassWithWater scale <5,2,5> translate <-25,-5.4,9> }
> 
> -----------
> 
> 
> ------------------------------------------------------------------------
> 
Your "wisky" is only coloured on it's surface while real wisky is coloured all 
the way trough, but not "on" it's surface.
First, make an empty glass.
Now, model it content, make a very little smaller to prevent coincident surfaces.
Give it texture{pigment{rgbt 0.95}finish{reflection{0.1,0.9 fresnel}ambient 0 
diffuse 0.1}}
Give it an interior: interior{ior 0.32 dispersion 0.02 
fade_color<0.3647,0.2862,0.0156> fade_distance 0.4}// I used your colour
It will give you a content that is almost completely transparent, experiment 
with the pigment to fine tune it. A pigment on the surface of a transparent 
object give a bubble like effect with no feeling of substance.
Wiskey ior is a little lower than that of water.
The key is fade_color and fade_distance. This give you a better feel of 
substance, the final colour is dependent on how long you travel into the 
substance. Adjust fade_distance as needed if it's to dark or light.

-- 
Alain
-------------------------------------------------
At the feast of ego everyone leaves hungry.
	Bentley's House of Coffee and Tea, Tucson, AZ


Post a reply to this message

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