POV-Ray : Newsgroups : povray.binaries.images : SSLT future : SSLT future Server Time
2 Nov 2024 08:23:39 EDT (-0400)
  SSLT future  
From: clipka
Date: 20 Feb 2011 12:35:35
Message: <4d6150e7@news.povray.org>
A glimpse into the future of POV-Ray's Subsurface Light Transport; the 
left bead uses a classic texture; the others use SSLT textures with 
increasing translucency; material definition syntax is as follows:

     texture {
       pigment {
         bozo
         color_map {
           [0.0 color rgb <1.00,0.05,0.05>]
           [0.4 color rgb <1.00,0.80,0.05>]
           [0.7 color rgb <1.00,1.00,1.00>]
           [1.0 color rgb <0.05,0.80,1.00>]
         }
         scale <0.3,1,0.3>
       }
       finish {
         diffuse 0.6
         ambient 0
         specular 1.0 roughness 0.001
         reflection { 1.0 fresnel }
         conserve_energy
         subsurface { translucency Trans }
       }
     }
     interior { ior 1.5 }

where Trans is either a float or an RGB vector.

Note how the effective color is determined by the pigment (except for 
unusually "low density" materials, where some side effects kick in); 
also note the addition of transparency where the object's "density" is 
particularly low compared to its size.

I also threw out some yet undiscovered bugs.

Please don't get too excited yet though: The changes will not make it 
into 3.7.0; I expect to rush out a patch though as soon as a 3.7.0 
version is released with a non-beta license.


Post a reply to this message


Attachments:
Download 'translucency_test.png' (251 KB)

Preview of image 'translucency_test.png'
translucency_test.png


 

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