Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a simple and useful pattern for creating edge effects and curvature based results like wear on edges and objects in contact with other surfaces.

Parameters

Num Samples

Controls the number of samples used to calculate curvature. More samples can reduce the noise at the cost of increased render time.

...

Carousel Image Slider
includepxrDome_intensity05.jpg, pxrDome_intensity10.jpg, pxrDome_intensity20.jpg
maxNumber3
dotsfalse
columns3
infinitefalse
sliderHeight240
arrowsfalse
labelsFiltermaxdistance
gutterSize2
titleIntensity
animatefalsecaptionstrue

Trace Set

You may use Trace Sets to include other objects from the rays being traced. Helpful when you need a large Max Distance but don't want other objects occluding the result. Note this is not an exclusion, it's inclusion of the specified set.

Sample Distribution

Possible values are are, in order, uniform and cosine (Lambertian).

Image AddedImage Added


 Description
UniformRays are not weighted in any particular direction.
CosineRays are weighted in the normal direction based on Cosine Spread parameter below.

...

...


Cosine Spread

Sample spread of rays when using cosine distribution. A value of 1.0 gives a perfect Lambertian distribution.

Carousel Image Slider
includepxrDome_intensity05.jpg, pxrDome_intensity10.jpg, pxrDome_intensity20.jpg
maxNumber3
dotsfalse
columns3
infinitefalse
sliderHeight190
arrowsfalse
labelsFiltercosinespread
gutterSize20
titleIntensity
animatefalse
captionstrue

Lower values shrink or "tighten" the effect along curves while larger amounts spread out the effect.

Bias

The bias will affect the falloff of the curvature and will be linear, decreasing with the distance from the shaded point. Bias can be used to take further samples into account more or less while nearby points have more weight.

  • The closer to 0.0, only points closest to the shading point will contribute.
  • With the default of 0.5 any points close to Max Distance will contribute less, and points close to the shaded point will contribute more. 
  • The closer to 1.0, the more all sampled points will contribute. At exactly 1.0 sampled points at all distances will contribute equally.

Carousel Image Slider
includepxrDome_intensity05.jpg, pxrDome_intensity10.jpg, pxrDome_intensity20.jpg
maxNumber3
dotsfalse
columns3
infinitefalse
sliderHeight240
arrowsfalse
labelsFilterbias
gutterSize2
titleIntensity
animatefalse

Convex Threshold

Increasing this parameter erodes the result, shrinking the visible effect.

Concave Threshold

Increasing this parameter erodes the result, shrinking the visible effect.

Output

Output Gain

A multiplier for the resulting curvature effect (areas without curvature are naturally unaffected)

Output Type

Set to "Concave", only concave curvature will be output. Set to "Convex", only convex curvature will be output. "Both" will show both convex and concave curvature.

Carousel Image Slider
includepxrDome_intensity05.jpg, pxrDome_intensity10.jpg, pxrDome_intensity20.jpg
maxNumber3
dotsfalse
columns3
infinitefalse
sliderHeight220
arrowsfalse
labelsFilteroutputType
gutterSize20
titleIntensity
animatefalse
captionstrue


Monochrome Output

The result is a simple white or greyscale value for both concave and convex results. Off outputs Convex as Red and Concave as Green

Image Added

Clamp Output

Values are clamped to 0-1 ranges by default. If you require an expanded range (perhaps with the gain control or to drive another parameter connection) you can disable this.