Method and apparatus for filling primitive base on graphics set split joint
A filling method and atlas technology, applied in the direction of filling planes with attributes, can solve problems such as waste of storage resources, failure of patterncell lattice data, and large memory resources, and achieve the effect of reducing the amount of memory and reducing the waste of memory resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] Example 1: Please refer to Figure 4a , this figure is a schematic diagram of using the method proposed by the present invention to divide the pattern cell into multiple sub-pattern cells with widths and heights smaller than the width and height of the target page, wherein the rectangular shaded area is the target page, and the diamond-shaped area in the target page is The target fill area determined by the diamond primitives.
[0058] According to the relevant information of the pattern cell obtained by the front-end interpretation, it can be determined that the width and height of the rectangular area determined by the pattern cell are larger than the width and height of the target page, so it is determined that the pattern cell needs to be segmented.
[0059] Then, according to the relevant information of the pattern cell, including the position parameter, width parameter, height parameter information of the lower left corner marking the pattern cell boundary and the...
Embodiment 2
[0069] Example 2: Please refer to Figure 5a , the figure is a schematic diagram of the process of generating sub-Pattern cells in the case of the first tile type, Figure 5a The coordinate axis in is the direction of copy displacement of pattern cell lattice data, which is the same as the horizontal and vertical directions of the target page.
[0070] The key pattern cell is the expected position when the pattern cell dot matrix data is laid into the target page without translation. The shaded rectangular area in the figure is the target page. In order to fill the target page, the patterncell needs to be translated 3 times in the vertical direction by the step value dY, and the specific operation process is the same as the previous embodiment. The areas where the basic atlas unit key pattern cell and the translated Pattern cell intersect with the target page are shaded areas 1, 2, 3, and 4. The positions of areas 1, 2, and 4 in the pattern cell are as follows Figure 5b As ...
Embodiment 3
[0072] Example 3: Please refer to Figure 6a, the pattern cell is divided into 4 sub-pattern cells, that is, after the shaded areas 1, 2, 3, and 4 in the figure, the positions of the sub-pattern cells in the pattern cell are as follows Figure 6b As shown in the shaded area in , where shaded areas 1 and 2 are independent of each other and do not contain each other, but shaded areas 1 and 2 can still be combined into a sub-pattern cell. This sub-pattern cell is the union of shadow areas 1 and 2, the height is the height of the target page, and the width is the width of shadow areas 1 and 2. By generalizing the above method, it can be seen that when the direction of translation when the pattern cell is laid into the target page is consistent with the horizontal and vertical directions of the space where the target page is located (the first tiling type), all overlapping areas in the pattern cell can be The union of the sub-pattern cells is used as the processed sub-pattern cell...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 