POV-Ray : Newsgroups : povray.binaries.scene-files : Subsurface Scattering Macro Server Time
10 May 2024 08:18:48 EDT (-0400)
  Subsurface Scattering Macro (Message 1 to 3 of 3)  
From: Samuel Benge
Subject: Subsurface Scattering Macro
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)

From:  Light Beam 
Subject: Re: Subsurface Scattering Macro
Date: 26 Nov 2003 19:56:58
Message: <3fc54bda$1@news.povray.org>
Thank you ! Escellent ! but...
Everythings always green ?


Post a reply to this message

From: Samuel Benge
Subject: Re: Subsurface Scattering Macro
Date: 26 Nov 2003 23:40:51
Message: <3FC58051.7060206@hotmail.com>
Sorry, I didn't mention how to change that. In sss_example.pov you will 
find a line that reads like this:

finish{ambient<0 1 .25> diffuse 0}

Just change the ambient's rgb values to whatever you wish.

_Light_Beam_ wrote:

> Thank you ! Escellent ! but...
> Everythings always green ?
> 
> 
> 


-- 
Samuel Benge

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


Post a reply to this message

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