S3d Format: There are two types of s3d commands you need to know: material commands and polygon commands. Also note that any line starting with '#' is a comment. Material Commands: There are three material commands. One sets the diffuse term (d), another the specular (s), and the third the phong coefficient (p). Each is a one letter command followed by 3 floats. The three floats are RGB triples for the diffuse and specular commands. For the phong coefficient, all three values should be set to the phong coefficient (ie, they should be equal). Example: d .8 .3 .3 s .5 .5 .5 g 9 9 9 Polygon commands: A polygon has a start and end command. In between is a list of vertices with optional normals. Each command has three arguments. For the begin polygon command (P), the first argument is the number of vertices and the other two should be zero. For the end polygon command (E), all three arguments should be zero. Both the normal (n) and the vertex (v) have x,y,z as their arguments. The normal should precede the vertex. The polygons should be planar and obey the right hand rule. Example: P 3 0 0 n 0 0 1 v 0 0 0 n 0 0 1 v 1 0 0 n 0 0 1 v 0 1 0 E 0 0 0 For a complete specification of s3d, see the file http://www.student.cs.uwaterloo.ca/~cs779/Documentation/a3d.txt (a3d was the old name for s3d). Note one difference between the description there are what you should use: the first argument of the "start" commands (e.g., 'P') should be as described above (ie, should state the number of vertices) rather than be zero.