Defines aspherical object that can be used by the RENDER function.
Color(*)=1.0
) For more information, see Defining Color and Shading in Chapter 7 of the PV-WAVE User's Guide.Decal A 2D array of bytes whose elements correspond to indices into the arrays of material properties. For more information, see Decals in Chapter 7 of the PV-WAVE User's Guide.
Kamb A 256-element double-precision floating-point vector containing the ambient (flat shaded) coefficients. (Default: Kamb(*)=0.0
) For more information, see Ambient Component in Chapter 7 of the PV-WAVE User's Guide.
Kdiff A 256-element double-precision floating-point vector containing the diffuse reflectance coefficients. (Default: Kdiff(*)=1.0
) For more information, see Diffuse Component in Chapter 7 of the PV-WAVE User's Guide.
Ktran A 256-element double-precision floating-point vector containing the specular transmission coefficients.(Default: Ktran(*)=0.0
) For more information, see Transmission Component in Chapter 7 of the PV-WAVE User's Guide.
Transform A 4-by-4 double-precision floating-point array containing the local transformation matrix whose default is the identity matrix. For more information, see Setting Object and View Transformations in Chapter 7 of the PV-WAVE User's Guide.
You can alter its diameter and orientation with the Transform keyword.
ds = 6 checks = BYTARR(ds, ds) checks(*) = 255 FOR x=0, ds - 1 DO $ FOR y=0, ds - 1 DO $ IF ((x mod 2) EQ (y mod 2)) THEN $ checks(x, y) = 128
two = FLTARR(256) two(128) = 0.5 & two(255) = 1.0
s = SPHERE(Decal=checks, Color=two) TV, RENDER(s)
For more information, see Ray-tracing in Chapter 7 of the PV-WAVE User's Guide.