Dual distance field color palette

US11257275B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11257275-B2
Application numberUS-201916584016-A
CountryUS
Kind codeB2
Filing dateSep 26, 2019
Priority dateOct 31, 2018
Publication dateFeb 22, 2022
Grant dateFeb 22, 2022

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

In one embodiment, a system may determine a sampling location within a texture with each texel encoding first and second distance fields and first and second color indices. The system may select, based on the sampling location, a set of texels to use to determine a color for the sampling location. The system may compute first and second interpolated distance fields based on, respectively, the first and second distance fields of the set of texels. The system may select, based on the first interpolated distance field, a subset of the set of texels, and select a texel from the subset of texels based on a distance between the texel and the sampling location. The system may select, based on the second interpolated distance filed, a color index from the first and second color indices of the selected texel and use it to determine the color for the sampling location.

First claim

Opening claim text (preview).

What is claimed is: 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 at least: a first color index and a first distance field encoding a first distance between the texel and a first edge depicted in the texture, and a second color index and a second distance field encoding a second distance between the texel and a second edge depicted in the texture; 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 (1) a first interpolated distance field for the sampling location based on the first distance fields of the set of texels and (2) a second interpolated distance field for the sampling location based on the second distance fields of the set of texels; selecting, based on the computed first 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; selecting, based on the computed second interpolated distance field specifying a side of the second edge on which the sampling location is located, a color index from the first and second color indices of the selected texel; and determining the color for the sampling location using the color index. 2. The method of claim 1 , wherein: the texture depicts a 2D image with a plurality of edges defining a boundary of the 2D image, wherein each of the plurality of edges has a predetermined interior side and a predetermined exterior side, wherein the plurality of edges comprises one or more first edges of a first type and one or more second edges of a second type; the first distance field of each of the plurality of texels encodes whether the associated texel is on the interior or exterior side of that first edge; and the second distance field of each of the plurality of texels encodes whether the associated texel is on the interior or exterior side of that second edge. 3. The method of claim 2 , wherein: the first interpolated distance field encodes (1) a third distance between the sampling location and one of the one or more first edges, and (2) whether the sampling location is on the interior or exterior side of that first edge; and the second interpolated distance field encodes (1) a fourth distance between the sampling location and one of the one or more second edges, and (2) whether the sampling location is on the interior or exterior side of that second edge. 4. The method of claim 3 , wherein the subset of texels are selected according to whether the sampling location is on the interior or exterior of the one or more first edges, according to the first interpolated distance field. 5. The method of claim 3 , wherein the color index is selected according to whether the sampling location is on the interior or exterior of the one or more second edges, according to the second interpolated distance field. 6. The method of claim 3 , wherein a most significant bit of the first interpolated distance field indicates whether the sampling location is on the interior or exterior side of the one or more first edges. 7. The method of claim 1 , wherein: the set of texels includes a pair of even texels and a pair of odd texels; and the subset of texels is either the pair of even texels or the pair of odd texels. 8. The method of claim 7 , wherein: the plurality of texels each has a u coordinate and a v coordinate in the texture; the plurality of texels comprises a plurality of even texels, wherein a least significant bit of a binary representation of the u coordinate of each even texel and a least significant bit of a binary representation of the v coordinate of that even texel are equal; and the plurality of texels comprises a plurality of odd texels, wherein a least significant bit of a binary representation of the u coordinate of each odd texel and a least significant bit of a binary representation of the v coordinate of that odd texel are different. 9. The method of claim 1 , wherein the color index of the selected texel is mapped to one of a predetermined set of colors. 10. The method of claim 9 , wherein the predetermined set of colors includes more than two colors. 11. The method of claim 1 , wherein the distance field of each of the plurality of texels uses a distance representation scheme that lacks an on-edge representation. 12. The method of claim 1 , wherein: the set of texels are the closest four texels in the plurality of texels to the sampling location; and the sampling location is associated with a pixel, and the color for the sampling location is to be displayed by the pixel. 13. 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 at least: a first color index and a first distance field that encodes a first distance between the texel and a first edge depicted in the texture, and a second color index and a second distance field that encodes a second distance between the texel and a second edge depicted in the texture; 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 (1) a first interpolated distance field for the sampling location based on the first distance fields of the set of texels and (2) a second interpolated distance field for the sampling location based on the second distance fields of the set of texels; select, based on the computed first 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; select, based on the computed second interpolated distance field specifying a side of the second edge on which the sampling location is located, a color index from the first and second color indices of the selected texel; and determine the color for the sampling location using the color index. 14. The system of claim 13 , wherein: the texture depicts a 2D image with a plurality of edges defining a boundary of the 2D image, wherein each of the plurality of edges has a predetermined interior side and a predetermined exterior side, wherein the plurality of edges comprises one or more first edges of a first type and one or more second edges of a second type; the first distance field of each of the plurality of texels encodes whether the associated texel is on the interior or exterior side of that first edge; the second distance field of each of the plurality of texels encodes whether the associated texel is on the interior or exterior side of that second edge; the first interpolated distance field encodes (1) a third distance between the sampling location and one of the one or more first edges, and (2) whether the sampling location is on the interior or exterior side of that first edge; and the second interpolated distance field encodes (1) a fourth distance between the sampling location and one of the one or more second edges, and (2) whether the sampling location is on the interior or exterior side of that second edge. 15. The system of claim 13 , wherein: the set of texels includes a pair of even texels and a pair of odd texels; and the subset of texels is either the pair of even texels or the pai

Assignees

Inventors

Classifications

  • Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77) · CPC title

  • using straight lines or curves · CPC title

  • Determination of colour characteristics · CPC title

  • Lighting effects · CPC title

  • Creating or editing images; Combining images with text · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11257275B2 cover?
In one embodiment, a system may determine a sampling location within a texture with each texel encoding first and second distance fields and first and second color indices. The system may select, based on the sampling location, a set of texels to use to determine a color for the sampling location. The system may compute first and second interpolated distance fields based on, respectively, the f…
Who is the assignee on this patent?
Facebook Tech Llc
What technology area does this patent fall under?
Primary CPC classification G06T15/04. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Feb 22 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).