Distance Field Color Palette
First Claim
1. A method comprising, by a computing system:
- determining a sampling location within a texture that comprises a plurality of texels, wherein each texel encodes a distance field and a color index;
selecting, based on the sampling location, a set of texels in the plurality of texels to use to determine a color for the sampling location;
computing an interpolated distance field based on the distance fields of the set of texels;
selecting, based on the interpolated distance field, a subset of the set of texels;
selecting a texel from the subset of texels based on a distance between the texel and the sampling location; and
determining the color for the sampling location using the color index of the selected texel.
2 Assignments
0 Petitions
Accused Products
Abstract
In one embodiment, a method for determining the color for a sample location includes using a computing system to determine a sampling location within a texture that comprises a plurality of texels. Each texel may encode a distance field and a color index. The system may select, based on the sampling location, a set of texels in the plurality of texels to use to determine a color for the sampling location. The system may compute an interpolated distance field based on the distance fields of the set of texels. The system may select, based on the interpolated distance field, a subset of the set of texels. The system may select a texel from the subset of texels based on a distance between the texel and the sampling location. The system may then determine the color for the sampling location using the color index of the selected texel.
-
Citations
20 Claims
-
1. A method comprising, by a computing system:
-
determining a sampling location within a texture that comprises a plurality of texels, wherein each texel encodes a distance field and a color index; selecting, based on the sampling location, a set of texels in the plurality of texels to use to determine a color for the sampling location; computing an interpolated distance field based on the distance fields of the set of texels; selecting, based on the interpolated distance field, a subset of the set of texels; selecting a texel from the subset of texels based on a distance between the texel and the sampling location; and determining the color for the sampling location using the color index of the selected texel. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system comprising:
-
one or more processors; and one or more computer-readable non-transitory storage media coupled to one or more of the processors and comprising instructions operable when executed by one or more of the processors to cause the system to; determine a sampling location within a texture that comprises a plurality of texels, wherein each texel encodes a distance field and a color index; select, based on the sampling location, a set of texels in the plurality of texels to use to determine a color for the sampling location; compute an interpolated distance field based on the distance fields of the set of texels; select, based on the interpolated distance field, a subset of the set of texels; select a texel from the subset of texels based on a distance between the texel and the sampling location; and determine the color for the sampling location using the color index of the selected texel. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. One or more computer-readable non-transitory storage media embodying software that is operable when executed to:
-
determine a sampling location within a texture that comprises a plurality of texels, wherein each texel encodes a distance field and a color index; select, based on the sampling location, a set of texels in the plurality of texels to use to determine a color for the sampling location; compute an interpolated distance field based on the distance fields of the set of texels; select, based on the interpolated distance field, a subset of the set of texels; select a texel from the subset of texels based on a distance between the texel and the sampling location; and determine the color for the sampling location using the color index of the selected texel. - View Dependent Claims (17, 18, 19, 20)
-
Specification