POV-Ray : Newsgroups : povray.binaries.images : regarding wax experiment : Re: regarding wax experiment Server Time
7 Nov 2024 02:27:02 EST (-0500)
  Re: regarding wax experiment  
From: omniverse
Date: 18 Dec 2016 15:55:00
Message: <web.5856f789e6b304bb9c5d6c810@news.povray.org>
"omniverse" <omn### [at] charternet> wrote:
> [GDS|Entropy] <gdsHYPHENentropyAThotmaolDOTcom> wrote:
> > The lower set of wax, were it slightly blue, would most closely resemble
> > silica aerogel to my eye.
> >
> > Very nice either way, what were the textures used for these if you don't
> > mind my asking?
>
> Can't answer till late tonight I'm away from home.  The media is thick anyway,
> but what makes them look opaque mostly seems to be the refraction.

Sorry, slipped my mind. I had tried all the other media scattering types, some
multiplied by 3 not just 2, but deleted as I changed them. Here it is:

/* testing for correct wax SSLT properties */
//cmd:-kfi1 -kff50 -sf8 -ef8 +am2 +a0.2 +fj

#version 3.7;

#declare SSLT=no;

#declare MM=25.4;//*clock;//4;  /* mm_per_unit */
#declare ST=10;//8+12*clock;//1.5; /* translucency */

global_settings{assumed_gamma 1.0
 ambient_light 1
 radiosity {
  #if(SSLT=yes)
  subsurface on
  #end
  media on
 }
 #if(SSLT=yes)
 subsurface{
  samples 500,50
 }
 #end
 mm_per_unit MM}

light_source{-z*99,1 rotate <60,-15,0>}
/*
light_source{-z*9,<0.75,0.9,1>
 spotlight point_at 0 radius 6 falloff 10
 rotate 90*y}
*/
camera{location -z*9 look_at -y/2 angle 50
 rotate <30,30,0>}

sphere{0,1 hollow pigment{
 uv_mapping checker rgb 0 rgb 1 scale 0.05}
 //function{abs(y)} // room
 //color_map{[0 rgb 0][1 rgb 1]} scale 2 translate -y}
 scale 111}

box{-1,1 hollow scale <2,0.5,1> translate y*0.511
 // upper wax block
 pigment{rgbf 0.99} finish{brilliance 2
 diffuse albedo 0.8,0.2
 specular 0.1 roughness 0.1
 //subsurface{translucency ST}
 }
 interior{ior 1.445
  media{emission 0 absorption 0
   scattering{5,<1,1,1>*2 eccentricity 0}
   density {rgb<1,1,1>*2}
  }
 }
 }

box{-1,1 hollow off scale <1.95,0.01,0.95>
 // foil sheet between wax blocks
 pigment{rgb 0.1} finish{diffuse 0.1
 specular 0.9 roughness 0.01
 reflection{0.5}
 }}

box{-1,1 hollow scale <2,0.5,1> translate -y*0.511
 // lower wax block
 pigment{rgbf 0.99} finish{brilliance 2
 diffuse albedo 0.8,0.2
 specular 0.1 roughness 0.1
 //subsurface{translucency ST}
 }
 interior{ior 1.445
  media{emission 0 absorption 0
   scattering{5,<1,1,1>*2 eccentricity 0.2}
   density {rgb<1,1,1>*2}
  }
 }
 }

text{ttf "times", concat(str(MM,-2,1)," mm per unit"),0.1,0
 pigment {rgb <0.4,0.8,1>}
 scale <0.75,0.75,0.75>
 rotate <30,30,0>
 translate <-2.25,-2.5,-1>
}

#if(SSLT=yes)
text{ttf "times", concat(str(ST,-2,1)," translucency"),0.1,0
 no_shadow
 pigment {rgb <1,0.4,0.2>}
 scale <0.5,0.5,0.5>
 rotate <30,30,0>
 translate <-3,2.75,-1>
}
#else
text{ttf "times","scattering media",0.1,0
 no_shadow
 pigment {rgb <1,0.4,0.2>}
 scale <0.5,0.5,0.5>
 rotate <30,30,0>
 translate <-3,2.75,-1>
}
#end


Post a reply to this message

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