Barnacles

Dependencies Shaders RenderMan Houdini Apprentice
(embedded shaders)
Movies
(Sorenson 3)
shader.rules
sl2vex.h
rmannotes.sl
rn.h
xforms.h
shapes.h
make.barn
barnacle.h
barndisp.sl
barncolor.sl
barnacle.rib
barnflat.rib
barndist.hipnc
barnflat.hipnc
Ridges [692K]
Distribution [536K]

See also building barnacles


Description:

Covers a surface with barnacles. The shaders were originally RenderMan, but can be compiled to VEX without change (due to sl2vex.h). The shaders have been tested with 3Delight, BMRT, and Houdini Apprentice.

 * ---- common parameters ----------------
 * ncones: number of bulges in barnacle.
 * sfreq, tfreq: number of barnacles in s and t
 * sparse: control sparseness of barnacles across surface. The value is
 *    interpreted as follows:
 *      0 - appear all over surface
 *      0.5 - appear with density determined by the density function
 *      1 - appear nowhere
 *    values in between are interpolated.
 * variation: controls the frequency of a simple perlin noise function
 *    that controls the density of the barnacles.
 * seed: controls random attributes
 *
 * ---- surface parameters ----------------
 * basecolor: color of background "wood-like" shader (used instead of Cs)
 * Ka: ambient value
 *
 * ---- displacement parameters ----------
 * max_height: height of barnacles. Adjusted automatically based on frequency.
 * spikiness: length of spikes on top ridge of barnacle

   

Barnacle Shape

max_height = 1
ncones = 6
spikiness = 0.5
seed = 15
max_height = 1
ncones = 12
spikiness = 0.5
seed = 15
max_height = 1
ncones = 20
spikiness = 0.5
seed = 15
max_height = 1
ncones = 12
spikiness = 5
seed = 15
max_height = 2
ncones = 12
spikiness = 0.5
seed = 15
max_height = 2
ncones = 12
spikiness = 0.5
seed = 42

Barnacle Distribution

sparse = 0
variation = 4
seed = 15
sparse = 0.25
variation = 4
seed = 15
sparse = 0.5
variation = 4
seed = 15
sparse = 0.5
variation = 10
seed = 15
sparse = 0.5
variation = 10
seed = 42