Bookshelf Contents Previous Next Glossary Index Search

Creating Data Items

You will specify data items either literally or by defining and using variables. Literal data items are used once and then discarded. Some data types cannot be used literally (they must be assigned to variables).

Variables are defined in terms of literals, but can be referenced by name as many times as needed.

Declaring Variables

Variables are defined and named in the DEFINITION section of the SDL file.

Keep the following in mind when using variables:

Specifying Literals

A literal usage and a variable definition are similar.

Keep the following in mind when using literals:

Data Types

SDL groups data into 23 formal types. Click on the highlighted text in the brief descriptions below to see complete descriptions of the data types.

Array Data Type

A named group of data items (data items themselves do not have names). Arrays are created with a fixed size. Items in the array are numbered from 0. Arrays can contain items of any type (include other arrays). Arrays are often used to handle CVs.

Camera Data Type

Cameras are objects, similar to any piece of geometry: they are defined using a data type and then instanced as an object. This allows multiple cameras, saving of cameras, and so on.

This data type is equivalent to the old CAMERA section.

Curve Data Type

A series of control vertices (CVs) for a spline curve or surface. Patches, faces, and motion curves are defined in terms of spline curves. Curves exist in 3D space (technically, homogenous 4-space).

CV Data Type

A control vertex (CV) of a spline curve or surface. Curves are defined in terms of CVs. CVs exist in 3D space (technically, homogenous 4-space).

Face Data Type

A planar object bounded by a curve, possibly with holes. Faces are a much more efficient way of representing a planar area than a patch surface.

Filename Data Type

Can be used in place of literal filenames.

Light Data Type

Various types of light source.

Motion_curve Data Type

A curve used for animation, usually as a path to follow.

Parameter_curve Data Type

Similar to a normal curve, used for animate curves. Parameter curves exist in 2D space and carry slope (tangent) information used for animation.

Parameter_vertex Data Type

Similar to a CV, used for animate curves. Parameter vertices exist in 2D space and carry slope (tangent) information used for animation.

Patch Data Type

A spline surface defined by bounding CVs.

Polyset Data Type

A polygonal mesh. You can specify a polyset literally or as a named variable.

Scalar Data Type

A single numeric value. Scalars are stored and operated on as floating point, but will be automatically converted when assigned to items that require an integer.

Shader Data Type

A shader description.

Texture Data Type

Amathematical function used to create textures for shaders.

Transformation Data Type

A set of matrices that relates the position, orientation and size of an object to the world coordinate system. This datatype can be stored and assigned, but not examined or operated on (it is an "opaque" data type).

Trim_vertex Data Type

Similar to a CV, used for trim curves. Trim vertices include extra information about their relationship to the surface being trimmed.

Triple Data Type

An ordered triplet of numeric values. Very useful for storing 3D coordinates, vectors, and RGB values.

Trim face Data Type

An ordered list of trim boundaries, defining a part of a NURBS surface to keep or discard in a trim operation.

Trim boundary Data Type

An ordered list of trim edges, circling an area of a trimmed patch in parametric space.

Trim edge Data Type

An ordered list of trim B-splines that describe an edge of a trim region on a NURBS surface.

Trim b-spline Data Type

A monotonic ordered list of trim curves, defining a 2D spline on a patch in parametric space.

Trim curve vertex Data Type

An ordered list of 4 numbers representing the U, V, and T coordinates of a spline curve.



Bookshelf Contents Previous Next Glossary Index Search

[email protected]
Copyright © 1998, Alias|Wavefront, a division of Silicon Graphics Limited. All rights reserved.