![]() |
![]()
| ![]() |
![]()
NAMEObject types used by the Raster3D package These are the object descriptor types, and the required parameters, recognized by the render program and other components of the Raster3D package. Object type 1 - trianglex1, y1, z1, x2, y2, z2, x3, y3, z3, red, green, blue; Object type 2 - spherex, y, z, radius, red, green, blue; Object type 3 - cylinder with round endsx1, y1, z1, R1, x2, y2, z2, R2, red, green, blue.
Object type 4 - not usedObject type 5 - cylinder with flat endsx1, y1, z1, R1, x2, y2, z2, R2, red, green, blue.
Object type 6 - planex1, y1, z1, x2, y2, z2, x3, y3, z3, red, green, blue;
Object type 7 - Vertex normalsExplicit vertex normals for preceding triangle object. This object must directly follow the triangle object, and uses the same format. Object type 8 - Material properties.These values override the specification of lighting and specular
highlighting in the header records, allowing some objects to have different
surface properties from the rest. The specified values will apply to all
subsequent objects until an object of type 9 is encountered. The parameters
are read as free format floating point numbers from the next line of the
input stream:
Object type 9 - End_materialTerminates application of all previously defined special material properties (object type 8) or isolation from TMAT transformation (object type 15). Object types 10,11,12 - Label descriptorsThese object types are used as label descriptors. The current version of render ignores them unless the -labels option is selected on the command line.
Object type 13 - Glow light source.This is a colored, non-shadowing, light source with finite [x y z]
coordinates and a limited range of illumination. Control parameters are read
in free format from a single line of input following the line specifying the
object type.
Object type 14 - Quadric surfacex, y, z, limiting_radius, red, green, blue, A, B, C, D, E, F, G, H, I, J Quadric surfaces include spheres, cones, ellipsoids, paraboloids, and hyperboloids. The motivation for this code was to allow rendering thermal ellipsoids for atoms, so the other shapes have not been extensively tested. A quadric surface is described by 10 parameters (A...J). Although these parameters are sufficient to describe a quadric surface located anywhere, for efficiency during rendering it is also useful to know the center and a bounding sphere. So by convention we require that (A...J) describe a surface centered at the origin, and add additional parameters x, y, z to add a translation component. Therefore a QUADRIC descriptor to render has the 17 parameters listed above. The surface is the set of points for which Q(x,y,z) = 0 where
Points further from the origin (prior to translation!) than the limiting radius are not rendered. Object type 15 - TMAT IsolationObjects following this descriptor are interpreted as being in an absolute coordinate system centered at the origin and having unit extent in X, Y, and Z. If the image is rectangular, coordinates run from -0.5 to +0.5 along both X and Y. If the image is rectangular, coordinates run from -0.5 to +0.5 along the shorter dimension. The rotation and translation described by the TMAT matrix is not applied. This isolation from TMAT applies to subsequent objects until an object of type 9 is encountered. Object type 16 - Global propertyObject type 16 is always followed by a single record that affects the rendering of the entire scene. Currently the options are FOG, FRONTCLIP, and BACKCLIP. There are also options ROTATION and TRANSLATION that affect only objects following their appearance in the input stream. Object type 17 - Vertex coloursExplicit vertex colours for preceding triangle or cylinder object.
Object type 18 - Vertex transparencyExplicit transparency at vertices of preceding object. All three
values are required, though only the first two are used for cylinders, and
only the first one for spheres.
Object type 19 - TMAT IsolationSimilar to object type 15, except the the x and y scales are the same only in the case of a square image. Both the x and y axes run from -0.5 to +0.5 regardless of the aspect ratio of the rendered image. SEE ALSO PostScript and HTML documentation
|