AU6448499A - Overlapping edge blends and other texture mapped regions - Google Patents

Overlapping edge blends and other texture mapped regions Download PDF

Info

Publication number
AU6448499A
AU6448499A AU64484/99A AU6448499A AU6448499A AU 6448499 A AU6448499 A AU 6448499A AU 64484/99 A AU64484/99 A AU 64484/99A AU 6448499 A AU6448499 A AU 6448499A AU 6448499 A AU6448499 A AU 6448499A
Authority
AU
Australia
Prior art keywords
colour
opacity
overlapping region
steps
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
AU64484/99A
Other versions
AU747017B2 (en
Inventor
George Politis
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from AUPP7717A external-priority patent/AUPP771798A0/en
Application filed by Canon Inc filed Critical Canon Inc
Priority to AU64484/99A priority Critical patent/AU747017B2/en
Publication of AU6448499A publication Critical patent/AU6448499A/en
Application granted granted Critical
Publication of AU747017B2 publication Critical patent/AU747017B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Description

S&F Ref: 485131
AUSTRALIA
PATENTS ACT 1990 COMPLETE SPECIFICATION FOR A STANDARD PATENT
ORIGINAL
Name and Address of Applicant: Actual Inventor(s): Address for Service: Invention Title: Canon Kabushiki Kaisha 30-2, Shimomaruko 3-chome Ohta-ku Tokyo Japan George Politis Spruson Ferguson St Martins Tower 31 Market Street Sydney NSW 2000 Overlapping Edge Blends and Other Texture Mapped Regions r ASSOCIATED PROVISIONAL APPLICATION DETAILS [33] Country [31] Applic. No(s) AU PP7717 [32] Application Date 14 Dec 1998 The following statement is a full description of this invention, including the best method of performing it known to me/us:- 5815c C. -1- OVERLAPPING EDGE BLENDS AND OTHER TEXTURE MAPPED REGIONS Field of the Invention The present invention relates to computer graphics and, in particular, to the generation of overlapping texture mapped regions, including parametrically defined colour blends.
Background The display of graphical objects involves considering many issues which influence various aspects of the image being displayed. Examples of such issues include the actual colour being displayed and the time taken to determine (render) the colour to be displayed. Where graphical objects are opaque, these issues are relatively simple.
However, transparent and partly transparent objects complicate issues, particularly where the colour and/or opacity of an object changes or varies within the object boundaries.
Specific problems arise where an object is self-overlapping and the displayed colour is a textural blend of varying colours from the overlapping portions.
It is an object of the present invention to provide a manner in which such selfoverlapping regions may be faithfully rendered in a convenient fashion.
Summary of the Invention In accordance with one aspect of the present invention there is disclosed a 20 method of determining a displayable colour in a self-overlapping region of a variable colour object, said method comprising the steps of: determining, for each point in the region, the colour of each portion of the object present at that point; S"at each said point, averaging the colours present at that point; and .oo..i outputting said averaged colours for reproductions within said region.
In accordance with another aspect of the present invention there is disclosed a method of determining a displayable colour in a self-overlapping region of a variable colour object characterised by the use of a commutative operator that mixes a plurality of colours in an order independent manner.
CFP1541AU Open32 :\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -2- In accordance with another aspect of the present invention there is disclosed a commutative operator for mixing colours having opacity components, said operator being of the form: ncioi /n n cioi n ,over o i ,over o .oi/n i=l oi i=1 n n n where over oi= F oi 1 (l-oi), i=1 i=1 j=i+l In accordance with another aspect of the present invention there is disclosed a method of determining self-overlapping regions of a graphical object, characterised by using the non-zero winding fill rule to accumulate edge transitions of said object in a scan line by scan line fashion.
In accordance with another aspect of the present invention there is disclosed a method for rendering in a scan-line manner an arbitrary object having at least overlapping region, said method comprising the steps of: for each scan line of said object 15 scan converting the object on said scan line determining the overlapping regions of said object within said scan line; initializing a overlap buffer for each said overlapping regions for each portion of the object on said scan line 20 (da) determining if said portion is an overlapping region (daa) if so, accumulating the colour of pixels of said portion in the corresponding said overlap buffer; (dab) if not, writing the colour of pixels to an output buffer; for each overlapping region, calculating an average colour from the corresponding accumulated value in said corresponding overlap buffer; CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc S-3writing the average colours to said output buffer; and transferring values from said output buffer to an output device.
In accordance with another aspect of the present invention there is disclosed an apparatus for determining a displayable colour in a self-overlapping region of a variable colour object, said apparatus comprising: colour determination means for determining, for each point in the region, the colour of each portion of the object present at that point; averaging means, responsive to said colour determination means, adapted to average, at each said point, the colours present at that point; and output means coupled to said averaging means for outputting said averaged colours for reproductions within said region.
In accordance with another aspect of the present invention there is disclosed an apparatus for determining a displayable colour in a self-overlapping region of a variable colour object characterised by comprising a commutative operator means adapted to mix a plurality of colours in an order independent manner.
In accordance with another aspect of the present invention there is disclosed a .:commutative operator means for mixing colours having opacity components, said -operator means adapted to perform the operation: fcioi/n n E cioi n i/n over o over oi/n i=l oi i=l 2 n n n where over oi= o i nF (l-oi), i=l i=l j=i+l In accordance with another aspect of the present invention there is disclosed an apparatus for determining self-overlapping regions of a graphical object, characterised by comprising a non-zero winding fill rule means to accumulate edge transitions of said object in a scan line by scan line fashion.
CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -4- In accordance with another aspect of the present invention there is disclosed an apparatus for rendering in a scan-line manner an arbitrary object having at least overlapping region, said apparatus comprising: for each scan line of said object scan conversion means for scan converting the object on said scan line overlapping region detection means for determining the overlapping regions of said object within said scan line; buffer initialization means for initializing an overlap buffer for each said overlapping regions overlapping region determination means, operative in respect of each portion of the object on said scan line (da) for determining if said portion is an overlapping region (daa) and, if said portion is an overlapping region, adapted to accumulate the colour of pixels of said portion in the corresponding said overlap buffer; (dab) and, if said portion is not an overlapping region, S"adapted to write the colour of pixels to an output buffer; o calculation means, operative in respect of each overlapping region, to 20 calculate an average colour from the corresponding accumulated value in said corresponding overlap buffer; writing means for writing the average colours to said output buffer; and o(g) transferring means for transferring values from said output buffer to an output device.
In accordance with another aspect of the present invention there is disclosed a computer program product including a computer readable medium incorporating a series of instructions configured to determine a displayable colour in a self-overlapping region of a variable colour object, said instructions comprising: CFP1541AU Open32 :\ELECCISRA\OPEN\OPEN32\485131AU.doc determination steps for determining, for each point in the region, the colour of each portion of the object present at that point; averaging steps for at each said point, averaging the colours present at that point; and outputting steps for outputting said averaged colours for reproductions within said region.
In accordance with another aspect of the present invention there is disclosed a computer program product for determining a displayable colour in a self-overlapping region of a variable colour object characterised by comprising commutative operator steps adapted to mix a plurality of colours in an order independent manner.
In accordance with another aspect of the present invention there is disclosed a computer program product comprising commutative operator steps for mixing colours having opacity components, said operator steps adapted to perform the operation: Zcioi/n n cii n ,over o i ,over i Zo i n i=l ,oi i=l n n n where over o i Z o i 1 (1-o i i=l 1=1 j=i+l In accordance with another aspect of the present invention there is disclosed a computer program product for determining self-overlapping regions of a graphical object, characterised by comprising non-zero winding fill rule steps to accumulate edge transitions of said object in a scan line by scan line fashion.
In accordance with another aspect of the present invention, there is provided S" computer program product for rendering in a scan-line manner an arbitrary object having at least overlapping region, said program comprising: for each scan line of said object **oo* scan conversion steps for scan converting the object on said scan line overlapping region detection steps for determining the overlapping regions of said object within said scan line; CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -6buffer initialization steps for initializing a overlap buffer for each said overlapping regions overlapping region determination steps, operative in respect of each portion of the object on said scan line (da) for determining if said portion is an overlapping region (daa) and, if said portion is an overlapping region, adapted to accumulate the colour of pixels of said portion in the corresponding said overlap buffer; (dab) and, if said portion is not an overlapping region, adapted to write the colour of pixels to an output buffer; calculation steps, operative in respect of each overlapping region, to calculate an average colour from the corresponding accumulated value in said corresponding overlap buffer; writing steps for writing the average colours to said output buffer; and transferring steps for transferring values from said output buffer to an output device.
*oo.
Brief Description of the Drawings 20 A number of aspects of the prior art and a number of embodiments of the present invention will now be described with reference to the drawings in which: Figs. 1A and 1B depict prior art two-dimensional parameterized regions; Figs. 2A and 2B depict a prior art distortion to an image; Figs. 3A and 3B depict a prior art mesh technique used to improve speed of rendering at the expense of quality; I 4 depicts an overlapping ruled surface to which an embodiment of the present invention may be applied; Fig. 5A depicts another ruled surface; Figs. 5B and 5C depict application of the embodiments to the regions of Fig. CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc Figs. 6A to 6C depict how the non-zero winding rule may be applied to the regions of Fig. 4; Fig. 7 depicts application of the mesh techniques to the rendering of Fig. 4 and highlights mesh elements that are affected by self-overlap; Fig. 8 depicts a set of scan line runs generated using the winding counting fill rule and a generated array of transition points; Fig. 9 is a block diagram of a general purpose computer upon which the preferred embodiment of the present invention can be practiced; Fig. 10 depicts the method steps performed in one embodiment; and Fig. 11 depicts the method steps performed in a scan-line rendering embodiment.
Detailed Description Prior to discussing the present invention and its embodiments, it is appropriate to review current techniques for rendering texture mapped regions.
Given a region of space R over which a two-dimensional parameterization x(u,v) is defined, for example, a ruled surface as in Fig.
1A, or a Coons patch as in Fig. 1B, and (ii) some image, texture map, blend procedural texture or the like T(u,v) that yields colour (and/or opacity value) for given in suitable range, 20 it is possible to create an image distortion or curved colour blend or the like, by taking the colour T(u,v) at each value and drawing it at position as illustrated in Figs. 2A and 2B.
Conversely, it is possible to determine the value for each point x in the .region R, look up the colour T(u,v) at and draw it at x. This presupposes that the *o*t*9 mapping x(u,v) is invertible and can be inverted with sufficient ease.
An alternative approach that has been used is to provide an inverse distortion and to derive the colour at each by first deriving then looking up then drawing the colour at x In this scheme, the region defined by u acts like a "cookie" section cutter on T, then distorts the cut (cookie) section into a CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -8rectangle. This approach has the advantage that an easily invertible mapping is not required. However, it is not easy with this method to take a rectangular shape and distort it into a required irregular shape, as seen in Fig. 2B.
A common technique employed to improve the speed of such techniques is to divide the parameterized region R into a mesh of points at which the parameterization is calculated, an example of which is seen in Figs. 3A and 3B. The colour can be looked up in T at the mesh points and then linearly interpolated. The finer the mesh, the better the quality, but the slower the rendering. As shown in Fig. 3B, the mesh is often subdivided into triangles, which are the simplest polygon to render.
One difficulty with the first approach (where x(u,v) and T(u,v) are given) is that the region x(u,v) may self-overlap, as illustrated in Fig. 4. In this case, x(u,v) has no unique inverse within the overlapping region, with two competing choices for the correct colour.
Where the overlapping shape is a two-dimensional projection of a threedimensional object, each point will have a distance from the viewpoint. A variety of algorithms exist for determining which point in a region of overlap is the one closest to the viewpoint, and whose colour is thus typically chosen as the one to render at that point.
In situations where alpha-channel compositing is available, however, it is **possible to define a sensible colour for the overlapping region. Suppose there are two 20 overlapping objects, one with colour cl, and opacity ol, and the other with colour c 2 and opacity 02. In practice, three colour channels, (R 1
,G
1
,B
1 and (R 2
G
2
B
2 may be used. For simplicity, and without loss of generality, one channel will only be considered.
The colour and opacity can be stored together as a tuple It is customary in alphachannel compositing to store the colour and the opacity multiplied together, thus representing the two colours as (clol,ol) and (c 2 0 2 ,o 2 (In mathematical expressions, angle brackets will be used here to notate these "premultiplied" colours).
A commonly used effect that simulates the superposition of one object on the other is provided by the "over" operator: (clo 1 ,o 1 over (c 2 0 2 ,o 2 (c 1 o 1 (1 o0)c20 2 01 02 0102).
CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc Note that this operator is not commutative, that is, in general, (cloI,o) over (c 2 o 2 ,o 2 (c 2 o 2 ,o 2 over (clol,ol).
In other words, given a series of two or more objects, the order in which they are superposed is significant. However, it is worthwhile noting that the resulting opacity is independent of the order of the objects.
Returning to the difficulty of overlapping regions, at any point p where over parameterized region R overlaps itself such as seen in Fig. 4, there are two or more sets of parametric coordinates that map to p: P x(ul,vl) x(u 2
,V
2 It is possible to obtain, from these parametric coordinates, a set of competing colours that contribute to the net colour at p in some way: (clo 1 ,o 1 T(ul,v), (c 2 0 2 ,0 2 T(u 2 ,v 2 Combining these colours using the "over" operator may be unsuitable because it implies an ordering. Unless some specific application dictates an ordering, such as one based upon parameterization, in general none is imposed by the geometry or other •intrinsic aspect of this process.
Addressing this issue, in accordance with the present invention, a number of 20 embodiments are proposed that permit calculation of the overlapping area to obtain a textured result.
A first embodiment presents the opacity-weighted average: n n (1) where n is the number of parametric coordinates (ui,vi) that map to the point p in question. Expression has the effect of mixing the contributing colours and averaging their opacities. An important advantage of averaging cio i rather than c i is that colours that are nearly transparent contribute only in a small way to the result, while nearly opaque colours contribute significantly. Thus, for example, while mixing 50% transparent red CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc and 50% transparent yellow should give orange, a nearly opaque red mixed with a barely visible yellow should yield a colour not far from red.
The simpler form (Ci o n n is possible if desired in some application.
Secondly, a more sophisticated approach is to mix the colour as in Expression but to simulate the effect of "over" in increasing the opacity as more and more contributing colours are superposed: C cioi/n n (cioi n oi over o i ,over oi Soi/n i=l Loi i=l (2) n n n where over o= E o FI (1-oi), i=1 i=l j=i+l ie., the opacity of( x, o over x, 02 over x, on An advantage of this second, albeit more complicated method, is shown in Figs. 5A, 5B and Fig. 5A shows a ruled surface in which opacity o(u,v) v. Fig. 5B shows an 15 opacity profile along line L of Fig. 5A derived by averaging contributing opacities (as per Expression Fig. 5C shows an opacity profile along line L of Fig. 5B derived by accumulating contributing opacities with "over" (as per Expression As can be seen, Expression yields a result without the discontinuities of Fig. *9 9 A description of how such techniques can be implemented follows, with primary emphasis on scan line rendering. The methods described can be generalised easily to band or frame buffer rendering.
The simplest approach is to store, for each pixel, running sums k C I cioi, i= 1 CFP1541AU Open32 1:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -11 k A= 1 oi i=1 k, and, for the second method, k B over o i=1 Initially, for every pixel the values are set such that A B =C k 0.
As each pixel is rendered by whatever means, for example by dividing the region into a mesh and linearly interpolating intermediate colours, A, B and C are accumulated, and k is incremented. When rendering is finished, Expression or is calculated: Cioi £oi C A\ n n \k k (3) or cioi over i B A 0 i i 0) A=0 (4) An inefficiency with this technique is that in regions where there is only one contributing colour, extra storage and complicated arithmetic are not needed for S" ~evaluation. If the regions where overlaps occur can be identified, it is then possible to limit the storage and calculation of running sums and final division to the pixels within Sthose regions. Pixels outside can be written into a scan line (or frame, etc.) buffer directly.
One method for identifying those regions is to generate an outline for the region R and scan convert the region R using the non-zero winding method and maintaining a count of the number of contributing colours in a region. This will provide, for each scan line, information about which pixels have one contributing region, two contributing regions, and so on, as seen in Figs. 6A to 6C.
Fig. 6A shows a directed outline derived from the ruled surface R of Fig. 4.
Applying scan conversion using the non-zero winding method returns the number of CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -12portions of R that contribute to each pixel, as shown in Fig. 6B. On each scan line, as seen in Fig. 6B, non-zero winding scan conversion identifies a series of segments each having an associated count as seen in Fig. 6C.
In the case where the region R has been subdivided into a mesh and linear interpolation applied, care must be taken in cases where a sequence of linearly interpolated pixels cross a boundary of a segment returned by the "non-zero winding" method of scan conversion. Fig. 7 illustrates an example where this happens, with a triangular mesh derived from the ruled surface of Fig. 4. The shaded triangles span regions with different winding count, as seen from Fig. 6. In those cases, the linear interpolation must be broken into two (or more, as required) loops. The portions relating to winding count 1 are determined simply by writing the interpolated colours, while those with greater winding count are determined by accumulating partial sums (and later calculating the final colour and opacity).
Further details may now be discussed about how rendering would take place.
For each scan line, a set of runs is returned from the scan conversion of the ooutline of region R, as in Fig. 6C. These can be processed into a set of transition points where the fill count changes between less than 2 and 2 or more, with the transition points stored in an array, X, as shown in Fig. 8. It will be observed that regions with fill count of 2 or more lie between points in array X indexed by even numbers and points indexed.
An additional final entry containing a very large number (denoted oo is required by the method described above.
A scan line without any occurrence of fill count 2 or more only has o• a X[o] 00.
i The next thing to do is to initialize buffers in regions where the fill count is 2 or more.
When rendering each triangle, the process described the following pseudocode may be implemented: Determine Xstart, xend, the range of pixels in the current scan line required to fill the triangle CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -13i--0 while Xstart X[i] do Increment i while Xend 2 X[i] do begin if i is odd then Generate data for pixels xstart to X[i] 1 and accumulate data in buffers, for example, sums A, B, C and k defined above.
else Generate data for pixels xstar t to X[i] 1 and write data directly into output buffer.
Xstart X[i] Increment i end if i is odd then Generate data for pixels xstart to xend 1 and accumulate data in buffers, for example, sums A, B, C and k defined above.
else Generate data for pixels xstart to Xend 1 and write data directly in output buffer.
After all triangles have been rendered, calculate output pixels can be determined for regions where the fill count is 2 or more, for example, by evaluating Expression (1) or using terms A, B, C and k.
n n 2e.. over o i oi An alternative to 1 for opacity is simply 1 ,clamped at the maximum opacity, usually defined to be 1.
It will be apparent from the foregoing that a means for generating overlapping texture mapped regions and in particular overlapping parametrically defined colour blends is provided that affords practical results whilst keeping the amount of memory and 30 processing comparable to prior art methods. The various alternatives for texture determination may be selected depending upon specific requirements of the desired result.
The preferred embodiment of the invention can be practised using a conventional general-purpose (host) computer system, such as the computer system 40 shown in Fig. 9, CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc
I
-14wherein the various method steps performed are implemented as an application program software executed on the computer system 40. The computer system 40 comprises a computer module 41, input devices such as a keyboard 42 and mouse 43, output devices including a printer 13 and a display device 11. A Modulator-Demodulator (Modem) transceiver device 52 is used by the computer module 41 for communicating to and from a communications network, for example, connectable via a telephone line or other functional medium. The modem 52 can be used to obtain access to the Internet, and other network systems.
The computer module 41 typically includes at least one processor unit 45, a memory unit 46, for example, formed from semiconductor random access memory (RAM) and read only memory (ROM), input/output interfaces including a video interface 47, and an I/O interface 48 for the keyboard 42, a mouse 43 and optionally a joystick (not illustrated). A storage device 49 is provided and typically includes a hard disk drive 53 and a floppy disk drive 54. A CD-ROM drive 55 is typically provided as a non-volatile source of data. The components 45 to 49 and 53 to 55 of the computer module 41, typically communicate via an interconnected bus 50 and in a manner which 0ooo results in a conventional mode of operation of the computer system 40 known to those in the relevant art. Examples of computers on which the embodiments can be practised include IBM-PC's and compatibles, Sun Sparcstations or alike computer systems evolved therefrom. Typically, the application program of the preferred embodiment is resident on a hard disk drive 53 and read and controlled using the processor 45. Intermediate storage of the program and the print list and any data fetched from the network may be accomplished using the semiconductor memory 46, possibly in concert with the hard disk i drive 53. In some instances, the application program may be supplied to the user encoded 25 on a CD-ROM or floppy disk, or alternatively could be read by the user from the network a..
via the modem device 52.
Fig. 10 indicates the various method steps 100 implemented in one embodiment.
The method 100 commences at step 102 where a graphic object forming part of the image to be rendered is examined to determined those regions of the object that are self- CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc overlapping. As indicated above, this is preferably performed using the non-zero winding method. This is followed by step 104 where a determination is made as to whether any such regions require processing. If so, step 106 follows which examines if any portions of the region require processing. A single overlap provides two portions and a double overlap gives three, and so on. If so, the colour at each point (eg. pixel) within the position is examined at step 108 and at step 110 that colour is accumulated with colours at the same point locations from other portions in the region. After step 110, control returns to step 106. It will be apparent from this process that the averaging over the portions in a region can be performed progressively without a need to simultaneously store each pixel value for each location for each portion. When step 106 determines all portions in a region have been processed, the average colour for each point in the region is calculated at step 112. When there are no more regions, step 104 passes control to step 114 where pixel data for the object including all overlapping and non-overlapping regions are output.
The pixel data may be output for display by either the video display 11 or the printer 13.
Alternatively, the data may be stored in the memory 46 or using the devices 49. Further, the pixel data may be output to a computer network via the modem 52.
graphical object being rendered is typically variable in colour and/or opacity.
For example the object may be formed of a distorted, tiled or texture-mapped pixel-based a..
image, or any combination of such. The object may also be a spatially or parametrically defined blend of colour and/or opacity. The object may also be a spatially or •parametrically defined procedural texture.
Fig. 11 shows a method 200 for rendering an arbitrary object having overlapping o a regions in a scan-line manner. The method 200 commences with step 202 with an initialization for scan conversion of the scan line. Step 204 determines if there are lines 25 remaining for scan conversion and, on a positive response (yes) step 206 scan converts the next scan line. Step 208 which follows determines the overlapping regions within the scan line, and step 210 initializes temporary buffers for the overlapping regions. Step 212 commences a loop which operates on each portion of the object on the current scan line.
Step 214 which follows determines if the current portion is an overlapping region CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -16determined from step 208. If so, step 216 follows which accumulates the colour of pixels of that portion in the temporary buffer for that overlapping region. Control then returns to step 214 to examine if there are any more portions on the current scan line. If, from step 214, the region is not an overlapping region, step 218 follows which writes the pixel colour values directly to an output buffer. When step 212 determines there are no more portions of the object on the current scan line, step 220 follows to calculate the average colour for each pixel in each overlapping region. Step 222 then writes the average colours to the output buffer and step 224 follows by sending the completed filled) output buffer to an output device, such as a printer or display, for reproduction. Control then returns to step 204 for consideration of the next scan line. When all scan lines have been converted, step 226 ceases scan conversion.
The foregoing describes only a number of embodiments of the present invention and modification may be made thereto without departing from the scope of the present invention.
For example, the weighted average opacity determined using Expression may not always be desired. In some instances an unweighted (direct) average may give a desired effect. Further, the colours at the overlap may be combined, in an alternative to average, by for example accumulating their values. Where appropriate, a predetermined Z "clamp level can be used to ensure at least a minimum level of translucency rather than allowing the texture to become wholly opaque.
*m CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc

Claims (45)

1. A method of determining a displayable colour in a self-overlapping region of a variable colour object, said method comprising the steps of: determining, for each point in the region, the colour of each portion of the object present at that point; at each said point, averaging the colours present at that point; and outputting said averaged colours for reproductions within said region.
2. A method according to claim 1, wherein each said colour includes an opacity component and the average colour at each said point is calculated by weighting each colour by the corresponding opacity, and determining a resultant opacity.
3. A method according to claim 2, wherein the resultant opacity is determined by adding individual opacities together.
4. A method according to claim 3, wherein said added opacities are clamped to a S.predetermined level when a sum exceeds said predetermined level.
5. A method according to claim 2, wherein the resultant opacity is determined by 20 evaluating the "over" formula of Expression as herein defined.
6. A method according to claim 2, wherein the resultant opacity is determined by o averaging the opacity of each said colour.
7. A method according to any one of the preceding claims, characterised by using the winding fill rule method to determine said self-overlapping region.
8. A method according to claim 7, wherein the winding fill rule method determines said self-overlapping region on a scanline by scanline basis. CFP1541AU Open 32 I:ELEC\CISRA\OPEN\OPEN32\485131AU.doc -18-
9. A method according to claim 8, wherein an array of transition points is used to store those pixels on a scan line that lie within said self-overlapping region.
10. A method according to any one of claims 1 to 9, wherein said variable colour object is a distorted and/or tiled and/or textured mapped pixel-based image.
11. A method according to any one of claims 1 to 9, wherein said variable colour object is a spatially or parametrically defined blend of colour and/or opacity.
12. A method according to any one of claims 1 to 9, wherein said variable colour object is a spatially or parametrically defined procedural texture.
13. A method of determining a displayable colour in a self-overlapping region of a variable colour object characterised by the use of a commutative operator that mixes a plurality of colours in an order independent manner. 0* *g S14. A method according to claim 13, wherein at least one of said colours comprises an opacity component.
15. A method according to claim 14, wherein said commutative operator is: (Ecioi/n n (Ecioi n .r over oi over i So i n i=l oi i=l n n n where over o i o i F (1-o i i=l i=1 j=i+l where c i and o i are the colour and opacity respectively at one pixel location within one portion of the overlap of said object. CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -19-
16. A commutative operator for mixing colours having opacity components, said operator being of the form: (Ecioi /n n I cii n ,over o ,over o Eoi/n i=l oi i=l n n n where over o= E oi 1 (l-o i i=l 1=1 j=i+l
17. A method of determining a displayable colour in a self-overlapping region of a variable colour object substantially as described herein with reference to any one of the embodiments with reference to Figs. 5 to 8 of the drawings.
18. A method of determining self-overlapping regions of a graphical object, characterised by using the non-zero winding fill rule to accumulate edge transitions of said object in a scan line by scan line fashion. o 19. A method according to claim 18, wherein regions of said object having a fill 15 count of 2 or more as determined by said rule define said self-overlapping regions. A method for rendering in a scan-line manner an arbitrary object having at least overlapping region, said method comprising the steps of: for each scan line of said object 20 scan converting the object on said scan line determining the overlapping regions of said object within said scan line; initializing a overlap buffer for each said overlapping regions for each portion of the object on said scan line (da) determining if said portion is an overlapping region (daa) if so, accumulating the colour of pixels of said CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc portion in the corresponding said overlap buffer; (dab) if not, writing the colour of pixels to an output buffer; for each overlapping region, calculating an average colour from the corresponding accumulated value in said corresponding overlap buffer; writing the average colours to said output buffer; and transferring values from said output buffer to an output device.
21. A method according to claim 20 wherein said output buffer comprises a line buffer.
22. An apparatus for determining a displayable colour in a self-overlapping region of a variable colour object, said apparatus comprising: colour determination means for determining, for each point in the region, the •colour of each portion of the object present at that point; averaging means, responsive to said colour determination means, adapted to average, at each said point, the colours present at that point; and output means coupled to said averaging means for outputting said averaged colours for reproductions within said region. *e
23. An apparatus according to claim 22, wherein each said colour includes an opacity component, and wherein said colour determination means further comprise opacity determination means, and wherein said averaging means further comprises opacity weighting means responsive to said determined colours and corresponding opacities, and the average colour at each said point is calculated by weighting each colour by the corresponding opacity, and determining a resultant opacity. CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -21
24. An apparatus according to claim 23, said opacity weighting means further comprising adding means, wherein the resultant opacity is determined by adding individual opacities together.
25. An apparatus according to claim 24, said adding means further comprising clamping means, wherein said added opacities are clamped to a predetermined level when a sum exceeds said predetermined level.
26. An apparatus according to claim 23, wherein said opacity weighting means is adapted to determine the resultant opacity by evaluating the "over" formula of Expression as herein defined.
27. An apparatus according to claim 23, wherein said opacity weighting means is adapted to determine the resultant opacity by averaging the opacity of each said colour.
28. An apparatus according to any one of the preceding claim numbers 22 to 27, characterised by winding fill rule means adapted to use the winding fill rule method to determine said self-overlapping region.
29. An apparatus according to claim 28, wherein the winding fill rule means is further adapted to determine said self-overlapping region on a scanline by scanline basis. An apparatus according to claim 29, wherein the winding fill rule means are -0: further adapted to use an array of transition points to store those pixels on a scan line that 0* lie within said self-overlapping region.
31. An apparatus for determining a displayable colour in a self-overlapping region of a variable colour object characterised by comprising a commutative operator means adapted to mix a plurality of colours in an order independent manner. CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -22-
32. An apparatus according to claim 31, wherein at least one of said colours comprises an opacity component, wherein said commutative operator means is adapted to perform an operation: Ecioi /n n I cioi n -on over i ,over o i i=l oi i=l n n n where over oi oi I -oi), i=1 i=1 j=i+l where ci and oi are the colour and opacity respectively at one pixel location within one portion of the overlap of said object.
33. A commutative operator means for mixing colours having opacity components, said operator means adapted to perform the operation: Z cio i n n Z| cioi n over oi ,over o oi/n i=l Zoi i=l o$ n n n where over oi=. O i (1-oi), 15 i=1 i1= j= i+
34. An apparatus for determining a displayable colour in a self-overlapping region of a variable colour object substantially as described herein with reference to any one of the embodiments as that embodiment is described in the accompanying drawings. .o
35. An apparatus for determining self-overlapping regions of a graphical object, characterised by comprising a non-zero winding fill rule means to accumulate edge transitions of said object in a scan line by scan line fashion. CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -23-
36. An apparatus for rendering in a scan-line manner an arbitrary object having at least overlapping region, said apparatus comprising: for each scan line of said object scan conversion means for scan converting the object on said scan line overlapping region detection means for determining the overlapping regions of said object within said scan line; buffer initialization means for initializing an overlap buffer for each said overlapping regions overlapping region determination means, operative in respect of each portion of the object on said scan line (da) for determining if said portion is an overlapping region (daa) and, if said portion is an overlapping region, adapted to accumulate the colour of pixels of said portion in the corresponding said overlap buffer; (dab) and, if said portion is not an overlapping region, adapted to write the colour of pixels to an output buffer; calculation means, operative in respect of each overlapping region, to calculate an average colour from the corresponding accumulated value in said 20 corresponding overlap buffer; writing means for writing the average colours to said output buffer; and transferring means for transferring values from said output buffer to an output device. a.. C a. a a a C. a
37. buffer. An apparatus according to claim 36 wherein said output buffer comprises a line CFP1541AU Open32 :\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -24-
38. A computer program product including a computer readable medium incorporating a series of instructions configured to determine a displayable colour in a self-overlapping region of a variable colour object, said instructions comprising: determination steps for determining, for each point in the region, the colour of each portion of the object present at that point; averaging steps for, at each said point, averaging the colours present at that point; and outputting steps for outputting said averaged colours for reproduction within said region.
39. A computer program product according to claim 38, wherein each said colour includes an opacity component, and wherein said colour determination steps further comprise opacity determination steps, and wherein said averaging steps further comprise opacity weighting steps responsive to said determined colours and corresponding opacities, and the average colour at each said point is calculated by weighting each colour by the corresponding opacity, and determining a resultant opacity. oo. A computer program product according to claim 39, said opacity weighting steps further comprising adding steps, wherein the resultant opacity is determined by adding individual opacities together. U. o• U -U
41. A computer program product according to claim 40, said adding steps further .i comprising clamping steps, wherein said added opacities are clamped to a predetermined o.oi level when a sum exceeds said predetermined level.
42. A computer program product according to claim 39, wherein said opacity weighting steps are adapted to determine the resultant opacity by evaluating the "over" formula of Expression as herein defined. CFP1541AU Open32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc
43. A computer program product according to claim 39, wherein said opacity weighting steps are adapted to determine the resultant opacity by averaging the opacity of each said colour.
44. A computer program product according to any one of the preceding claim numbers 38 to 43, characterised by winding fill rule steps adapted to use the winding fill rule method to determine said self-overlapping region. A computer program product according to claim 44, wherein the winding fill rule steps are further adapted to determine said self-overlapping region on a scanline by scanline basis.
46. A computer program product according to claim 45, wherein the winding fill rule steps are further adapted to use an array of transition points to store those pixels on a scan line that lie within said self-overlapping region.
47. A computer program product for determining a displayable colour in a self- overlapping region of a variable colour object characterised by comprising commutative operator steps adapted to mix a plurality of colours in an order independent manner.
48. A computer program product according to claim 47, wherein at least one of said colours comprises an opacity component, wherein said commutative operator steps are adapted to perform an operation: FEcioi/n n zcioi n over oi over oi :oi/n i=1 .oi i=1 n n n where over oi= X o i I (l-oi), i=l i=1 j=i+l CFP1541AU Open 32 I:\ELEC\CISRA\OPENOPEN32\485131AU.doc r -26- where c i and o i are the colour and opacity respectively at one pixel location within one portion of the overlap of said object.
49. A computer program product comprising commutative operator steps for mixing colours having opacity components, said operator steps adapted to perform the operation: Ecioi /n n Z cioi n over o i c ,over oi Soi/n i=l oi i=l n n n where over o= Z oi 1 (l-oi), i=1 i=1 j=i+l A computer program product for determining a displayable colour in a self- overlapping region of a variable colour object substantially as described herein with reference to any one of the embodiments as that embodiment is described in the accompanying drawings.
51. A computer program product for determining self-overlapping regions of a 15 graphical object, characterised by comprising non-zero winding fill rule steps to accumulate edge transitions of said object in a scan line by scan line fashion.
52. A computer program product for rendering in a scan-line manner an arbitrary object having at least overlapping region, said program comprising: for each scan line of said object scan conversion steps for scan converting the object on said scan line overlapping region detection steps for determining the overlapping ,regions of said object within said scan line; buffer initialization steps for initializing a overlap buffer for each said overlapping regions CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32\485131AU.doc -27- overlapping region determination steps, operative in respect of each portion of the object on said scan line (da) for determining if said portion is an overlapping region (daa) and, if said portion is an overlapping region, adapted to accumulate the colour of pixels of said portion in the corresponding said overlap buffer; (dab) and, if said portion is not an overlapping region, adapted to write the colour of pixels to an output buffer; calculation steps, operative in respect of each overlapping region, to calculate an average colour from the corresponding accumulated value in said corresponding overlap buffer; writing steps for writing the average colours to said output buffer; and transferring steps for transferring values from said output buffer to an output device. 0 0000 SO.. 6 S S S 0*@0 5005 0 *50 DATED this third Day of December 1999 Canon Kabushiki Kaisha Patent Attorneys for the Applicant SPRUSON FERGUSON 0 00 0 CFP1541AU Open 32 I:\ELEC\CISRA\OPEN\OPEN32485131AU.doc
AU64484/99A 1998-12-14 1999-12-13 Overlapping edge blends and other texture mapped regions Ceased AU747017B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU64484/99A AU747017B2 (en) 1998-12-14 1999-12-13 Overlapping edge blends and other texture mapped regions

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
AUPP7717 1998-12-14
AUPP7717A AUPP771798A0 (en) 1998-12-14 1998-12-14 Overlapping edge blends and other texture mapped regions
AU64484/99A AU747017B2 (en) 1998-12-14 1999-12-13 Overlapping edge blends and other texture mapped regions

Publications (2)

Publication Number Publication Date
AU6448499A true AU6448499A (en) 2000-06-22
AU747017B2 AU747017B2 (en) 2002-05-09

Family

ID=25634378

Family Applications (1)

Application Number Title Priority Date Filing Date
AU64484/99A Ceased AU747017B2 (en) 1998-12-14 1999-12-13 Overlapping edge blends and other texture mapped regions

Country Status (1)

Country Link
AU (1) AU747017B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06180760A (en) * 1990-12-28 1994-06-28 Apple Computer Inc Method for drawing one main shape in computer graphic apparatus and computer graphic apparatus
AU695019B2 (en) * 1994-09-12 1998-08-06 Canon Kabushiki Kaisha Rendering of overlapping objects

Also Published As

Publication number Publication date
AU747017B2 (en) 2002-05-09

Similar Documents

Publication Publication Date Title
CN111508052B (en) Rendering method and device of three-dimensional grid body
US5734386A (en) System and method for displaying textured polygons using planar texture interpolation
US6184891B1 (en) Fog simulation for partially transparent objects
US7567258B2 (en) Hardware-accelerated anti-aliased vector graphics
US7924278B2 (en) Real-time GPU rendering of piecewise algebraic surfaces
US5812141A (en) Method and apparatus for an adaptive texture mapping controller
US7233332B2 (en) Method and apparatus for rendering shadows
US6982723B1 (en) Method and apparatus for eliminating unwanted steps at edges in graphic representations in the line raster
US20050068333A1 (en) Image processing apparatus and method of same
US20040174376A1 (en) Support of multi-layer transparency
US20060250415A1 (en) Anti-aliasing content using opacity blending
WO1994022101B1 (en) Method and system for image processing
US5841443A (en) Method for triangle subdivision in computer graphics texture mapping to eliminate artifacts in high perspective polygons
KR100241060B1 (en) Determining the level of detail for texture mapping in computer graphics
EP1480171B1 (en) Method and system for supersampling rasterization of image data
US7495672B2 (en) Low-cost supersampling rasterization
US6489966B1 (en) Graphic processing device
US20020089512A1 (en) Reduced texture bandwidth method for providing filtering between texture mipmap levels
US6788310B1 (en) Determining a displayable color in a self-overlapping region of a color object
US7656411B2 (en) Matched texture filter design for rendering multi-rate data samples
AU747017B2 (en) Overlapping edge blends and other texture mapped regions
US7215342B2 (en) System and method for detecting and converting a transparency simulation effect
EP1431920A1 (en) Low-cost supersampling rasterization
US20030122821A1 (en) Overlapping triangle meshes
US6570575B1 (en) Associated color texture processor for high fidelity 3-D graphics rendering

Legal Events

Date Code Title Description
FGA Letters patent sealed or granted (standard patent)