Rendering scalable multicolored vector content
AssigneeAdobe Inc.
InventorScott Edward Petersen
Life of this patent
Estimating the term…
Abstract
Embodiments of provide systems, methods, and computer storage media for rendering multicolored vector content using pre-computed scalar fields, such as images or textures. In an example implementation, multicolored vector content is processed to generate a representation of three scalar fields: an unsigned distance field, a field of region IDs, and a color plane (also called a color field or a color texture). These three fields are pre-computed prior to rendering (e.g., outside of a rendering loop), and then subsequently used (e.g., by a GPU as textures) to render an approximation of the multicolored vector content.
Claims20
One or more computer storage media storing computer-useable instructions that, when used by one or more computing devices, cause the one or more computing devices to perform operations comprising:
- prior to receiving an instruction to render multicolor vector content into a raster image, generating:
- a first pre-computed texture representing unsigned distance values, a second pre-computed texture representing region identification values that identify which enclosed region defined by the multicolor vector content each texel is in, and a third pre-computed texture representing color values of the multicolor vector content;
- while executing a graphics rendering pipeline in response to the instruction, determining a color value for a pixel of the raster image using the first, second, and third pre-computed textures;
- and
- outputting the raster image.
A computerized method comprising:
- prior to receiving an instruction to render a raster image from multicolor vector content, generating:
- a first pre-computed scalar field representing unsigned distance values, a second pre-computed scalar field representing region identification values that identify which enclosed region defined by the multicolor vector content each element of the second pre-computed scalar field is in, and a third pre-computed scalar field representing color values of the multicolor vector content;
- while executing a graphics rendering pipeline in response to the instruction, sampling a color value for a pixel of the raster image using the first, second, and third pre-computed scalar fields;
- and
- causing output of the raster image.
A computer system comprising one or more hardware processors configured to execute computer program instructions that cause the one or more hardware processors to perform operations comprising:
- prior to receiving an instruction to render multicolor vector content into a raster image, generating:
- a pre-computed unsigned distance field representing unsigned distance values, a pre-computed region identification field representing region identification values that identify which enclosed region defined by the multicolor vector content each element of the pre-computed region identification field is in, and a pre-computed color field representing color values of the multicolor vector contents;
- while executing a graphics rendering pipeline in response to the instruction, determining a color value for a pixel of the raster image using the pre-computed unsigned distance field, the pre-computed region identification field, and the pre-computed color field;
- and
- causing output of the raster image.
Dependencies are inferred from the claim text.