Contained Within
Find More Documentation
Featured Support Resources
| Download this book in PDF
Quadrilateral Mesh Test Descriptions
23
- This chapter describes the Quadrilateral Mesh test programs. The following is defined for each test program:
-
- Name of the test program
- Test types (See the section "Denizen Test Types" on page 2 for the different test types.)
- Description of the test program
- Attributes tested by the program
- Operators tested by the program
- Output from the test program
· qm_col_norm
-
| Test Types: | INDEX, SM |
| Description: | Same single quadmesh rendered with all the 3D possible point types, all the possible fill styles, a single ambient light source, and all the possible illumination types. The outer loop sets the interior styles, the next loop sets the illumination types, the next loop sets the point type, and the final loop sets the facet data. |
- Attributes Tested: See Table 23-1, Column A at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_quadrilateral_mesh
Output: When the point type includes color information and the
- illumination is per vertex, expects a rainbow like a candy cane for the edge for hollow or the complete interior for solid where the candy cane/rainbow is red, green, yellow, dark blue, purple, and light blue. When illumination is per vertex and the point type does not involve color but the facet type does, expects the facet color, which is green for the edge in the hollow case and the complete interior for the solid case. Otherwise when illumination is per vertex, the point type does not involve color, and the facet type is none or involves normal information only, expects the interior color set, which is red for the edge in the hollow case and the entire interior for the solid case. For the empty interior fill style, expects the background color.
· qm_col_norm_rgb
-
| Test Types: | RGB, SM |
| Description: | Same single quadmesh rendered with all the 3D possible point types, all the possible fill styles, a single ambient light source, and all the possible illumination types. The outer loop sets the interior styles, the next loop sets the illumination types, the next loop sets the point type, and the final loop sets the facet data. |
- Attributes Tested: See Table 23-1, Column A at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_quadrilateral_mesh
Output: When the point type includes color information and the
- illumination is per vertex, expects a shaded coloring that blends into green for the edge for hollow or the complete interior for solid. When illumination is per vertex and the point type does not involve color but the facet type does, expects the facet color, which is blue for the edge in the hollow case and the complete interior for the solid case. Otherwise when illumination is per vertex, the point type does not involve color, and the facet type is none or
- involves normal information only, expects the interior color set, which is red for the edge in the hollow case and the entire interior for the solid case. For the empty interior fill style, expects the background color.
· qm_cull_rgb
-
| Test Types: | RGB, SM |
| Description: | Draws RGB quad mesh composed of four facets; two on the diagonal from left to right are back facing, while the two on the opposite diagonal are front facing, with different face-culling modes (none, front, back). |
- Attributes Tested: XGL_CTX_BACKGROUND_COLOR and Table 23-2, Column B at the end of this chapter
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_quadrilateral_mesh
Output: When the quadmesh is front facing, that is, the z
- component of its normal is less than 0.0, and the cull mode is FRONT, the expected color is the background, which is black. When the quadmesh is front facing and the cull mode is anything except FRONT, the expected color is the front surface color, which is purple. When the quadmesh is not front facing, that is, the z component of its normal is greater than or equal to 0.0, and the cull mode is FRONT, the expected color is the back surface color, which is yellow. Any other cull mode for a back-facing quadmesh is expected to be the background color, which is black. The normal appearance of the quadmesh with culling set to NONE is a four-faceted quad with the left to right facets on the diagonal yellow and the opposite diagonal facets purple.
· qm_hlhsr2_rgb
-
| Test Types: | RGB, SM |
| Description: | Draws a single quadmesh that appears in the plane defined by the vector (100,100,299, 100,300,0); checks that the portion which resides below the HLHSR_DATA point has been Z-buffer clipped out as this data point is incremented by 10 from 0 to 290 |
- Attributes Tested: XGL_3D_CTX_HLHSR_DATA
-
-
XGL_3D_CTX_LINE_COLOR_INTERP
XGL_CTX_BACKGROUND_COLOR
XGL_SURF_FILL_EMPTY
XGL_SURF_FILL_HOLLOW
and Table 23-2, Column A at the end of this chapter
Operators Tested: xgl_object_set
xgl_object_get
xgl_quadrilateral_mesh
xgl_context_new_frame
Output: The diagonal in the direction from the left to the right lies
- through the vertex points where the z value is greater than the HLHSR_DATA point. Because of this, as this point is increased, the red triangles on the vertex points with a 0 z component are extended toward each other.
· qm_hlhsr_rgb
-
| Test Types: | RGB, SM |
| Description: | Renders two sets of the same quadmesh with different z values and expects to view the quadmesh with the smaller z depth. The first set of quadmeshes are set up with a front surface color of yellow, while their exact counterparts have a front surface color of light blue. The depths for the same quadmeshes with different colors are such that the first quadmeshes rendered are expected, the second quadmeshes rendered are expected and again the second quadmeshes rendered are expected. Finally, renders a quadmesh where two of the vertex are overlapping. |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION
-
-
XGL_ILLUM_NONE
and Table 23-2, Column A at the end of this chapter
Operators Tested: xgl_object_set
xgl_quadrilateral_mesh
xgl_context_new_frame
Output: Draws two sets of quadmesh. The top one is composed of
- a single square, and the bottom one is composed of two squares. Their color alternates between yellow and light blue. The final frame is a single light blue quadmesh.
· qm_simple
-
| Test Types: | INDEX, SM |
| Description: | Sets up a single ambient light source and tries SOLID, HOLLOW, and EMPTY interior styles. Tries these combinations with point types F3D accompanied by no illumination, COLOR_F3D accompanied by illumination per vertex, and F3D accompanied by illumination per facet and an edge color of blue except for EMPTY and HOLLOW where the illumination per facet is skipped. |
- Attributes Tested: XGL_CTX_EDGE_COLOR XGL_CTX_SURF_EDGE_FLAG and Table 23-1, Column A at the end of this chapter
- Operators Tested: xgl_object_set
- Output:.....Expects background color for EMPTY interior. Expects a red interior surface color for SOLID and a red edge color for HOLLOW and no illumination. Expects a shaded edged or interior quadmesh with rainbow colors, red, green, yellow, dark blue, purple, and light blue for illumination per vertex for HOLLOW and SOLID respectively. Expects a light blue SOLID quadmesh for illumination per facet.
· qm_simple_rgb
-
| Test Types: | RGB, SM |
| Description: | Sets up a single ambient light source and tries SOLID, HOLLOW, and EMPTY interior styles. Tries these combinations with point types F3D accompanied by no illumination, COLOR_F3D accompanied by illumination per vertex. |
- Attributes Tested: See Table 23-1, Column A at the end of this chapter.
- Operators Tested: xgl_object_set
-
| Output:· qm_solid_interp | Expects background color for EMPTY interior. Expects a red interior surface color for SOLID and a red edge color for HOLLOW and no illumination. Expects a shaded edged or interior quadmesh with shading from red to green for illumination per vertex for HOLLOW and SOLID respectively. |
| Test Types: | INDEX, SM |
| Description: | Tries all different point and facet types for SOLID interior color-interpolated quadmesh with four individual facets |
- Attributes Tested: See Table 23-3, Column A at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_quadrilateral_mesh
xgl_object_get
xgl_context_new_frame
Output: For point types with color, COLOR_F3D,
COLOR_NORMAL_F3D, COLOR_FLAG_F3D, and
-
COLOR_NORMAL_FLAG_F3D, expects a shaded quadmesh with rainbow shading in candy cane fashion in red, green, yellow, dark blue, purple, light blue, and gray. For facet types without color and point types without color information, expects a solid quadmesh with the front surface color, which is red. For facet types with color information and vertex types without color information, expects the facet color, which is 1(red), 2(green), 3(yellow) and 4(blue) respectively.
· qm_solid_interp_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all different point and facet types for SOLID interior color-interpolated quadmesh with four individual facets |
- Attributes Tested: See Table 23-3, Column A at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_quadrilateral_mesh
xgl_object_get
xgl_context_new_frame
Output: For point types with color, COLOR_F3D,
COLOR_NORMAL_F3D, COLOR_FLAG_F3D, and
-
COLOR_NORMAL_FLAG_F3D, expects a shaded quadmesh with rainbow shading that blends red into yellow, or purple and yellow into green then light blue. For facet types without color and point types without color information, expects a solid quadmesh with the front surface color, which is red. For facet types with color information and vertex types without color information, expects the facet color, which is 1(red), 2(green), 3(yellow), and 4(blue) respectively.
· qm_solid_no_illum
-
| Test Types: | INDEX, SM |
| Description: | Tries all different point types and facet types for solid interior with no lighting and no color interpolation for a quadmesh composite of four facets |
- Attributes Tested: XGL_CTX_BACKGROUND_COLOR
-
-
XGL_CTX_SURF_FRONT_COLOR
XGL_DRAW_EDGE
XGL_DRAW_PREV_EDGE
Operators Tested: xgl_object_set
xgl_quadrilateral_mesh
xgl_object_get
Output: Expects the surface color for facet types without color
- information, which would be the front surface color of 5, purple. For facet types with color information, the color is
- dependent on the facet color, which for the ordered quadmesh is 1(red), 2(green), 3(yellow), and 4(blue) respectively.
· qm_solid_no_illum_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all different point types and facet types for solid interior with no lighting and no color interpolation for a quadmesh composite of four facets |
- Attributes Tested: XGL_CTX_BACKGROUND_COLOR
-
-
XGL_CTX_SURF_FRONT_COLOR
XGL_DRAW_EDGE
XGL_DRAW_PREV_EDGE
Operators Tested: xgl_object_set
xgl_quadrilateral_mesh
xgl_object_get
Output: Expects the surface color for facet types without color
- information, which would be the front surface color of purple. For facet types with color information, the color is dependent on the facet color, which for the ordered quadmesh is red, green, yellow, and blue respectively.
· qm_solid_per_facet
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for solid quadmeshes composed of four facets with illumination per facet and one light source which is ambient |
- Attributes Tested: XGL_ILLUM_PER_FACET and Table 23-4, Column A at the end of this chapter
- Operators Tested: xgl_object_set
-
-
xgl_quadrilateral_mesh
xgl_object_get
Output: Expects the front surface color, which is red for facet types
- that contain no color information. For facet types with color information, expects the facet color, which for the ordered quadmesh is 1(red), 2(green), 3(yellow), and 4(blue) respectively.
· qm_solid_per_facet_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for solid quadmeshes composed of four facets with illumination per facet and one light source, which is ambient. |
- Attributes Tested: XGL_ILLUM_PER_FACET and Table 23-4, Column A at the end of this chapter
- Operators Tested: xgl_object_set
-
-
xgl_quadrilateral_mesh
xgl_object_get
Output: Expects the front surface color which is red for facet types
- that contain no color information. For facet types with color information, expects the facet color, which for the ordered quadmesh is red, green, yellow, and blue respectively.
· qm_solid_per_vtx
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for solid quadmeshes composed of four facets with illumination per vertex and one light source which is ambient |
- Attributes Tested: XGL_ILLUM_PER_VERTEX and Table 23-4, Column A at the end of this chapter
- Operators Tested: xgl_object_set
- Output:.....When the point type involves color information, XGL_PT_COLOR_F3D, XGL_PT_COLOR_NORMAL_F3D, XGL_PT_COLOR_FLAG_F3D, and XGL_PT_COLOR_NORMAL_FLAG_F3D, expects a shaded quadmesh with rainbow colors painted in candy cane fashion composed of red, green, yellow, dark blue, purple, light blue, and gray. When both the facet type and the point type contain no color information, expects the front surface color, which is red. When just the facet type contains color information, expects the individual facet to be the facet color, which for the ordered quadmesh is red, green, yellow, and blue respectively.
· qm_solid_per_vtx_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for solid quadmeshes composed of four facets with illumination per vertex and one light source, which is ambient |
- Attributes Tested: XGL_ILLUM_PER_VERTEX and Table 23-4, Column A at the end of this chapter
- Operators Tested: xgl_object_set
-
-
xgl_quadrilateral_mesh
xgl_object_get
Output: When the point type involves color information,
XGL_PT_COLOR_F3D, XGL_PT_COLOR_NORMAL_F3D,
XGL_PT_COLOR_FLAG_F3D, and
XGL_PT_COLOR_NORMAL_FLAG_F3D, expects a shaded
- quadmesh with rainbow colors that blend smoothly into one another composed of red, green, yellow, dark blue, purple, and light blue. When both the facet type and the point type contain no color information, expects the front surface color, which is red. When just the facet type contains color information, expects the individual facet to be the facet color, which for the ordered quadmesh is red, green, yellow, and blue respectively.
· qm_xform_no_illum
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for solid quadmeshes composed of four facets with no lighting and a nonidentity viewing transform |
- Attributes Tested: See Table 23-3, Column B at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_object_create
xgl_transform_write
Output: The transformed quadmesh should appear as a wide line
- in the upper-left corner of the window raster. The color of this primitive is dependent on the facet information. When the facet information contains color information,
- expect the facet color, which from the visible portion of the ordered quadmesh contains only red and yellow. Otherwise expect the surface color, which is purple.
· qm_xform_no_illum_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for solid quadmeshes composed of four facets with no lighting and a nonidentity viewing transform |
- Attributes Tested: See Table 23-3, Column B at the end of this chapter.
- Operators Tested: xgl_object_create
-
| Output:· qm_empty_interp | The transformed quadmesh should appear as a wide line in the upper-left corner of the window raster. The color of this primitive is dependent on the facet information. When the facet information contains color information, expect the facet color, which from the visible portion of the ordered quadmesh contains only red and yellow. Otherwise expect the surface color, which is purple. |
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for empty colored interpolated quadmeshes composed of four facets |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION
-
-
XGL_ILLUM_NONE_INTERP_COLOR
and Table 23-4, Column B at the end of this chapter
Operators Tested: xgl_object_set
xgl_object_get
xgl_context_new_frame
xgl_quadrilateral_mesh
Output: Expects an empty quadmesh composed of four facets with
blue edges
· qm_empty_interp_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for empty colored interpolated quadmeshes composed of four facets |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION XGL_ILLUM_NONE_INTERP_COLOR and Table 23-4, Column B at the end of this chapter
- Operators Tested: xgl_object_set
-
| Output:· qm_empty_no_illum | Expects an empty quadmesh composed of four facets with blue edges |
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for empty quadmeshes composed of four facets without lighting |
- Attributes Tested: See Table 23-4, Column B at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_context_new_frame
xgl_quadrilateral_mesh
Output: Expects an empty quadmesh composed of four facets with
blue edges
· qm_empty_no_illum_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for empty quadmeshes composed of four facets without lighting |
- Attributes Tested: See Table 23-4, Column B at the end of this chapter.
- Operators Tested: xgl_object_set
- Output:.....Expects an empty quadmesh composed of four facets with blue edges
· qm_empty_per_facet
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for empty quadmeshes composed of four facets with per-facet lighting with one ambient light source |
- Attributes Tested: XGL_ILLUM_PER_FACET and Table 23-1, Column B at the end of this chapter
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_context_new_frame
xgl_quadrilateral_mesh
Output: Expects an empty quadmesh composed of four facets with
blue edges
· qm_empty_per_facet_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for empty quadmeshes composed of four facets with per-facet lighting with one ambient light source |
- Attributes Tested: XGL_ILLUM_PER_FACET
-
-
XGL_PT_NORMAL_F3D
XGL_PT_NORMAL_FLAG_F3D
and Table 23-1, Column B at the end of this chapter
Operators Tested: xgl_object_set
xgl_object_get
xgl_context_new_frame
xgl_quadrilateral_mesh
Output: Expects an empty quadmesh composed of four facets with
blue edges
· qm_empty_per_vtx
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for empty quadmeshes composed of four facets with per-vertex lighting with one ambient light source |
- Attributes Tested: XGL_ILLUM_PER_VERTEX and Table 23-1, Column B at the end of this chapter
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_context_new_frame
xgl_quadrilateral_mesh
Output: Expects an empty quadmesh composed of four facets with
blue edges
· qm_empty_per_vtx_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for empty quadmeshes composed of four facets with per-vertex lighting with one ambient light source |
- Attributes Tested: XGL_ILLUM_PER_VERTEX and Table 23-1, Column B at the end of this chapter
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_context_new_frame
xgl_quadrilateral_mesh
Output: Expects an empty quadmesh composed of four facets with
blue edges
· qm_hollow_interp
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for hollow interpolated quadmeshes composed of four facets |
- Attributes Tested: XGL_CTX_SURF_FRONT_FILL_STYLE
-
-
XGL_SURF_FILL_HOLLOW
and Table 23-3, Column A at the end of this chapter
Operators Tested: xgl_object_set
xgl_object_get
xgl_context_new_frame
xgl_quadrilateral_mesh
Output: Expects a rainbow of candy cane colors for the edges with
- red, green, yellow, dark blue, purple, light blue, and gray when the point type has color information. Expects the front surface color, which is red for the edge color when both the facet data and the point type have no color
- information. Expects the facet color for the individual facets, which are red, green, blue, and yellow for the edge colors when the facet data has color information.
· qm_hollow_interp_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for hollow interpolated quadmeshes composed of four facets |
- Attributes Tested: XGL_CTX_SURF_FRONT_FILL_STYLE
-
-
XGL_SURF_FILL_HOLLOW
and Table 23-3, Column A at the end of this chapter
Operators Tested: xgl_object_set
xgl_object_get
xgl_context_new_frame
xgl_quadrilateral_mesh
Output: Expects a rainbow blending for the edges with red, yellow,
- purple, light blue, and gray when the point type has color information. Expects the front surface color, which is red for the edge color when both the facet data and the point type have no color information. Expects the facet color of for the individual facets which are red, green, blue, and yellow for the edge colors when the facet data has color information.
· qm_hollow_no_illum
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for hollow unlighted quadmeshes composed of four facets |
- Attributes Tested: See Table 23-2, Column C at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_quadrilateral_mesh
Output: Expects the front surface color, which is purple for the
- edge color when both the facet data and the point type have no color information. Expects the facet color for the individual facets which are red, green, blue, and yellow for the edge colors when the facet data has color information.
· qm_hollow_no_illum_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for hollow unlighted quadmeshes composed of four facets |
- Attributes Tested: See Table 23-2, Column C at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_quadrilateral_mesh
Output: Expects the front surface color, which is purple for the
- edge color when both the facet data and the point type have no color information. Expects the facet color for the individual facets, which are red, green, blue, and yellow for the edge colors when the facet data has color information.
· qm_hollow_per_facet
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for hollow per-facet lighted quadmeshes composed of four facets |
- Attributes Tested: See Table 23-2, Column C at the end of this chapter.
- Operators Tested: xgl_object_set
-
| Output:· qm_hollow_per_facet_rgb | Expects the front surface color, which is red for the edge color when both the facet data and the point type have no color information. Expects the facet color for the individual facets, which are red, green, blue, and yellow for the edge colors when the facet data has color information. |
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for hollow per facet lighted quadmeshes composed of four facets |
- Attributes Tested: See Table 23-2, Column C at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_quadrilateral_mesh
Output: Expects the front surface color, which is red for the edge
- color when both the facet data and the point type have no color information. Expects the facet color for the individual facets, which are red, green, blue, and yellow for the edge colors when the facet data has color information.
· qm_hollow_per_vtx
-
| Test Types: | INDEX, RGB |
| Description: | Tries all point and facet types for hollow per vertex lighted quadmeshes composed of four facets |
- Attributes Tested: XGL_CTX_SURF_FRONT_FILL_STYLE
-
-
XGL_ILLUM_PER_VERTEX
XGL_SURF_FILL_HOLLOW
and Table 23-4, Column A at the end of this chapter
Operators Tested: xgl_object_set
xgl_object_get
xgl_quadrilateral_mesh
Output: Expects candy cane edges of red, green, yellow, dark blue,
- purple, and gray when the point type contains color information. Expects the front surface color for the edge color, which is red when both the facet type and the point type contain no color information. Expects the facet color for the edge color, which is red, green, blue, and yellow for the ordered facet list of quadmeshes when only the facet data contains color information.
· qm_hollow_per_vtx_rgb
-
| Test Types: | RGB, SM |
| Description: | Tries all point and facet types for hollow per-vertex lighted quadmeshes composed of four facets |
- Attributes Tested: XGL_CTX_SURF_FRONT_FILL_STYLE
-
-
XGL_ILLUM_PER_VERTEX
XGL_SURF_FILL_HOLLOW
- and Table 23-4, Column A at the end of this chapter
- Operators Tested: xgl_object_set
-
-
xgl_object_get
xgl_quadrilateral_mesh
Output: Expects a rainbow of colors in the edges of red, yellow,
- light blue, purple, and gray when the point type contains color information. Expects the front surface color for the edge color, which is red when both the facet type and the point type contain no color information. Expects the facet color for the edge color, which is red, green, blue, and yellow for the ordered facet list of quadmeshes when only the facet data contains color information.
· qm_cull
-
| Test Types: | INDEX, SM |
| Description: | Draws INDEX quadmesh composed of four facets; two on the diagonal from left to right are back facing, while the two on the opposite diagonal are front facing, with different face-culling modes (none, front, back) |
- Attributes Tested: See Table 23-2, Column B at the end of this chapter.
- Operators Tested: xgl_object_set
-
-
xgl_quadrilateral_mesh
Output: When the quadmesh is front facing, that is, the z
- component of its normal is less than 0.0, and the cull mode is FRONT, the expected color is the background, which is black. When the quadmesh is front facing and the cull mode is anything except FRONT, the expected color is the front surface color which is red. When the quadmesh is not front facing, that is, the z component of its normal is greater than or equal to 0.0, and the cull mode is FRONT, the expected color is the back surface color, which is green. Any other cull mode for a back-facing quadmesh is expected to be the background color, which is black. The normal appearance of the quadmesh with culling set to NONE is a four-faceted quad with the left to right facets on the diagonal green and the opposite diagonal facets red.
· qm_hlhsr
-
| Test Types: | INDEX, SM |
| Description: | Renders two sets of the same quadmesh with different z values and expects to view the quadmesh with the smaller z depth. The first set of quadmeshes are set up with a front surface color of yellow, while their exact counterparts have a front surface color of light blue. The depths for the same quadmesh with different colors are such that the first quadmeshes rendered are expected, the second quadmeshes rendered are expected and again the second quadmeshes rendered are expected. Finally, renders a quadmesh where two of the vertex are overlapping. |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION
-
-
XGL_ILLUM_NONE
and Table 23-2, Column A at the end of this chapter
Operators Tested: xgl_object_set
xgl_quadrilateral_mesh
xgl_context_new_frame
Output: Two sets of quadmesh. The top one is composed of a
- single square, and the bottom one is composed of two squares. Their color alternates between red and green. The final frame is a single red quadmesh.
· qm_edge_rgb
-
| Test Types: | RGB, SM |
| Description: | Tests for edged quadmeshes with backface interior style set to HOLLOW with point type XGL_PT_COLOR_FLAG_F3D. |
- Attributes Tested: XGL_3D_CTX_HLHSR_MODE
- Operators Tested: xgl_quadrilateral_mesh
- Output:.....A single red edged quadmesh
-
Table 23-1
| Column A | Column B |
| XGL_3D_CTX_LIGHTS | XGL_3D_CTX_HLHSR_MODE |
| XGL_3D_CTX_LIGHT_NUM | XGL_3D_CTX_LIGHTS |
| XGL_3D_CTX_LIGHT_SWITCHES | XGL_3D_CTX_LIGHT_NUM |
| XGL_3D_CTX_LINE_COLOR_INTERP | XGL_3D_CTX_LIGHT_SWITCHES |
| XGL_3D_CTX_SURF_FRONT_AMBIENT | XGL_3D_CTX_SURF_FRONT_AMBIENT |
| XGL_3D_CTX_SURF_FRONT_ILLUMINATION | XGL_3D_CTX_SURF_FRONT_ILLUMINATION |
| XGL_3D_CTX_SURF_FRONT_LIGHT_COMPONENT | XGL_3D_CTX_SURF_FRONT_LIGHT_COMPONENT |
| XGL_CTX_BACKGROUND_COLOR | XGL_CTX_BACKGROUND_COLOR |
| XGL_CTX_SURF_FRONT_COLOR | XGL_CTX_EDGE_COLOR |
| XGL_CTX_SURF_FRONT_FILL_STYLE | XGL_CTX_NEW_FRAME_ACTION |
| XGL_ILLUM_NONE | XGL_CTX_NEW_FRAME_CLEAR |
| XGL_ILLUM_PER_FACET | XGL_CTX_NEW_FRAME_HLHSR_ACTION |
| XGL_ILLUM_PER_VERTEX | XGL_CTX_SURF_EDGE_FLAG |
| XGL_LIGHT_AMBIENT | XGL_CTX_SURF_FRONT_COLOR |
| XGL_LIGHT_COLOR | XGL_CTX_SURF_FRONT_FILL_STYLE |
| XGL_LIGHT_ENABLE_COMP_AMBIENT | XGL_DRAW_EDGE |
| XGL_LIGHT_TYPE | XGL_DRAW_PREV_EDGE |
| XGL_SURF_FILL_EMPTY | XGL_HLHSR_Z_BUFFER |
| XGL_SURF_FILL_HOLLOW | XGL_LIGHT_AMBIENT |
| XGL_SURF_FILL_SOLID | XGL_LIGHT_COLOR
XGL_LIGHT_ENABLE_COMP_AMBIENT
XGL_LIGHT_TYPE
XGL_SURF_FILL_EMPTY |
-
Table 23-2
| Column A | Column B | Column C |
| XGL_3D_CTX_HLHSR_MODE | XGL_3D_CTX_SURF_BACK_COLOR | XGL_CTX_BACKGROUND_COLOR |
| XGL_CTX_NEW_FRAME_ACTION | XGL_3D_CTX_SURF_FACE_CULL | XGL_CTX_SURF_FRONT_COLOR |
| XGL_CTX_NEW_FRAME_CLEAR | XGL_3D_CTX_SURF_FACE_ DISTINGUISH | XGL_CTX_SURF_FRONT_FILL_ STYLE |
| XGL_CTX_NEW_FRAME_HLHSR_ ACTION | XGL_CTX_SURF_FRONT_COLOR | XGL_DRAW_EDGE |
| XGL_CTX_SURF_FRONT_COLOR | XGL_CULL_BACK | XGL_DRAW_PREV_EDGE |
| XGL_CTX_SURF_FRONT_FILL_ STYLE | XGL_CULL_FRONT | XGL_SURF_FILL_HOLLOW |
XGL_HLHSR_Z_BUFFER
XGL_SURF_FILL_SOLID | XGL_CULL_OFF |
-
Table 23-3
| Column A | Column B |
| XGL_3D_CTX_HLHSR_MODE | XGL_CTX_BACKGROUND_COLOR |
| XGL_3D_CTX_SURF_FRONT_ILLUMINATION | XGL_CTX_SURF_FRONT_COLOR |
| XGL_CTX_BACKGROUND_COLOR | XGL_CTX_VIEW_TRANS |
| XGL_CTX_NEW_FRAME_ACTION | XGL_DRAW_EDGE |
| XGL_CTX_NEW_FRAME_CLEAR | XGL_DRAW_PREV_EDGE |
| XGL_CTX_NEW_FRAME_HLHSR_ACTION | XGL_TRANS |
| XGL_CTX_SURF_FRONT_COLOR | XGL_TRANS_DATA_TYPE |
| XGL_DRAW_EDGE | XGL_DATA_FLT |
| XGL_DRAW_PREV_EDGE | XGL_TRANS_DIMENSION |
XGL_HLHSR_Z_BUFFER
XGL_ILLUM_NONE_INTERP_COLOR | XGL_TRANS_3D |
-
Table 23-4
| Column A | Column B |
| XGL_3D_CTX_LIGHTS | XGL_3D_CTX_HLHSR_MODE |
| XGL_3D_CTX_LIGHT_NUM | XGL_CTX_BACKGROUND_COLOR |
| XGL_3D_CTX_LIGHT_SWITCHES | XGL_CTX_EDGE_COLOR |
| XGL_3D_CTX_SURF_FRONT_AMBIENT | XGL_CTX_NEW_FRAME_ACTION |
| XGL_3D_CTX_SURF_FRONT_ILLUMINATION | XGL_CTX_NEW_FRAME_CLEAR |
| XGL_CTX_BACKGROUND_COLOR | XGL_CTX_NEW_FRAME_HLHSR_ACTION |
| XGL_3D_CTX_SURF_FRONT_LIGHT_COMPONENT | XGL_CTX_SURF_EDGE_FLAG |
| XGL_CTX_SURF_FRONT_COLOR | XGL_CTX_SURF_FRONT_COLOR |
| XGL_DRAW_EDGE | XGL_CTX_SURF_FRONT_FILL_STYLE |
| XGL_DRAW_PREV_EDGE | XGL_DRAW_EDGE |
| XGL_LIGHT_AMBIENT | XGL_DRAW_PREV_EDGE |
| XGL_LIGHT_COLOR | XGL_HLHSR_Z_BUFFER |
XGL_LIGHT_ENABLE_COMP_AMBIENT
XGL_LIGHT_TYPE | XGL_SURF_FILL_EMPTY |
|
|