US20070229509A1 - Graphic system, broken line texture image generation apparatus, and broken line texture image generation method - Google Patents
Graphic system, broken line texture image generation apparatus, and broken line texture image generation method Download PDFInfo
- Publication number
- US20070229509A1 US20070229509A1 US11/489,586 US48958606A US2007229509A1 US 20070229509 A1 US20070229509 A1 US 20070229509A1 US 48958606 A US48958606 A US 48958606A US 2007229509 A1 US2007229509 A1 US 2007229509A1
- Authority
- US
- United States
- Prior art keywords
- broken line
- row
- area
- texture image
- pattern
- 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.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
Definitions
- the present invention relates to a graphic system for drawing a broken line using a broken line texture image, and an apparatus and a method for generating a broken line texture image.
- the patent document 1 Japanese Published Patent Application No. H10-188006 discloses an apparatus for drawing desired line graphics in a solid line drawing process based on a contour and a background by generating a desired background seen through from inside the contour when the information about the contour expressing a broken line to be drawn by a solid line is input.
- the patent document 2 Japanese Published Patent Application No.
- 2000-108447 discloses an apparatus of inputting line data when a broken line is drawn, dividing a straight line at a predetermined rate and generating a partial straight line by a broken line for the broken line drawing portion, generating a partial straight line portion path area with the partial straight line portion centered corresponding to the number of broken line drawing portions, converting the partial straight line portion path area into bit map data and painting the area in foreground color, generating an entire straight line portion path area with the straight line centered, converting the entire straight line portion path area into bit map data and painting the area in background color, overwriting and combining the bit map data of the partial straight line portion path area and the bit map data of the entire straight line portion path area, and printing the bit map data.
- the present invention has been developed to solve the above-mentioned problems, and aims at providing a graphic system, a broken line texture image generation apparatus, and a broken line texture image generating method for facilitating the generation and management of a broken line texture image and reducing the performance degradation by the overhead required when a broken line texture image is pasted.
- the graphic system includes: a storage unit for storing a broken line texture image in which a broken line pattern by modifier function is arranged; a read unit for reading a specific broken line pattern arranged in the broken line texture image based on the coordinates on the broken line texture image; and a drawing unit for drawing a broken line using a broken line pattern read by the read unit.
- the first aspect can also be constituted by: a generation unit for newly generating a broken line texture image having a first area in which a broken line pattern by modifier function is arranged and a second area used as a work area in which the broken line pattern is generated; a paint unit for painting a first row in the second area in a foreground color of a broken line, and painting a second row in the second area in a background color of the broken line; an assigned color paint unit for painting in assigned color a third row in the second area corresponding to a pattern of the broken line; and a write unit for writing a broken line pattern relating to the broken line to a specific row in the first area based on the first and second rows painted by the paint unit and the third row painted in assigned color by the assigned color paint unit.
- a broken line texture image can be more simply and easily generated.
- the broken line texture image generation apparatus includes: a generation unit for newly generating a broken line texture image having a first area in which a broken line pattern by modifier function is arranged and a second area used as a work area in which the broken line pattern is generated; a paint unit for painting a first row in the second area in a foreground color of a broken line, and painting a second row in the second area in a background color of the broken line; an assigned color paint unit for painting in assigned color a third row in the second area corresponding to a pattern of the broken line; and a write unit for writing a broken line pattern relating to the broken line to a specific row in the first area based on the first and second rows painted by the paint unit and the third row painted in assigned color by the assigned color paint unit.
- the broken line texture image generating method includes: generating a broken line texture image having a first area in which a broken line pattern by modifier function is arranged and a second area used as a work area in which the broken line pattern is generated; painting a first row in the second area in a foreground color of a broken line, and painting a second row in the second area in a background color of the broken line; painting in assigned color a third row in the second area corresponding to a pattern of the broken line; and writing a broken line pattern relating to the broken line to a specific row in the first area based on the first and second painted in assigned color and the third row painted in assigned color.
- FIG. 1 shows the main configuration of the graphic system according to a mode for embodying the present invention
- FIG. 2 shows an example of a broken line texture image
- FIG. 3 shows an example of drawing a broken line
- FIG. 4A is a first view showing an example of drawing a broken curve graphic by broken lines
- FIG. 4B is a second view showing an example of drawing a broken curve graphic by broken lines
- FIG. 4C is a third view showing an example of drawing a broken curve graphic by broken lines
- FIG. 5A is a first view for explanation of a process of generating a body broken line pattern
- FIG. 5B is a second view for explanation of a process of generating a body broken line pattern
- FIG. 5C is a third view for explanation of a process of generating a body broken line pattern
- FIG. 6A is a first view for explanation of a process of generating a frame broken line pattern
- FIG. 6B is a second view for explanation of a process of generating a frame broken line pattern
- FIG. 6C is a third view for explanation of a process of generating a frame broken line pattern
- FIG. 7A is a first view for explanation of a process of generating a shading broken line pattern
- FIG. 7B is a second view for explanation of a process of generating a shading broken line pattern.
- FIG. 7C is a third view for explanation of a process of generating a shading broken line pattern.
- FIG. 1 shows the main configuration of the graphic system according to a mode for embodying the present invention.
- the graphic system can be a broken line texture image generation apparatus because the system is specifically capable of generating a broken line texture image described later.
- the graphic system comprises a CPU 1 , main memory 2 , a graphics LSI 3 , graphics memory (VRAM) 4 , and a display device 5 .
- the CPU 1 controls the entire operation of the graphic system by reading and executing the program stored in the ROM not shown in the attached drawings.
- the main memory 2 is used as a work area for execution of the control process performed by the CPU 1 .
- the graphics LSI 3 comprises a drawing module 3 a for drawing a broken line, etc. in a frame buffer area 4 a of the graphics memory 4 , a texture module 3 b for reading a texture image from a texture storage area 4 b of the graphics memory 4 , and a display module 3 c for a read and display of the contents drawn in the frame buffer area 4 a of the graphics memory 4 on the display device 5 , and performs the process under the control of the CPU 1 .
- the modules 3 a, 3 b, and 3 c can be realized by hardware, software, or both of them.
- the graphics memory 4 comprises the frame buffer area 4 a in which a drawing process is performed, and the texture storage area 4 b storing a texture image such as a broken line texture image, etc., and is used in the process performed by the graphics LSI 3 .
- FIG. 1 shows the storage of three broken line texture images (“broken line pattern set 1 ”, “broken line pattern set 2 ”, and “broken line pattern set 3 ”) in the texture storage area 4 b.
- Each of the broken line texture images is independently provided for each set of broken line patterns by modifier function applied to the same segment.
- the display device 5 displays the contents drawn in the frame buffer area 4 a of the graphics memory 4 .
- FIG. 2 shows an example of a broken line texture image.
- the broken line pattern of a broken line texture image is defined in the horizontal direction (S coordinates), and the broken line pattern by modifier function applied to the same segment is arranged in the vertical direction (T coordinates).
- a broken line pattern by modifier function a body broken line pattern is arranged in the first row
- a broken line pattern for a frame hereinafter referred to simply as a “frame broken line pattern”
- a broken line pattern for shading hereinafter referred to simply as a “shading broken line pattern”
- the broken line patterns bymodifier function are arranged in the upper area (first area), and an area as a broken line pattern generation work area is reserved in the lower area (second area) .
- This area is described later in detail, and is used when abroken line pattern arranged in the upper portion is generated.
- the broken line drawing process performed by the graphics LSI 3 as a process performed in the graphic system.
- the broken line texture image shown in FIG. 2 is stored in the texture storage area 4 b, and the broken line shown in FIG. 3 is drawn using the body, frame, and shading broken line patterns included in the broken line texture image.
- the CPU 1 issues an instruction to draw a broken line to the graphics LSI 3 .
- the drawing module 3 a instruct the texture module 3 b to request a necessary broken line pattern for drawing.
- the texture module 3 b Upon receipt of the request instruction, the texture module 3 b calculates the T coordinates for a read of a necessary broken line pattern from the broken line texture image shown in FIG. 2 stored in the texture storage area 4 b, reads the necessary body, frame, and shading broken line patterns based on the T coordinates, and passes them to the drawing module 3 a.
- the calculated T coordinates correspond to each of the first to third rows in the broken line texture image shown in FIG. 2 .
- the drawing module 3 a draws a segment in the frame buffer area 4 a, pastes the body, frame, and shading broken line patterns received from the texture module 3 b on the segment, and draws the broken line shown in FIG. 3 .
- the display module 3 c reads the contents drawn in the frame buffer area 4 a, and displays them on the display device 5 .
- the broken line shown in FIG. 3 is drawn in the frame buffer area 4 a, and is displayed on the display device 5 .
- FIG. 3 shows an example of drawing a broken curve graphic by body broken lines.
- Each of the “segment 1 ”, the “segment 2 ”, and the “segment 3 ” shown in FIG. 4A shows a segment between the bending points of the broken curve graphic.
- FIG. 4B shows an example of drawing a broken curve graphic by the broken lines modified by the shading broken lines for body broken lines .
- FIG. 4C shows an example of drawing a broken curve graphic by the broken lines modified by the frame broken lines as solid line framing for the body broken lines.
- FIG. 4C it is obvious that framing with broken lines can replace framing with solid lines using the modification with frame broken lines.
- FIGS. 5A, 5B , and 5 C are explanatory views of the process of generating a body broken line pattern in the broken line texture image.
- the graphics LSI 3 first generates ablank broken line texture image in which an area (first area) where a broken line pattern by modifier function is arranged and an area (second area) as a broken line pattern generation work area are reserved in a specific area in the texture storage area 4 b of the graphics memory 4 .
- the first row in the broken line pattern generation work area of the generated broken line texture image is painted in the foreground color of the body broken line, and the second row is painted in the background color of the body broken line. Furthermore, the bit pattern for definition of a broken line pattern is replaced with a data string of the same bit width as the color information, and the result is copied to the third row in the broken line pattern generation work area. At this time, in the third row, the pattern in which a partial area having the color information about “1” for all bits and a partial area having the color information about “0” for all bits alternately appear is generated depending on the broken line pattern. If the pattern is expressed by color, a monochromatic pattern is generated.
- the pattern corresponding to the foreground color of the body broken line is replaced with white, and the pattern corresponding to the background color of the body broken line is replaced with black.
- the bit pattern for definition of a broken line pattern is specified by the graphics LSI 3 or the CPU 1 .
- a logical product arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the foreground color of the body broken line in the first row of the broken line pattern generation work area.
- the result of the arithmetic operation is written to the body broken line pattern storage row as the first row (first rowof the first area) of the broken line texture image.
- the bit of zero as a result of the logical operation that is, the bit of the result of the logical operation with the pattern of the black portion in the monochromatic broken line pattern is not written.
- a logical product inverse arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the background color of the body broken line in the second row of the broken line pattern generation work area.
- the result of the arithmetic operation is written to the body broken line pattern storage row as the first row of the broken line texture image.
- the bit of zero as a result of the logical operation that is, the bit of the result of the logical operation with the pattern of the white portion in the monochromatic broken line pattern is not written.
- a broken line texture image is generated in the texture storage area 4 b, and a body broken line pattern is generated in the first row.
- FIGS. 6A, 6B , and 6 C are explanatory views of the process of generating a frame broken line pattern.
- the first row in the broken line pattern generation work area of a broken line texture image is painted in the foreground color of the frame broken line
- the second row is painted in the background color of the frame broken line.
- These lines are painted in the foreground and background colors of the body broken line as shown in FIG. 5C , but they are overwritten. Since there is no change in bit pattern for definition of a broken line pattern, the third row of the broken line pattern generation work area is not processed.
- a logical product arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the foreground color of the frame broken line in the first row of the broken line pattern generation work area.
- the result of the arithmetic operation is written to the frame broken line pattern storage row as the second row of the broken line texture image.
- the bit of zero as a result of the logical operation that is, the bit of the result of the logical operation with the pattern of the black portion in the monochromatic broken line pattern is not written.
- a logical product inverse arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the background color of the frame broken line in the second row of the broken line pattern generation work area.
- the result of the arithmetic operation is written to the frame broken line pattern storage row as the second row of the broken line texture image.
- the bit of zero as a result of the logical operation that is, the bit of the result of the logical operation with the pattern of the white portion in the monochromatic broken line pattern is not written.
- a frame broken line pattern is generated in the second row of the broken line texture image.
- FIGS. 7A, 7B , and 7 C are explanatory views of the process of generating a shading broken line pattern.
- the first row in the broken line pattern generation work area of a broken line texture image is painted in the foreground color of the shading broken line
- the second row is painted in the background color of the shading broken line.
- These lines are painted in the foreground and background colors of the frame broken line as shown in FIG. 6C , but they are overwritten. Since there is no change in bit pattern for definition of a broken line pattern, the third row of the broken line pattern generation work area is not processed.
- a logical product arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the foreground color of the shading broken line in the first row of the broken line pattern generation work area.
- the result of the arithmetic operation is written to the shading broken line pattern storage row as the third row of the broken line texture image.
- the bit of zero as a result of the logical operation that is, the bit of the result of the logical operation with the pattern of the black portion in the monochromatic broken line pattern is not written.
- a logical product inverse arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the background color of the shading broken line in the second row of the broken line pattern generation work area.
- the result of the arithmetic operation is written to the shading broken line pattern storage row as the third row of the broken line texture image.
- the bit of zero as a result of the logical operation that is, the bit of the result of the logical operation with the pattern of the white portion in the monochromatic broken line pattern is not written.
- a shading broken line pattern is generated in the third row of the broken line texture image.
- a broken line texture image including the body, frame, and shading broken line patterns shown in FIG. 2 is generated in the texture storage area 4 b.
- a broken line texture image can be more simply and easily generated.
- the pattern of a generated broken line texture image is left in the broken line pattern generation work area as shown in FIG. 7C . However, it does not have an influence on the subsequent processes, it does not matter at all. It is also possible to store a generated broken line texture image in the storage device not shown in the attached drawings, and load it into the texture storage area 4 b next time it is used. Another broken line pattern by modifier function can be additionally generated for the generated broken line texture image.
- a broken line by modifier function when a broken line pattern is pasted to the same segment to draw a broken line, a broken line by modifier function can be drawn only by moving the coordinates in the same broken line texture image without switching the reference texture image. Therefore, since a broken line by modifier function can be drawn without switching a drawing attribute, the performance degradation by overheads can be reduced.
- a texture image is not generated for each broken line by modifier function, but one texture image is generated using a set of broken lines by modifier function to be applied to the same segment, a texture image can be easily managed.
- a broken line texture image is generated as explained above by referring to FIGS. 5A, 5B , 5 C, 6 A, 6 B, 6 C, 7 A, 7 B, and 7 C, a broken line texture image can be more simply and easily generated.
- an example of three broken line patterns for a body, frame, and shading as broken line patterns by modifier function included in a broken line texture image can be used, for example, two of them can be used, or two or more broken line patterns from among the patterns obtained by adding other one or more broken line patterns to the three broken line patterns can be used.
- the arrangement row of the broken line patternbymodifier functionarrangedinthebroken line texture image can be predetermined for each modifier function.
- the present invention has been explained in detail, but the present invention is not limited to the above-mentioned mode for embodying the present invention. That is, within the scope of the gist of the present invention, various improvements and changes can be made.
- a broken line texture image can be easily generated and managed, and the performance degradation by the overhead required when a broken line texture image is pasted can be reduced.
Abstract
Description
- This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2006-086926 filed on Mar. 28, 2006, the entire contents of which are incorporated herein by reference.
- 1. Field of the Invention
- The present invention relates to a graphic system for drawing a broken line using a broken line texture image, and an apparatus and a method for generating a broken line texture image.
- 2. Description of the Related Art
- There has conventionally been a graphic system for drawing a broken line having a thick line width by texture mapping of pasting a texture image of a broken line pattern (broken line texture image) on a broken curve graphic (broken curve segment) by utilizing a general-purpose texture mapping mechanism. In this system, a broken line texture image is prepared for each variation in pattern, color, etc. of a broken line pattern. When a broken line texture image is pasted on the broken curve graphic, preparations such as memory addressing for a reference texture image, etc. are made again each time it is pasted.
- There is also a graphic system for drawing a broken line in other methods. For example, the patent document 1 (Japanese Published Patent Application No. H10-188006) discloses an apparatus for drawing desired line graphics in a solid line drawing process based on a contour and a background by generating a desired background seen through from inside the contour when the information about the contour expressing a broken line to be drawn by a solid line is input. Also, the patent document 2 (Japanese Published Patent Application No. 2000-108447) discloses an apparatus of inputting line data when a broken line is drawn, dividing a straight line at a predetermined rate and generating a partial straight line by a broken line for the broken line drawing portion, generating a partial straight line portion path area with the partial straight line portion centered corresponding to the number of broken line drawing portions, converting the partial straight line portion path area into bit map data and painting the area in foreground color, generating an entire straight line portion path area with the straight line centered, converting the entire straight line portion path area into bit map data and painting the area in background color, overwriting and combining the bit map data of the partial straight line portion path area and the bit map data of the entire straight line portion path area, and printing the bit map data.
- In the above-mentioned graphic system of drawing a broken line by the texture mapping by utilizing the general-purpose texture mapping mechanism, it is necessary to prepare a broken line texture image for each variation of a broken line pattern. Therefore, when there are an enormous number of variations, it is very hard to generate and manage the broken line texture images. Additionally, it is not possible to dynamically generate a desired broken line texture image. Furthermore, when a broken line texture image is pasted on a broken curve graphic, it is necessary to make again the preparations such as memory addressing, etc. of reference texture image s, etc. each time the image is pasted, thereby causing performance degradation by overhead required to switch memory addresses, etc.
- The present invention has been developed to solve the above-mentioned problems, and aims at providing a graphic system, a broken line texture image generation apparatus, and a broken line texture image generating method for facilitating the generation and management of a broken line texture image and reducing the performance degradation by the overhead required when a broken line texture image is pasted.
- To attain the above-mentioned objectives, the graphic system according to the first aspect of the present invention includes: a storage unit for storing a broken line texture image in which a broken line pattern by modifier function is arranged; a read unit for reading a specific broken line pattern arranged in the broken line texture image based on the coordinates on the broken line texture image; and a drawing unit for drawing a broken line using a broken line pattern read by the read unit.
- With the above-mentioned configuration, since a broken line pattern by modifier function is arranged in a broken line texture image, it is easy to manage a broken line texture image. In addition, since a broken line pattern by modifier function can be read only by moving the coordinates in the same broken line texture image, the performance degradation by the overhead required when a broken line texture image is pasted can be reduced.
- The first aspect can also be constituted by: a generation unit for newly generating a broken line texture image having a first area in which a broken line pattern by modifier function is arranged and a second area used as a work area in which the broken line pattern is generated; a paint unit for painting a first row in the second area in a foreground color of a broken line, and painting a second row in the second area in a background color of the broken line; an assigned color paint unit for painting in assigned color a third row in the second area corresponding to a pattern of the broken line; and a write unit for writing a broken line pattern relating to the broken line to a specific row in the first area based on the first and second rows painted by the paint unit and the third row painted in assigned color by the assigned color paint unit.
- In this aspect, a broken line texture image can be more simply and easily generated.
- To attain the above-mentioned objective, the broken line texture image generation apparatus according to the second aspect of the present invention includes: a generation unit for newly generating a broken line texture image having a first area in which a broken line pattern by modifier function is arranged and a second area used as a work area in which the broken line pattern is generated; a paint unit for painting a first row in the second area in a foreground color of a broken line, and painting a second row in the second area in a background color of the broken line; an assigned color paint unit for painting in assigned color a third row in the second area corresponding to a pattern of the broken line; and a write unit for writing a broken line pattern relating to the broken line to a specific row in the first area based on the first and second rows painted by the paint unit and the third row painted in assigned color by the assigned color paint unit.
- To attain the above-mentioned objective, the broken line texture image generating method according to the third aspect of the present invention includes: generating a broken line texture image having a first area in which a broken line pattern by modifier function is arranged and a second area used as a work area in which the broken line pattern is generated; painting a first row in the second area in a foreground color of a broken line, and painting a second row in the second area in a background color of the broken line; painting in assigned color a third row in the second area corresponding to a pattern of the broken line; and writing a broken line pattern relating to the broken line to a specific row in the first area based on the first and second painted in assigned color and the third row painted in assigned color.
- With the above-mentioned broken line texture image generation apparatus and broken line texture image generating method, a broken line texture image can be simply and easily generated.
-
FIG. 1 shows the main configuration of the graphic system according to a mode for embodying the present invention; -
FIG. 2 shows an example of a broken line texture image; -
FIG. 3 shows an example of drawing a broken line; -
FIG. 4A is a first view showing an example of drawing a broken curve graphic by broken lines; -
FIG. 4B is a second view showing an example of drawing a broken curve graphic by broken lines; -
FIG. 4C is a third view showing an example of drawing a broken curve graphic by broken lines; -
FIG. 5A is a first view for explanation of a process of generating a body broken line pattern; -
FIG. 5B is a second view for explanation of a process of generating a body broken line pattern; -
FIG. 5C is a third view for explanation of a process of generating a body broken line pattern; -
FIG. 6A is a first view for explanation of a process of generating a frame broken line pattern; -
FIG. 6B is a second view for explanation of a process of generating a frame broken line pattern; -
FIG. 6C is a third view for explanation of a process of generating a frame broken line pattern; -
FIG. 7A is a first view for explanation of a process of generating a shading broken line pattern; -
FIG. 7B is a second view for explanation of a process of generating a shading broken line pattern; and -
FIG. 7C is a third view for explanation of a process of generating a shading broken line pattern. - The mode for embodying the present invention is described below by referring to the attached drawings.
-
FIG. 1 shows the main configuration of the graphic system according to a mode for embodying the present invention. The graphic system can be a broken line texture image generation apparatus because the system is specifically capable of generating a broken line texture image described later. - As shown in
FIG. 1 , the graphic system according to the mode for embodying the present invention comprises aCPU 1,main memory 2, agraphics LSI 3, graphics memory (VRAM) 4, and adisplay device 5. - The
CPU 1 controls the entire operation of the graphic system by reading and executing the program stored in the ROM not shown in the attached drawings. Themain memory 2 is used as a work area for execution of the control process performed by theCPU 1. - The
graphics LSI 3 comprises adrawing module 3 a for drawing a broken line, etc. in aframe buffer area 4 a of thegraphics memory 4, atexture module 3 b for reading a texture image from atexture storage area 4 b of thegraphics memory 4, and adisplay module 3 c for a read and display of the contents drawn in theframe buffer area 4 a of thegraphics memory 4 on thedisplay device 5, and performs the process under the control of theCPU 1. Themodules - The
graphics memory 4 comprises theframe buffer area 4 a in which a drawing process is performed, and thetexture storage area 4 b storing a texture image such as a broken line texture image, etc., and is used in the process performed by thegraphics LSI 3.FIG. 1 shows the storage of three broken line texture images (“broken line pattern set 1”, “broken line pattern set 2”, and “broken line pattern set 3”) in thetexture storage area 4 b. Each of the broken line texture images is independently provided for each set of broken line patterns by modifier function applied to the same segment. These broken line texture images are loaded from the storage device not shown in the attached drawings when the graphic system is activated, or generated in the generating process described later. - The
display device 5 displays the contents drawn in theframe buffer area 4 a of thegraphics memory 4. -
FIG. 2 shows an example of a broken line texture image. - As shown in
FIG. 2 , the broken line pattern of a broken line texture image is defined in the horizontal direction (S coordinates), and the broken line pattern by modifier function applied to the same segment is arranged in the vertical direction (T coordinates). In the example shown inFIG. 2 , as a broken line pattern by modifier function, a body broken line pattern is arranged in the first row, a broken line pattern for a frame (hereinafter referred to simply as a “frame broken line pattern”) is arranged in the second row, and a broken line pattern for shading (hereinafter referred to simply as a “shading broken line pattern”) is arranged in the third row. - In the broken line texture image, the broken line patterns bymodifier function are arranged in the upper area (first area), and an area as a broken line pattern generation work area is reserved in the lower area (second area) . This area is described later in detail, and is used when abroken line pattern arranged in the upper portion is generated.
- Described next is the broken line drawing process performed by the
graphics LSI 3 as a process performed in the graphic system. In this example, the broken line texture image shown inFIG. 2 is stored in thetexture storage area 4b, and the broken line shown inFIG. 3 is drawn using the body, frame, and shading broken line patterns included in the broken line texture image. - First, the
CPU 1 issues an instruction to draw a broken line to thegraphics LSI 3. Upon receipt of the instruction, thedrawing module 3a instruct thetexture module 3b to request a necessary broken line pattern for drawing. - Upon receipt of the request instruction, the
texture module 3b calculates the T coordinates for a read of a necessary broken line pattern from the broken line texture image shown inFIG. 2 stored in thetexture storage area 4b, reads the necessary body, frame, and shading broken line patterns based on the T coordinates, and passes them to thedrawing module 3a. The calculated T coordinates correspond to each of the first to third rows in the broken line texture image shown inFIG. 2 . - The
drawing module 3a draws a segment in theframe buffer area 4a, pastes the body, frame, and shading broken line patterns received from thetexture module 3b on the segment, and draws the broken line shown inFIG. 3 . - The
display module 3c reads the contents drawn in theframe buffer area 4a, and displays them on thedisplay device 5. - In the above-mentioned drawing process, the broken line shown in
FIG. 3 is drawn in theframe buffer area 4a, and is displayed on thedisplay device 5. - Thus, in the drawing process, it is not necessary as in the conventional technology to reset the drawing attributes or newly specify the memory address of a reference texture image each time a body, frame, or shading broken line is drawn. That is, only by changing the T coordinates of the broken line texture image shown in
FIG. 2 , a broken line can be drawn, thereby reducing the performance degradation by the overhead. - In this example, the broken line shown in
FIG. 3 is drawn using the broken line texture image shown inFIG. 2 . Similarly, it is possible to draw a broken curve graphic using the broken line shown inFIGS. 4A, 4B , and 4C using the broken line texture image stored in thetexture storage area 4b.FIG. 4A shows an example of drawing a broken curve graphic by body broken lines. Each of the “segment 1”, the “segment 2”, and the “segment 3” shown inFIG. 4A shows a segment between the bending points of the broken curve graphic.FIG. 4B shows an example of drawing a broken curve graphic by the broken lines modified by the shading broken lines for body broken lines .FIG. 4C shows an example of drawing a broken curve graphic by the broken lines modified by the frame broken lines as solid line framing for the body broken lines. InFIG. 4C , it is obvious that framing with broken lines can replace framing with solid lines using the modification with frame broken lines. - Next, as the process performed in the graphic system, the process of generating a broken line texture image by the
graphics LSI 3 is explained below. An example of generating broken line texture image shown inFIG. 2 is described below. -
FIGS. 5A, 5B , and 5C are explanatory views of the process of generating a body broken line pattern in the broken line texture image. - In this process, the
graphics LSI 3 first generates ablank broken line texture image in which an area (first area) where a broken line pattern by modifier function is arranged and an area (second area) as a broken line pattern generation work area are reserved in a specific area in thetexture storage area 4 b of thegraphics memory 4. - Next, as shown in
FIG. 5A , the first row in the broken line pattern generation work area of the generated broken line texture image is painted in the foreground color of the body broken line, and the second row is painted in the background color of the body broken line. Furthermore, the bit pattern for definition of a broken line pattern is replaced with a data string of the same bit width as the color information, and the result is copied to the third row in the broken line pattern generation work area. At this time, in the third row, the pattern in which a partial area having the color information about “1” for all bits and a partial area having the color information about “0” for all bits alternately appear is generated depending on the broken line pattern. If the pattern is expressed by color, a monochromatic pattern is generated. In this example, the pattern corresponding to the foreground color of the body broken line is replaced with white, and the pattern corresponding to the background color of the body broken line is replaced with black. The bit pattern for definition of a broken line pattern is specified by thegraphics LSI 3 or theCPU 1. - Next, as shown in
FIG. 5B , a logical product arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the foreground color of the body broken line in the first row of the broken line pattern generation work area. The result of the arithmetic operation is written to the body broken line pattern storage row as the first row (first rowof the first area) of the broken line texture image. However, at this time, the bit of zero as a result of the logical operation, that is, the bit of the result of the logical operation with the pattern of the black portion in the monochromatic broken line pattern is not written. - Then, as shown in
FIG. 5C , a logical product inverse arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the background color of the body broken line in the second row of the broken line pattern generation work area. The result of the arithmetic operation is written to the body broken line pattern storage row as the first row of the broken line texture image. However, at this time, the bit of zero as a result of the logical operation, that is, the bit of the result of the logical operation with the pattern of the white portion in the monochromatic broken line pattern is not written. - In the above-mentioned process, a broken line texture image is generated in the
texture storage area 4 b, and a body broken line pattern is generated in the first row. - Next, the process of generating a frame broken line pattern in the second row (second row of the first area) of the broken line texture image is similarly performed.
-
FIGS. 6A, 6B , and 6C are explanatory views of the process of generating a frame broken line pattern. - As shown in
FIG. 6A , the first row in the broken line pattern generation work area of a broken line texture image is painted in the foreground color of the frame broken line, and the second row is painted in the background color of the frame broken line. These lines are painted in the foreground and background colors of the body broken line as shown inFIG. 5C , but they are overwritten. Since there is no change in bit pattern for definition of a broken line pattern, the third row of the broken line pattern generation work area is not processed. - As shown in
FIG. 6B , a logical product arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the foreground color of the frame broken line in the first row of the broken line pattern generation work area. The result of the arithmetic operation is written to the frame broken line pattern storage row as the second row of the broken line texture image. However, at this time, the bit of zero as a result of the logical operation, that is, the bit of the result of the logical operation with the pattern of the black portion in the monochromatic broken line pattern is not written. - Then, as shown in
FIG. 6C , a logical product inverse arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the background color of the frame broken line in the second row of the broken line pattern generation work area. The result of the arithmetic operation is written to the frame broken line pattern storage row as the second row of the broken line texture image. However, at this time, the bit of zero as a result of the logical operation, that is, the bit of the result of the logical operation with the pattern of the white portion in the monochromatic broken line pattern is not written. - In the above-mentioned process, a frame broken line pattern is generated in the second row of the broken line texture image.
- Next, the process of generating a shading broken line pattern in the third row (third row of the first area) of the broken line texture image is similarly performed.
-
FIGS. 7A, 7B , and 7C are explanatory views of the process of generating a shading broken line pattern. - As shown in
FIG. 7A , the first row in the broken line pattern generation work area of a broken line texture image is painted in the foreground color of the shading broken line, and the second row is painted in the background color of the shading broken line. These lines are painted in the foreground and background colors of the frame broken line as shown inFIG. 6C , but they are overwritten. Since there is no change in bit pattern for definition of a broken line pattern, the third row of the broken line pattern generation work area is not processed. - As shown in
FIG. 7B , a logical product arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the foreground color of the shading broken line in the first row of the broken line pattern generation work area. The result of the arithmetic operation is written to the shading broken line pattern storage row as the third row of the broken line texture image. However, at this time, the bit of zero as a result of the logical operation, that is, the bit of the result of the logical operation with the pattern of the black portion in the monochromatic broken line pattern is not written. - Then, as shown in
FIG. 7C , a logical product inverse arithmetic is performed for each bit between the monochromatic broken line pattern in the third row in the broken line pattern generation work area and the pattern painted in the background color of the shading broken line in the second row of the broken line pattern generation work area. The result of the arithmetic operation is written to the shading broken line pattern storage row as the third row of the broken line texture image. However, at this time, the bit of zero as a result of the logical operation, that is, the bit of the result of the logical operation with the pattern of the white portion in the monochromatic broken line pattern is not written. - In the above-mentioned process, a shading broken line pattern is generated in the third row of the broken line texture image.
- In the above-mentioned generating process, a broken line texture image including the body, frame, and shading broken line patterns shown in
FIG. 2 is generated in thetexture storage area 4 b. - Thus, in the generating process, a broken line texture image can be more simply and easily generated.
- The pattern of a generated broken line texture image is left in the broken line pattern generation work area as shown in
FIG. 7C . However, it does not have an influence on the subsequent processes, it does not matter at all. It is also possible to store a generated broken line texture image in the storage device not shown in the attached drawings, and load it into thetexture storage area 4b next time it is used. Another broken line pattern by modifier function can be additionally generated for the generated broken line texture image. - As described above, according to the graphic system of the mode for embodying the present invention, when a broken line pattern is pasted to the same segment to draw a broken line, a broken line by modifier function can be drawn only by moving the coordinates in the same broken line texture image without switching the reference texture image. Therefore, since a broken line by modifier function can be drawn without switching a drawing attribute, the performance degradation by overheads can be reduced.
- In addition, since a texture image is not generated for each broken line by modifier function, but one texture image is generated using a set of broken lines by modifier function to be applied to the same segment, a texture image can be easily managed.
- Furthermore, since a broken line texture image is generated as explained above by referring to
FIGS. 5A, 5B , 5C, 6A, 6B, 6C, 7A, 7B, and 7C, a broken line texture image can be more simply and easily generated. - In the above-mentioned mode for embodying the present invention, an example of three broken line patterns for a body, frame, and shading as broken line patterns by modifier function included in a broken line texture image. However, for example, two of them can be used, or two or more broken line patterns from among the patterns obtained by adding other one or more broken line patterns to the three broken line patterns can be used.
- Furthermore, in the above-mentioned mode for embodying the present invention, the arrangement row of the broken line patternbymodifier functionarrangedinthebroken line texture image can be predetermined for each modifier function.
- As described above, the present invention has been explained in detail, but the present invention is not limited to the above-mentioned mode for embodying the present invention. That is, within the scope of the gist of the present invention, various improvements and changes can be made.
- According to the present invention, a broken line texture image can be easily generated and managed, and the performance degradation by the overhead required when a broken line texture image is pasted can be reduced.
Claims (14)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006086926A JP2007264866A (en) | 2006-03-28 | 2006-03-28 | Graphic system, dashed line texture image generation device and dashed line texture image generation method |
JP2006-086926 | 2006-03-28 |
Publications (1)
Publication Number | Publication Date |
---|---|
US20070229509A1 true US20070229509A1 (en) | 2007-10-04 |
Family
ID=38558173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/489,586 Abandoned US20070229509A1 (en) | 2006-03-28 | 2006-07-20 | Graphic system, broken line texture image generation apparatus, and broken line texture image generation method |
Country Status (2)
Country | Link |
---|---|
US (1) | US20070229509A1 (en) |
JP (1) | JP2007264866A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013070626A1 (en) * | 2011-11-10 | 2013-05-16 | The Directv Group, Inc. | System and method for drawing anti-aliased lines in any direction |
Citations (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4695834A (en) * | 1984-02-14 | 1987-09-22 | Ricoh Company, Ltd. | Patterned line generator for a data processing device |
US4907188A (en) * | 1985-09-12 | 1990-03-06 | Kabushiki Kaisha Toshiba | Image information search network system |
US5255360A (en) * | 1990-09-14 | 1993-10-19 | Hughes Aircraft Company | Dual programmable block texturing and complex clipping in a graphics rendering processor |
US5276798A (en) * | 1990-09-14 | 1994-01-04 | Hughes Aircraft Company | Multifunction high performance graphics rendering processor |
US5353403A (en) * | 1991-03-22 | 1994-10-04 | Hitachi Chubu Software, Ltd. | Graphic display processing apparatus and method for improving the speed and efficiency of a window system |
US5757374A (en) * | 1994-08-29 | 1998-05-26 | International Business Machines Corporation | Method and apparatus for performing texture mapping |
US5757384A (en) * | 1994-08-19 | 1998-05-26 | Mitsubishi Denki Kabushiki Kaisha | Apparatus and method for font thinning and bolding based upon font outline |
US5877770A (en) * | 1995-05-24 | 1999-03-02 | Sharp Kabushiki Kaisha | Texture pattern memory circuit for providing plural texel data in response to a single access operation |
US6052126A (en) * | 1992-05-15 | 2000-04-18 | Fujitsu Limited | Parallel processing three-dimensional drawing apparatus for simultaneously mapping a plurality of texture patterns |
US6259462B1 (en) * | 1998-12-09 | 2001-07-10 | Ati International Srl | Method and apparatus for texture blending in a video graphics circuit |
US6456291B1 (en) * | 1999-12-09 | 2002-09-24 | Ati International Srl | Method and apparatus for multi-pass texture mapping |
US20020140703A1 (en) * | 2001-03-30 | 2002-10-03 | Baker Nicholas R. | Applying multiple texture maps to objects in three-dimensional imaging processes |
US20020186219A1 (en) * | 2001-06-07 | 2002-12-12 | Fujitsu Limited | Apparatus for drawing dotted lines having natural appearance |
US6570562B1 (en) * | 2000-05-03 | 2003-05-27 | Hewlett-Packard Development Company, L.P. | Method for drawing patterned lines in a system supporting off-screen graphics |
US20040100474A1 (en) * | 2002-11-27 | 2004-05-27 | Eric Demers | Apparatus for generating anti-aliased and stippled 3d lines, points and surfaces using multi-dimensional procedural texture coordinates |
US20040179020A1 (en) * | 1999-05-07 | 2004-09-16 | Lewis Michael C. | Method and system for providing programmable texture processing |
US6809739B2 (en) * | 2002-04-30 | 2004-10-26 | Silicon Graphics, Inc. | System, method, and computer program product for blending textures during rendering of a computer generated image using a single texture as a mask |
US20050259108A1 (en) * | 2004-05-21 | 2005-11-24 | Brett Chladny | System and method for dynamically generating images using repeatable textures |
US7113192B2 (en) * | 2003-06-30 | 2006-09-26 | Intel Corporation | Large 1D texture map representation with a 2D texture map |
-
2006
- 2006-03-28 JP JP2006086926A patent/JP2007264866A/en not_active Withdrawn
- 2006-07-20 US US11/489,586 patent/US20070229509A1/en not_active Abandoned
Patent Citations (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4695834A (en) * | 1984-02-14 | 1987-09-22 | Ricoh Company, Ltd. | Patterned line generator for a data processing device |
US4907188A (en) * | 1985-09-12 | 1990-03-06 | Kabushiki Kaisha Toshiba | Image information search network system |
US5255360A (en) * | 1990-09-14 | 1993-10-19 | Hughes Aircraft Company | Dual programmable block texturing and complex clipping in a graphics rendering processor |
US5276798A (en) * | 1990-09-14 | 1994-01-04 | Hughes Aircraft Company | Multifunction high performance graphics rendering processor |
US5353403A (en) * | 1991-03-22 | 1994-10-04 | Hitachi Chubu Software, Ltd. | Graphic display processing apparatus and method for improving the speed and efficiency of a window system |
US6052126A (en) * | 1992-05-15 | 2000-04-18 | Fujitsu Limited | Parallel processing three-dimensional drawing apparatus for simultaneously mapping a plurality of texture patterns |
US5757384A (en) * | 1994-08-19 | 1998-05-26 | Mitsubishi Denki Kabushiki Kaisha | Apparatus and method for font thinning and bolding based upon font outline |
US5757374A (en) * | 1994-08-29 | 1998-05-26 | International Business Machines Corporation | Method and apparatus for performing texture mapping |
US5877770A (en) * | 1995-05-24 | 1999-03-02 | Sharp Kabushiki Kaisha | Texture pattern memory circuit for providing plural texel data in response to a single access operation |
US6259462B1 (en) * | 1998-12-09 | 2001-07-10 | Ati International Srl | Method and apparatus for texture blending in a video graphics circuit |
US20040179020A1 (en) * | 1999-05-07 | 2004-09-16 | Lewis Michael C. | Method and system for providing programmable texture processing |
US6456291B1 (en) * | 1999-12-09 | 2002-09-24 | Ati International Srl | Method and apparatus for multi-pass texture mapping |
US6570562B1 (en) * | 2000-05-03 | 2003-05-27 | Hewlett-Packard Development Company, L.P. | Method for drawing patterned lines in a system supporting off-screen graphics |
US20020140703A1 (en) * | 2001-03-30 | 2002-10-03 | Baker Nicholas R. | Applying multiple texture maps to objects in three-dimensional imaging processes |
US20020186219A1 (en) * | 2001-06-07 | 2002-12-12 | Fujitsu Limited | Apparatus for drawing dotted lines having natural appearance |
US6809739B2 (en) * | 2002-04-30 | 2004-10-26 | Silicon Graphics, Inc. | System, method, and computer program product for blending textures during rendering of a computer generated image using a single texture as a mask |
US20040100474A1 (en) * | 2002-11-27 | 2004-05-27 | Eric Demers | Apparatus for generating anti-aliased and stippled 3d lines, points and surfaces using multi-dimensional procedural texture coordinates |
US7113192B2 (en) * | 2003-06-30 | 2006-09-26 | Intel Corporation | Large 1D texture map representation with a 2D texture map |
US20050259108A1 (en) * | 2004-05-21 | 2005-11-24 | Brett Chladny | System and method for dynamically generating images using repeatable textures |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013070626A1 (en) * | 2011-11-10 | 2013-05-16 | The Directv Group, Inc. | System and method for drawing anti-aliased lines in any direction |
US9098938B2 (en) | 2011-11-10 | 2015-08-04 | The Directv Group, Inc. | System and method for drawing anti-aliased lines in any direction |
Also Published As
Publication number | Publication date |
---|---|
JP2007264866A (en) | 2007-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7262776B1 (en) | Incremental updating of animated displays using copy-on-write semantics | |
US8704830B2 (en) | System and method for path rendering with multiple stencil samples per color sample | |
JP2637920B2 (en) | Computer graphic system and method of using frame buffer | |
CN101071508A (en) | Image processing apparatus, image processing method, and image processing program | |
JP3586991B2 (en) | Texture data reading device and rendering device | |
US6781587B2 (en) | Video graphic interface device and method for portrait and landscape image display modes | |
JP3791259B2 (en) | Outline smoothing processing method | |
JP2010146255A (en) | Vector graphics drawing device | |
JP5889401B2 (en) | Character drawing apparatus and character drawing method | |
US20070229509A1 (en) | Graphic system, broken line texture image generation apparatus, and broken line texture image generation method | |
US20030231176A1 (en) | Memory access device, semiconductor device, memory access method, computer program and recording medium | |
US7508397B1 (en) | Rendering of disjoint and overlapping blits | |
JP4143613B2 (en) | Drawing method and drawing apparatus | |
EP0464794B1 (en) | Painting pattern generation system and pattern painting method using the system | |
JPH0562348B2 (en) | ||
JP4760390B2 (en) | Image processing device | |
CN103608858A (en) | Window combining device | |
JP3312560B2 (en) | Texture mapping device | |
JP2634810B2 (en) | Information processing device | |
FI107196B (en) | Method and apparatus for processing pixels | |
JP4195953B2 (en) | Image processing device | |
JP2656754B2 (en) | Image data processing apparatus and system using the same | |
JP3553249B2 (en) | Image generating apparatus and image generating method | |
JPH10269370A (en) | Data converting device | |
JPH04205678A (en) | Image information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: FUJITSU LIMITED, JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:YAMAUCHI, HIDEAKI;REEL/FRAME:018116/0814 Effective date: 20060628 |
|
AS | Assignment |
Owner name: FUJITSU MICROELECTRONICS LIMITED, JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:FUJITSU LIMITED;REEL/FRAME:021977/0219 Effective date: 20081104 Owner name: FUJITSU MICROELECTRONICS LIMITED,JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:FUJITSU LIMITED;REEL/FRAME:021977/0219 Effective date: 20081104 |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |
|
AS | Assignment |
Owner name: JPMORGAN CHASE BANK, N.A., AS ADMINISTRATIVE AGENT, NEW YORK Free format text: PATENT SECURITY AGREEMENT;ASSIGNOR:RIVERBED TECHNOLOGY, INC.;REEL/FRAME:032421/0162 Effective date: 20131220 Owner name: JPMORGAN CHASE BANK, N.A., AS ADMINISTRATIVE AGENT Free format text: PATENT SECURITY AGREEMENT;ASSIGNOR:RIVERBED TECHNOLOGY, INC.;REEL/FRAME:032421/0162 Effective date: 20131220 |