摘要 |
A control mesh of polygonal approximations is generated from one of a variety of conventional object representation schemes. The control mesh is a uniform representation of the object to be rendered comprising edge information and reconstruction data for the polygons comprising the control mesh. Reconstruction data includes surface normal data, and surface hint data. Surface hint data includes information regarding whether a vertex is a sharp point, or whether an edge should be represented as a hard edge. Resolution levels are calculated for all of the vertices of all of the polygons in the control mesh. Resolution levels specify the appropriate level of resolution for a triangle or other polygon responsive to the topology of the object and the camera angle currently being used in the application. Responsive to calculating the resolution levels, the polygons are subdivided responsive to the resolution levels. A data structure is maintained that provides the appropriate subdivision methodology to be used for all cases of T-vertices. After subdivision, locations for the vertices of the new polygons are calculated. If the polygons being generated are triangles, Bezier triangles are used in place of the original triangles to provide a surface rendering that has a greater level of control. The parameters for the Bezier triangles are calculated from the known vertices of the triangles, and the reconstruction data, to provide a detailed, realistic representation of the object.
|