POV-Ray : Newsgroups : povray.binaries.scene-files : Subsurface Scattering Macro : Subsurface Scattering Macro Server Time
1 Sep 2024 22:18:56 EDT (-0400)
  Subsurface Scattering Macro  
From: Samuel Benge
Date: 26 Nov 2003 18:34:22
Message: <3FC5387A.5080705@hotmail.com>
Here it is. You will need to download both files. Just include 
sss_macro.inc into your POV file.

Look at sss_example.pov to see everything you need to know to get 
started. You have to declare the object which will receive sss.

The macro is called sss_pattern and takes six arguments. These are 
commented on in sss_example.pov. You can add additional sss effects from 
other light sources by making new entries in the average pattern's 
color_map which comply with existing light_sources. Beware, however. 
Things *can* get slow with higher sss settings.

Hope you enjoy using this code. Happy raytracing!

-- 
Samuel Benge

stb### [at] hotmailcom
See my website@: http://www.goldrush.com/~abenge/Top/index.html


Post a reply to this message


Attachments:
Download 'sss_example.pov.txt' (2 KB) Download 'sss_macro.inc.txt' (2 KB)

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