# US 2002/0000988 A1 · Rendering lines with sample weighting

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2002/0000988 A1
- Document ID: US20020000988A1
- Status: Published application
- Kind: A1
- Application number: 09/752,297
- Filed: 2000-12-29
- Published: 2002-01-03
- Earliest claimed: 2000-01-11
- Assignees: Sun Microsystems, Inc.
- Inventors: Scott R. Nelson; Michael F. Deering; Nandini Ramani; Mark Tian; Patrick Shehane; Kevin Tang
- Web page: https://patentgrep.com/patent/US20020000988A1

## CPC

- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A graphics system and method for displaying lines on a display device. The system may comprise a sample buffer, a rendering unit and a sample-to-pixel calculation unit. The rendering unit may (a) generate a plurality of sample positions in a two-dimensional space, (b) determine a sample normal distance for each of the sample positions with respect to a line defined by the line-draw command, (c) assign sample values to the sample positions based on the sample normal distance of each of the sample positions, and (d) store the sample values in the sample buffer. The sample-to-pixel calculation unit may read sample values from the sample buffer, filter them to determine a pixel value, and transmit the pixel value to the display device. The rendering unit may render the line sample values with a narrower width to pre-compensate for the line-expanding effect of the filtering performed by the sample-to-pixel calculation unit.

## Claims

### Claim 1

A method for displaying lines on a display device, said method comprising:
generating a plurality of sample positions in a two-dimensional space;
determining a sample normal distance for each of the sample positions with respect to a line in the two-dimensional space;
assigning sample values to said sample positions based on the sample normal distance of each of said sample positions;
operating on one or more of said sample values to determine a pixel value;
transmitting the pixel value to a display device.

### Claim 2 (depends on 1)

The method of claim 1, wherein said sample values comprise color values.

### Claim 3 (depends on 1)

The method of claim 1, wherein said sample values comprise transparency values.

### Claim 4 (depends on 1)

The method of claim 1, wherein said operating on said one or more sample values comprises:
spatially filtering said one or more sample values.

### Claim 5 (depends on 1)

The method of claim 1, wherein said determining said sample normal distance for each of the sample positions with respect said line comprises:
computing a vertical displacement between the sample position and the line; and
multiplying the vertical displacement by a slope correction factor.

### Claim 6 (depends on 1)

The method of claim 1, wherein said determining said sample normal distance for each of the sample positions with respect to said line comprises:
computing a horizontal displacement between the sample position and the line; and
multiplying the horizontal displacement by a slope correction factor.

### Claim 7 (depends on 1)

The method of claim 1, wherein said assigning sample values to said sample positions based on the sample normal distance of each sample position comprises:
determining a window value according to a window function for each of said sample positions based on the corresponding sample normal distance;
computing said sample value for each of said sample positions based on the corresponding window value.

### Claim 8 (depends on 7)

The method of claim 7, wherein said determining said window value according to said window function for each of said sample positions comprises:
multiplying the sample normal distance of each sample position by an anti-aliasing correction factor (ACF) to determine a corresponding scaled distance value;
evaluating said window function at the first scaled distance value.

### Claim 9 (depends on 7)

The method of claim 7, wherein said ACF is greater than one.

### Claim 10 (depends on 7)

The method of claim 7, wherein said multiplying the sample normal distance of each sample position by said ACF reduces an apparent width of said line on the displace device.

### Claim 11 (depends on 7)

The method of claim 7, further comprising receiving user input determining said ACF.

### Claim 12 (depends on 7)

The method of claim 7, wherein the window function is a Gaussian function.

### Claim 13 (depends on 7)

The method of claim 7, wherein the window function approaches zero as said sample normal distance increases.

### Claim 14 (depends on 7)

The method of claim 7, wherein the window function attains a value of one for said sample normal distance equal to zero.

### Claim 15

A graphics system for displaying lines on a display device, the graphics system comprising:
a sample buffer;
a rendering unit configured to (a) generate a plurality of sample positions in a two-dimensional space, (b) determine a sample normal distance for each of the sample positions with respect to a line in the two-dimensional space, (c) assign sample values to said sample positions based on the sample normal distance of each of said sample positions, and (d) store said sample values in said sample buffer;
a pixel calculation unit configured to read one or more of said sample values from the sample buffer, operate on said one or more sample values to determine a pixel value, and transmit the pixel value to a display device.

### Claim 16 (depends on 15)

The graphics system of claim 15, wherein said sample values comprise color values.

### Claim 17 (depends on 15)

The graphics system of claim 15, wherein said sample values comprise transparency values.

### Claim 18 (depends on 15)

The graphics system of claim 15, wherein said pixel calculation unit is configured operate on said one or more sample values by spatially filtering said one or more sample values.

### Claim 19 (depends on 15)

The graphics system of claim 15, wherein said rendering unit is configured to determine said sample normal distance for each of the sample positions with respect said line by:
computing a vertical displacement between the sample position and the line; and
multiplying the vertical displacement by a slope correction factor.

### Claim 20 (depends on 15)

The graphics system of claim 15, wherein said rendering unit is configured to determine said sample normal distance for each of the sample positions with respect to said line by:
computing a horizontal displacement between the sample position and the line; and
multiplying the horizontal displacement by a slope correction factor.

### Claim 21 (depends on 15)

The graphics system of claim 15, wherein said rendering unit is configured to assign sample values to said sample positions based on the sample normal distance of each sample position by:
determining a window value according to a window function for each of said sample positions based on the corresponding sample normal distance;
computing said sample value for each of said sample positions based on the corresponding window value.

### Claim 22 (depends on 21)

The graphics system of claim 21, wherein said rendering unit is configured to determine said window value according to said window function for each of said sample positions by:
multiplying the sample normal distance of each sample position by an anti-aliasing correction factor (ACF) to determine a corresponding scaled distance value;
evaluating said window function at the first scaled distance value.

### Claim 23 (depends on 21)

The graphics system of claim 21, wherein said ACF is greater than one.

### Claim 24 (depends on 21)

The graphics system of claim 21, wherein said multiplying the sample normal distance of each sample position by said ACF reduces an apparent width of said line on the displace device.

### Claim 25 (depends on 21)

The graphics system of claim 21, wherein said rendering unit is further configured to receive user input determining said ACF.

### Claim 26 (depends on 21)

The graphics system of claim 21, wherein the window function is a Gaussian function.

### Claim 27 (depends on 21)

The graphics system of claim 21, wherein the window function approaches zero as said sample normal distance increases.

### Claim 28 (depends on 21)

The graphics system of claim 21, wherein the window function attains a value of one for said sample normal distance equal to zero.
