Navigation: Scripting Reference Manual > Functions & Subroutines > ScatterEval

 

ScatterEval

 

Contact Us: fredsupport@photonengr.com

 

Description

Returns the BSDF value of a specified scatter model for the given incident/specular and scatter directions.  This command MUST be proceeded by the ScatterPrepareForEval command in order to prepare FRED for the evaluation step.  The table below shows the parameters that are used for each scatter model type.  Unused parameters can be set to 0.  Note that the ScatterEval function does not take a wavelength value as its argument.  Evaluation of the scatter model will be performed at the default wavelength defined in your preferences.

 

Scatter Model

Inc

Spec

Scat

ABG

 

ü

ü

Black Paint

 

ü

ü

Diffuse Binomial

 

ü

ü

Diffuse Polynomial

 

ü

ü

Harvey-Shack

 

ü

ü

Extended Harvey-Shack

 

ü

ü

K-Correlation

ü

 

ü

Lambertian

 

 

ü

Mie

ü

ü

ü

Phong

 

ü

ü

Scripted

ü

ü

ü

Extended-Scripted

ü

ü

ü

Tabulated BSDF

 

ü

ü

Tabulated PSD

ü

 

ü

 

 

Syntax

sval = ScatterEval ( id, ainc, binc, cinc, aspec, bspec, cspec, ascat, bscat, cscat )

 

Parameters

sval (Double)

BSDF value for the specified model at the given specular and scatter directions.

 

id As Long

Node number or identifier of scatter model.

 

ainc, binc, cinc As Double

The incident ray direction vector. This vector need not be normalized.

 

aspec, bspec, cspec As Double

The specular ray direction vector. This vector need not be normalized.

 

ascat, bscat, cscat As Double

The scattered ray direction vector. This vector need not be normalized.

 

 

 

See Also

ScatterPrepareForEval

AddMieScatter

AddMieScatterSample

GetMieScatter

GetMieScatterCoefficients

GetMieScatSurfCoefficients

GetMieScatterSampleCount

GetMieScatterIthSample

GetMieScatterPhaseFunction

InitMieScatter

MieScatterIntensity

SetMieScatter

SetMieScatSurfCoefficients

SetMieScatterIthSample

T_MIESCATTER

 

 

 

 

 

 

Copyright © Photon Engineering, LLC