GsDOBJ2Object structure definition used by the GsCOORDINATE2 3D object handler | |||||||||
Members
ExplanationGsDOBJ2 structures can be used to manipulate 3D models.Each object in a 3D model has an associated GsDOBJ2 structure. The GsDOBJ2 structure can be linked to TMD file model data using GsLinkObject4() and can be registered in the ordering table using GsSortObject4(). The coord2 parameter is a pointer to a GsCOORDINATE2 structure defining the object's coordinate system. The location, inclination, and size of the object are defined in a matrix in this structure. tmd contains the starting address of TMD model data stored in memory and is calculated and set using GsLinkObject4(). attribute is 32 bits and is used to store various display attributes as shown below (all other bits not defined below are reserved by the system): a) Bit 3: Light source calculation mode
b) Bit 5: Light source calculation mode control bit
c) Bit 6: Light source calculation ON/OFF switch
d) Bit 30: Semi-transparency ON/OFF
e) Bit 31: Display ON/OFF This bit is used to switch the display on and off. f) Bits 9-11: Automatic partitioning (polygon subdivision)
These bits specify the number of subdivisions for the automatic partitioning function. Automatic partitioning, or polygon subdivision, causes all the polygons contained within an object to subdivide. It is used for reducing texture distortion and preventing fragmentation of adjacent polygons. Note that division should be kept to a minimum in order to prevent the number of polygons from increasing exponentially. |