Download IRIS Performer™ Programmer`s Guide
Transcript
Description of Supported Formats vt vt vt vt 0.000000 0.000000 1.000000 1.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 #-- ‘usemtl’ means select the material definition defined #-- by the name MaterialName usemtl MaterialName #-- ‘usemap’ means select the texturing definition defined #-- by the name TextureName usemap TextureName #-- ‘f’ defines a face. This face has four vertices ordered #-- counter-clockwise from the upper left in both geometric #-- and texture coordinates. Each pair of numbers separated #-- by a slash indicates vertex and texture indices, #-- respectively, for a polygon vertex. f 1/1 2/2 3/3 4/4 pfdLoadFile() uses the function pfdLoadFile_obj() to load Wavefront OBJ files into IRIS Performer run-time data-structures. Silicon Graphics PHD Format The PHD format was created to describe the geometric polyhedron definitions derived mathematically by Andrew Hume and by the Kaleido program of Zvi Har’El. This format describes only the geometric shape of polyhedra; it provides no specification for color, texture, or appearance attributes such as specularity. The IRIS Performer sample data directories contain numerous polyhedra in the PHD format. The image in Figure 9-10 shows many of the polyhedron definitions laboriously computed by Andrew Hume. 295