JP2009134773A - Drawing method, image generation device and electronic information apparatus - Google Patents

Drawing method, image generation device and electronic information apparatus Download PDF

Info

Publication number
JP2009134773A
JP2009134773A JP2009074142A JP2009074142A JP2009134773A JP 2009134773 A JP2009134773 A JP 2009134773A JP 2009074142 A JP2009074142 A JP 2009074142A JP 2009074142 A JP2009074142 A JP 2009074142A JP 2009134773 A JP2009134773 A JP 2009134773A
Authority
JP
Japan
Prior art keywords
area
pixel
line
drawing area
subpixels
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
JP2009074142A
Other languages
Japanese (ja)
Other versions
JP4766576B2 (en
Inventor
Hidemichi Nakabashi
英通 中橋
Tanio Nagasaki
多仁生 長崎
Minoru Takahata
稔 高畑
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.)
Sony Interactive Entertainment Inc
Original Assignee
Sony Computer Entertainment 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
Application filed by Sony Computer Entertainment Inc filed Critical Sony Computer Entertainment Inc
Priority to JP2009074142A priority Critical patent/JP4766576B2/en
Publication of JP2009134773A publication Critical patent/JP2009134773A/en
Application granted granted Critical
Publication of JP4766576B2 publication Critical patent/JP4766576B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique that can inexpensively draw lines with less aliasing. <P>SOLUTION: From two vertex coordinates given to a line 66 to be drawn, an edge function is calculated. The gradient of the edge function is next determined. If an acute angle between the line 66 to be drawn and the x-axis of a drawing plane coordinate system is not larger than 45°, functions of two shift lines 68 to which the line 66 to be drawn is translated by 0.5d and -0.5d along the y-axis are calculated, where (d) is the width of one pixel. If the acute angle between the line 66 to be drawn and the y-axis of the drawing plane coordinate system is larger than 45°, functions of two shift lines to which the line 66 to be drawn is translated by 0.5d and -0.5d along the x-axis are calculated. Sub pixels included in a parallelogram abcd whose vertices are four start points and end points of the two shift lines 68 are next counted, and a pixel value of each pixel is set accordingly. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明はピクセル単位の描画データを生成する描画方法、画像生成装置、および電子情報機器に関する。   The present invention relates to a drawing method, an image generation apparatus, and an electronic information device that generate drawing data in pixel units.

近年のコンピュータゲームやディジタル放送などの分野に利用されるコンピュータグラフィックス技術や画像処理技術の著しい進歩に伴い、3次元画像などをより精緻に画面表示することが可能となっている。3次元空間におけるオブジェクトを表現するポリゴンや、ユーザが入力した2次元画像などは、ピクセル単位のディジタル画像情報として表示装置などへ送出される。   With the remarkable progress of computer graphics technology and image processing technology used in fields such as computer games and digital broadcasting in recent years, it is possible to display a three-dimensional image or the like on a more precise screen. A polygon representing an object in a three-dimensional space, a two-dimensional image input by a user, and the like are sent to a display device or the like as digital image information in units of pixels.

元来アナログ情報であった画像や、既知の頂点座標を結ぶ線分などを、ピクセル単位で表現するには、求められる処理速度や描画精度、ハードウェアへの実装の容易さなどに応じてその手法が選択される。   In order to represent an image that was originally analog information or a line segment connecting known vertex coordinates in pixel units, depending on the required processing speed, drawing accuracy, and ease of implementation in hardware, etc. A method is selected.

ピクセルは離散的配列であるため、描画したい図形をピクセル単位のデータへ変換すると、当該図形を構成するピクセルの輪郭が画像上に発現し、ジャギーと呼ばれるぎざぎざを有する形状で表示されたり、細い線が寸断したり、といった現象が発生することがある。これらの現象は一般にエイリアシングと呼ばれ、それを軽減するために解像度を上げて描画するなどのアンチエイリアシングの手法が考案されてきた(例えば非特許文献1参照)。   Since the pixel is a discrete array, when the figure to be drawn is converted to pixel data, the outline of the pixel constituting the figure appears on the image and is displayed in a jagged shape called jaggy, or a thin line May occur, or the phenomenon may occur. These phenomena are generally called aliasing, and an anti-aliasing technique has been devised such as rendering with a higher resolution in order to reduce this phenomenon (see Non-Patent Document 1, for example).

Hardware Acceleration for Spatial Selections and Joins, Chengyu Sun et. al., UCSB Technical Report (2002-17).Hardware Acceleration for Spatial Selections and Joins, Chengyu Sun et.al., UCSB Technical Report (2002-17).

しかし、アンチエイリアシングを行うことによってエイリアシングは軽減されるものの、線の太さなど全体的な印象が元来描画したい形状と異なってしまう問題が生じる場合があること、また解像度を上げるなどすることによりアンチエイリアシング処理自体による計算負荷が増大し、高速描画に対する障壁となる場合があること、を本発明者は認識した。   However, although anti-aliasing can reduce aliasing, there may be a problem that the overall impression, such as the thickness of the line, differs from the shape you originally intended to draw, and by increasing the resolution. The present inventor has recognized that the calculation load due to the anti-aliasing process itself increases and may be a barrier to high-speed drawing.

本発明はこのような課題に鑑みてなされたものであり、その目的は所望の描画形状を有しエイリアシングの目立たない描画情報を生成することのできる技術の提供にある。さらに別の目的は、計算負荷および処理速度の面で有利なアンチエイリアシング技術の提供にある。   The present invention has been made in view of such problems, and an object thereof is to provide a technique capable of generating drawing information having a desired drawing shape and inconspicuous aliasing. Yet another object is to provide an anti-aliasing technique that is advantageous in terms of computational load and processing speed.

本発明のある態様は描画方法に関する。この描画方法は、描画対象の線を中心として、表示画面の水平方向および垂直方向のいずれかの方向にピクセルの大きさの整数倍の幅をもたせた領域を当該描画対象の線の描画領域に定め、ピクセルの表示領域が前記描画領域に含まれる割合に応じて、当該ピクセルのピクセル値を決定することを特徴とする。   One embodiment of the present invention relates to a drawing method. In this drawing method, an area having a width that is an integral multiple of the pixel size in either the horizontal direction or the vertical direction of the display screen with the drawing target line as the center is set as the drawing area of the drawing target line. The pixel value of the pixel is determined according to the ratio of the display area of the pixel included in the drawing area.

ここで「ピクセルの表示領域」とはディジタル化した画像をピクセル単位で表す際に、ピクセルが色や濃度などのピクセル値を表示することのできるます目のひとつひとつの領域のことであり、表示装置などの解像度によってその面積が変化する。   Here, the “pixel display area” is an area of each eye that can display pixel values such as color and density when a digitized image is represented in pixel units. The area changes depending on the resolution.

本発明の別の態様もまた描画方法に関する。この描画方法は、描画対象の線を含み、当該線を表示画面の水平方向および垂直方向のいずれかの方向に所定の幅だけシフトさせた2本の平行線を境界線として含み、前記2本の平行線の端点を頂点とする領域を当該描画対象の線の描画領域に定め、ピクセルの表示領域が前記描画領域に含まれる割合に応じて、当該ピクセルのピクセル値を決定することを特徴とする。   Another embodiment of the present invention also relates to a drawing method. This drawing method includes a line to be drawn, two parallel lines obtained by shifting the line by a predetermined width in either the horizontal direction or the vertical direction of the display screen, and the two lines. An area having the end point of the parallel line as an apex is defined as a drawing area of the drawing target line, and a pixel value of the pixel is determined according to a ratio of a pixel display area included in the drawing area. To do.

本発明の別の態様もまた描画方法に関する。この描画方法は、描画対象の線を含み、当該線を表示画面の水平方向および垂直方向のいずれかの方向に所定の幅だけシフトさせた2本の平行線を境界線として含み、前記2本の平行線の端点を頂点とする領域を当該描画対象の線の描画領域に定めるステップと、前記描画領域を含み、前記描画領域の境界線の少なくとも一部を境界線に含む矩形の走査領域を設定するステップと、ピクセルの表示領域を仮想的に所定数分割して得られたサブピクセル単位で前記走査領域内を走査し、前記描画領域に含まれるサブピクセルの数を取得するステップと、各ピクセルに含まれるサブピクセルのうち、前記描画領域に含まれるサブピクセルの数の割合に応じて当該ピクセルのピクセル値を設定するステップと、を含むことを特徴とする。   Another embodiment of the present invention also relates to a drawing method. This drawing method includes a line to be drawn, two parallel lines obtained by shifting the line by a predetermined width in either the horizontal direction or the vertical direction of the display screen, and the two lines. Determining a region having the end point of the parallel line as a vertex as a drawing region of the drawing target line, and a rectangular scanning region including the drawing region and including at least a part of a boundary line of the drawing region as a boundary line Setting, and scanning the scanning area in units of sub-pixels obtained by virtually dividing a display area of pixels by a predetermined number to obtain the number of sub-pixels included in the drawing area; And setting a pixel value of the pixel according to a ratio of the number of subpixels included in the drawing area among subpixels included in the pixel.

本発明のさらに別の態様は画像生成装置に関する。この画像生成装置は、描画すべき画像の情報を読み込む描画情報取得部と、前記画像の情報に基づき、各ピクセル値によってピクセル単位で表現した描画データを生成する描画データ生成部と、前記描画データを記憶する描画データ記憶部と、を備え、前記描画データ生成部は、前記画像の情報に含まれる描画対象の線をピクセル単位で表現する際、当該描画対象の線を中心として、表示画面の水平方向および垂直方向のいずれかの方向にピクセルの大きさの整数倍の幅をもたせた領域を当該描画対象の線の描画領域に定め、ピクセルの表示領域が前記描画領域に含まれる割合に応じて、当該ピクセルのピクセル値を設定することを特徴とする。   Yet another embodiment of the present invention relates to an image generating apparatus. The image generation apparatus includes: a drawing information acquisition unit that reads information on an image to be drawn; a drawing data generation unit that generates drawing data expressed in pixel units by pixel values based on the image information; and the drawing data A drawing data storage unit, and the drawing data generation unit, when expressing the drawing target line included in the image information in units of pixels, with the drawing target line as a center, An area having a width that is an integral multiple of the pixel size in either the horizontal direction or the vertical direction is defined as the drawing area of the line to be drawn, and the pixel display area is included in the drawing area. The pixel value of the pixel is set.

描画データ生成部におけるピクセル値の設定要因には、陰影やテクスチャなど一般のレンダリング処理で付加される属性を適宜含めてよい。   The pixel value setting factor in the drawing data generation unit may appropriately include attributes added in general rendering processing such as shadows and textures.

本発明のさらに別の態様もまた画像生成装置に関する。この画像生成装置は、描画すべき画像の情報を読み込む描画情報取得部と、前記画像の情報に基づき、各ピクセル値によってピクセル単位で表現した描画データを生成する描画データ生成部と、前記描画データを記憶する描画データ記憶部と、を備え、前記描画データ生成部は、前記画像の情報に含まれる描画対象の線をピクセル単位で表現する際、当該描画対象の線を含み、当該線を表示画面の水平方向および垂直方向のいずれかの方向に所定の幅だけシフトさせた2本の平行線を境界線として含み、前記2本の平行線の端点を頂点とする領域を当該描画対象の線の描画領域に定め、ピクセルの表示領域が前記描画領域に含まれる割合に応じて、当該ピクセルのピクセル値を設定することを特徴とする。   Still another embodiment of the present invention also relates to an image generation apparatus. The image generation apparatus includes: a drawing information acquisition unit that reads information on an image to be drawn; a drawing data generation unit that generates drawing data expressed in pixel units by pixel values based on the image information; and the drawing data A drawing data storage unit that stores the drawing target line when the drawing target line included in the image information is expressed in units of pixels, and displays the line. The drawing target line includes an area having two parallel lines shifted by a predetermined width in either the horizontal direction or the vertical direction of the screen as a boundary line, and having vertexes at the end points of the two parallel lines. The pixel value of the pixel is set according to the ratio of the pixel display area included in the drawing area.

なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効である。   It should be noted that any combination of the above-described constituent elements and a representation of the present invention converted between a method, an apparatus, a system, a computer program, etc. are also effective as an aspect of the present invention.

本発明によれば、所望の形状を保持しながら、エイリアシングを軽減した線の描画を実現できる。   According to the present invention, line drawing with reduced aliasing can be realized while maintaining a desired shape.

本実施の形態における画像生成装置の構成図である。It is a block diagram of the image generation apparatus in this Embodiment. 本実施の形態における描画ブロックの構成図である。It is a block diagram of the drawing block in this Embodiment. 本実施の形態におけるラスタライザの構成図である。It is a block diagram of the rasterizer in this Embodiment. 三角形描画時のピクセル情報の生成をピクセル単位で行う手法を説明する図である。It is a figure explaining the method of producing | generating the pixel information at the time of a triangle drawing per pixel. 三角形描画時のピクセル情報の生成をサブピクセル単位で行う手法を説明する図である。It is a figure explaining the method of producing | generating the pixel information at the time of a triangle drawing per subpixel. 線の描画におけるダイヤモンドルールの手法を説明する図である。It is a figure explaining the method of the diamond rule in line drawing. 線の描画におけるダイヤモンドルールの手法をサブピクセル単位で行う場合を説明する図である。It is a figure explaining the case where the method of the diamond rule in line drawing is performed per subpixel. 本実施の形態において線の描画時にピクセル情報を生成する手法を説明する図である。It is a figure explaining the method of producing | generating pixel information at the time of line drawing in this Embodiment. 本実施の形態において線の描画時にピクセル情報を生成する手順を示す流れ図である。It is a flowchart which shows the procedure which produces | generates pixel information at the time of line drawing in this Embodiment. 本実施の形態におけるサブピクセル単位の走査手法を説明する図である。It is a figure explaining the scanning method of the sub pixel unit in this Embodiment. 三角形描画時のピクセルまたはサブピクセルの内外判定手法を説明する図である。It is a figure explaining the internal / external determination method of the pixel at the time of triangle drawing, or a subpixel. 本実施の形態におけるサブピクセルの内外判定に関し、三角形描画時の手法を応用する手法について説明する図である。It is a figure explaining the method of applying the method at the time of a triangle drawing regarding the inside / outside determination of the sub pixel in this Embodiment.

図1は、本実施の形態に係る画像生成装置200の構成図である。画像生成装置200は、描画ブロック100と制御ブロック110と入出力ブロック120とがバス150で接続されて構成され、入出力ブロック120には記憶装置130と表示装置140が接続される。入出力ブロック120は、ネットワーク経由で他の装置と通信して、描画に必要なデータを外部から取得する構成であってもよい。   FIG. 1 is a configuration diagram of an image generation apparatus 200 according to the present embodiment. The image generation apparatus 200 is configured by connecting a drawing block 100, a control block 110, and an input / output block 120 via a bus 150, and a storage device 130 and a display device 140 are connected to the input / output block 120. The input / output block 120 may be configured to acquire data necessary for drawing from the outside by communicating with another device via a network.

制御ブロック110は、この画像生成装置200全体を制御するブロックであり、画像生成装置200内部と、記憶装置130、表示装置140などの外部周辺装置との間のデータ転送の同期管理、画像生成装置200内部の各ユニットからの割り込みの処理、タイマーの管理などを行う。   The control block 110 is a block that controls the entire image generation apparatus 200. The synchronization management of data transfer between the inside of the image generation apparatus 200 and external peripheral devices such as the storage device 130 and the display device 140, the image generation apparatus Processing of interruption from each unit in the 200, management of a timer, and the like are performed.

入出力ブロック120は、記憶装置130に格納された3次元モデル情報や各種パラメータを読み込み、描画ブロック100に提供する。入出力ブロック120は、ネットワーク経由で外部装置から描画に必要なデータを受信して、描画ブロック100に提供してもよい。入出力ブロック120は、描画ブロック100が出力する描画データを表示装置140に表示する。   The input / output block 120 reads the three-dimensional model information and various parameters stored in the storage device 130 and provides them to the drawing block 100. The input / output block 120 may receive data necessary for drawing from an external device via a network and provide the data to the drawing block 100. The input / output block 120 displays the drawing data output from the drawing block 100 on the display device 140.

描画ブロック100は、入出力ブロック120から与えられる3次元モデル情報をもとに描画データを生成し、フレームバッファに書き込むレンダリング処理を行う。   The drawing block 100 performs rendering processing that generates drawing data based on the three-dimensional model information given from the input / output block 120 and writes the drawing data in the frame buffer.

図2は、描画ブロック100の構成図である。ラスタライザ10は、入出力ブロック120から描画プリミティブの頂点データを受け取る。描画プリミティブは一般的には三角形であり、ラスタライザ10は、3次元空間上の三角形を投影変換により描画平面上の三角形に変換するビュー変換を行い、さらに、描画平面上の三角形を描画平面の水平方向に沿って走査しながら、1列毎に量子化されたピクセルに変換するラスター処理を行う。ラスタライザ10により、描画プリミティブがピクセル展開され、各ピクセルについて、RGBカラー値、α値、Z値を含むピクセル情報が算出される。   FIG. 2 is a configuration diagram of the drawing block 100. The rasterizer 10 receives the drawing primitive vertex data from the input / output block 120. The drawing primitive is generally a triangle, and the rasterizer 10 performs view conversion that converts a triangle in the three-dimensional space into a triangle on the drawing plane by projection conversion, and further converts the triangle on the drawing plane to the horizontal of the drawing plane. While scanning along the direction, raster processing is performed to convert the pixel into a quantized pixel for each column. The rasterizer 10 develops the rendering primitive into pixels, and pixel information including RGB color values, α values, and Z values is calculated for each pixel.

ラスタライザ10は、走査線に沿って所定の大きさのピクセル領域(以下、描画対象領域という)を生成し、後段の描画演算ユニット20に与える。描画演算ユニット20には、シェーダユニット30と、テクスチャユニット50とが含まれ、メモリ40を利用しながら処理が行われる。メモリ40内には、フレームバッファとテクスチャバッファが設けられる。なお、フレームバッファとテクスチャバッファは、単一のメモリ内に設けられてもよく、物理的に別個のメモリに設けられてもよい。   The rasterizer 10 generates a pixel area having a predetermined size along the scanning line (hereinafter referred to as a drawing target area) and supplies the pixel area to the subsequent drawing arithmetic unit 20. The drawing operation unit 20 includes a shader unit 30 and a texture unit 50, and performs processing while using the memory 40. In the memory 40, a frame buffer and a texture buffer are provided. Note that the frame buffer and the texture buffer may be provided in a single memory, or may be provided in physically separate memories.

ラスタライザ10から描画演算ユニット20に供給された描画対象領域は、キューにスタックされ、シェーダユニット30は、キューにスタックされた描画対象領域を順に処理する。   The drawing target areas supplied from the rasterizer 10 to the drawing calculation unit 20 are stacked in a queue, and the shader unit 30 sequentially processes the drawing target areas stacked in the queue.

シェーダユニット30は、ラスタライザ10により算出されたピクセル情報をもとに、シェーディング処理を行い、テクスチャユニット50により得られたテクセル情報をもとに、テクスチャマッピング後のピクセル色を定め、メモリ40内のフレームバッファに描画データを書き込む。シェーダユニット30は、さらに、フレームバッファに保持された描画データに対して、フォギング、αブレンディング等の処理を行い、最終的な描画色を求め、フレームバッファの描画データを更新する。フレームバッファに記憶された描画データは、入出力ブロック120により読み出され、表示装置140に出力される。   The shader unit 30 performs a shading process based on the pixel information calculated by the rasterizer 10, determines a pixel color after texture mapping based on the texel information obtained by the texture unit 50, and stores in the memory 40. Write drawing data to the frame buffer. The shader unit 30 further performs processing such as fogging and α blending on the drawing data held in the frame buffer, obtains a final drawing color, and updates the drawing data in the frame buffer. The drawing data stored in the frame buffer is read by the input / output block 120 and output to the display device 140.

テクスチャユニット50は、シェーダユニット30からテクスチャデータを指定するパラメータの入力を受け取り、テクスチャデータのアドレスを算出して、メモリ40内のテクスチャバッファに対して必要なテクスチャデータを要求する。テクスチャユニット50は、テクスチャバッファから読み出されたテクスチャデータをキャッシュし、バイリニア補間、トライリニア補間などのフィルタ処理を施して、シェーダユニット30に出力する。   The texture unit 50 receives an input of a parameter for designating texture data from the shader unit 30, calculates an address of the texture data, and requests necessary texture data from the texture buffer in the memory 40. The texture unit 50 caches the texture data read from the texture buffer, performs filter processing such as bilinear interpolation and trilinear interpolation, and outputs the result to the shader unit 30.

図3はラスタライザ10の構成図である。ラスタライザ10は、入出力ブロック120から描画プリミティブの頂点データを受け取る頂点データ読込部12と、描画プリミティブの頂点データをビュー変換によって描画平面座標系の頂点データへ変換するビュー変換部14と、描画平面上の頂点座標を結ぶ線分を表す関数(以後、エッジ関数と呼ぶ)を算出したり、後段にて行われるDDA処理で用いられる走査領域を設定したりするセットアップ処理部16と、エッジ関数を取得した三角形などの描画形状を、描画平面の水平方向に走査し、1列ごとにDDA(Digital Differential Analyzer)処理などを施すことにより、描画形状の辺および内部に含まれるピクセルごとに、RGBカラー値、α値、Z値を含むピクセル情報を取得するピクセル情報生成部18と、ピクセル情報生成部18にて取得したピクセル情報を含む描画対象領域を描画演算ユニット20へ供給するピクセル情報送出部19を含む。   FIG. 3 is a configuration diagram of the rasterizer 10. The rasterizer 10 includes a vertex data reading unit 12 that receives the vertex data of a drawing primitive from the input / output block 120, a view conversion unit 14 that converts the vertex data of the drawing primitive into vertex data of a drawing plane coordinate system by view conversion, and a drawing plane. A setup processing unit 16 that calculates a function (hereinafter referred to as an edge function) that represents a line segment that connects the upper vertex coordinates, or sets a scanning area used in a DDA process performed later, and an edge function The acquired drawing shape such as a triangle is scanned in the horizontal direction of the drawing plane and subjected to DDA (Digital Differential Analyzer) processing or the like for each column, so that an RGB color is applied to each side of the drawing shape and each pixel included in the drawing shape. A pixel information generation unit 18 that acquires pixel information including a value, an α value, and a Z value; The drawing target region including the resulting the pixel information to the rendering operation unit 20 including supplying pixel information sending unit 19.

次に、ラスタライザ10のピクセル情報生成部18における動作を説明する。まず本実施の形態を説明するために、全般的な動作について説明する。図4および図5は描画平面座標系の頂点データおよびエッジ関数が得られている三角形について、ピクセル情報生成部18において行われる処理について説明する図であり、図4はピクセル単位での処理、図5は各ピクセルを仮想的に分割したサブピクセル単位での処理を示している。これらの図において1ピクセルの表示領域は実線のます目で、1サブピクセルの領域は破線のます目で示されている。   Next, the operation in the pixel information generation unit 18 of the rasterizer 10 will be described. First, in order to describe the present embodiment, general operations will be described. 4 and 5 are diagrams for explaining processing performed in the pixel information generation unit 18 for the triangle from which the vertex data and the edge function of the drawing plane coordinate system are obtained. FIG. 4 is a diagram illustrating processing in units of pixels. Reference numeral 5 denotes processing in units of subpixels obtained by virtually dividing each pixel. In these drawings, the display area of 1 pixel is indicated by a solid line, and the area of 1 subpixel is indicated by a broken line.

図4に示すピクセル単位の処理では、例えば上から1行目、2行目と、水平の走査方向60に順次走査を行い、各ピクセルが三角形62の内部に存在するか否かの内外判定を行う。図4においては三角形62の内部にあると判定されたピクセルを黒丸、外部にあると判定されたピクセルを白丸で表している。以後、図5から図7、および図8も同様の表示を行う。内外判定の後、三角形62の内部に存在するピクセルについて、三角形62の辺を端点とする線型補間を行ごとに行うことにより、各ピクセルのRGBカラー値、Z値を算出する。図4のようなピクセル単位の処理では、全ての処理が離散的なピクセル単位で行われるため、三角形62の内部に存在するピクセルと外部に存在するピクセルとの差が顕著になり、ジャギーなどのエイリアスが目立ちやすい。   In the pixel unit processing shown in FIG. 4, for example, the first row and the second row from the top are sequentially scanned in the horizontal scanning direction 60 to determine whether each pixel is inside the triangle 62 or not. Do. In FIG. 4, pixels determined to be inside the triangle 62 are represented by black circles, and pixels determined to be outside are represented by white circles. Thereafter, the same display is performed in FIGS. 5 to 7 and FIG. After the inside / outside determination, the RGB color value and Z value of each pixel are calculated by performing linear interpolation for each pixel existing inside the triangle 62 with the side of the triangle 62 as an end point. In the pixel unit processing as shown in FIG. 4, since all processing is performed in discrete pixel units, the difference between the pixel existing inside the triangle 62 and the pixel existing outside is significant, and jaggies and the like Alias is conspicuous.

図5は各ピクセルを仮想的に縦方向、横方向に4分割し、1ピクセルを16サブピクセルとした場合について示している。このときはサブピクセル単位の行ごとに、走査方向60に順次走査を行い、三角形62に対するサブピクセルの内外判定を行う。そして、各ピクセルに含まれる16個のサブピクセルのうち、三角形62の内部に存在するサブピクセルの数を集計し、ピクセルごとにその数の割合をα値として算出する。例えばあるピクセルを構成するサブピクセルのうち3個のサブピクセルが三角形62の内部に存在すれば、そのピクセルのα値は3/16である。   FIG. 5 shows a case where each pixel is virtually divided into four in the vertical and horizontal directions, and one pixel is 16 subpixels. At this time, scanning is sequentially performed in the scanning direction 60 for each row of subpixel units, and the inside / outside determination of the subpixel with respect to the triangle 62 is performed. Then, of the 16 subpixels included in each pixel, the number of subpixels existing inside the triangle 62 is totaled, and the ratio of the number is calculated as an α value for each pixel. For example, if three sub-pixels of a sub-pixel constituting a certain pixel exist inside the triangle 62, the α value of that pixel is 3/16.

このα値は後段のシェーダユニット30におけるαブレンディング処理において用いられる。例えば三角形62の内外にまたがるピクセルの表示領域において、三角形62の内側の部分のピクセル値をA、外側の部分のピクセル値をBとしたとき、当該ピクセルのピクセル値をαA+(1−α)Bなどとして、2つのピクセル値A、Bを(1−α):αの比で内分して混合する。この混合(ブレンディング)処理によって各ピクセルは、三角形62との位置関係によってそのピクセル値が調整されるため、サブピクセルを導入しない図4の場合と比較すると、三角形62の外部にあるピクセルとの差が緩和され、エイリアスが目立ちにくい。ラスタライザ10では図4および図5に示した、ピクセル単位での走査による情報、サブピクセル単位での走査による情報の双方を生成しておき、表示内容や装置の状況などに応じてαブレンディング処理を行うかどうかをシェーダユニット30で決定することもできる。   This α value is used in the α blending process in the shader unit 30 at the subsequent stage. For example, in a display area of pixels extending inside and outside the triangle 62, when the pixel value of the inner part of the triangle 62 is A and the pixel value of the outer part is B, the pixel value of the pixel is αA + (1−α) B For example, the two pixel values A and B are internally divided at a ratio of (1-α): α and mixed. Since the pixel value of each pixel is adjusted by the positional relationship with the triangle 62 by this blending process, the difference from the pixel outside the triangle 62 is compared with the case of FIG. Is relaxed and aliases are not noticeable. The rasterizer 10 generates both information by scanning in units of pixels and information by scanning in units of sub-pixels as shown in FIGS. 4 and 5, and performs α blending processing according to the display contents and the status of the apparatus. The shader unit 30 can also determine whether to do this.

次に、描画平面座標系の頂点データおよびエッジ関数が得られている線分(以下、描画対象線と呼ぶ)について、ピクセル情報を生成する手法の例を、図6を参照しながら説明する。図6は描画対象線のピクセル情報生成に用いられる手法のひとつであるダイヤモンドルール(Diamond-Exit Rule)を説明する図である。ダイヤモンドルールは各ピクセルの中心を中心点とし、ピクセルの辺の中点を頂点とするダイヤモンド形状の四角形(以下、単にダイヤモンド64と呼ぶ)を仮想的に発生させ、描画対象線66が各ダイヤモンド64を横切るかどうかによって、描画対象線66を構成するピクセルの判定を行う処理である。同図が示すように、描画対象線66を構成すると判定されたピクセルは離散的であるため、三角形の場合について図4を用いて説明したのと同様、当該ピクセルとそれ以外のピクセルとの差が顕著になり、ジャギーなどのエイリアスが目立ちやすくなる。   Next, an example of a method for generating pixel information for a line segment (hereinafter referred to as a drawing target line) from which vertex data and an edge function of the drawing plane coordinate system are obtained will be described with reference to FIG. FIG. 6 is a diagram for explaining a diamond rule (Diamond-Exit Rule) which is one of the methods used for generating pixel information of a drawing target line. The diamond rule virtually generates a diamond-shaped quadrangle (hereinafter simply referred to as diamond 64) having the center of each pixel as the center point and the midpoint of the pixel side as a vertex, and the drawing target line 66 is the diamond 64. Is a process of determining the pixels constituting the drawing target line 66 depending on whether or not they cross. As shown in the figure, since the pixels determined to constitute the drawing target line 66 are discrete, the difference between the pixel and the other pixels is the same as described with reference to FIG. 4 in the case of a triangle. Becomes noticeable, and aliases such as jaggy are more noticeable.

ここで上述の三角形の場合で導入したサブピクセル単位の走査機能を利用して、描画線のエイリアスを軽減しようとした場合を考える。図7はダイヤモンドルールによる線の描画において、サブピクセル単位の走査手法を導入したときの態様を説明した図である。同図も、各ピクセルを縦方向、横方向に4分割し、1ピクセルを16サブピクセルとした例を示している。このサブピクセルごとに上述のダイヤモンドルールを適用すると、描画対象線66が横切るダイヤモンドを有するサブピクセルが、当該線を構成すると判定され、それ以外のサブピクセルは当該線とは関係しないことになる。   Here, a case is considered in which the alias of the drawing line is to be reduced by using the sub-pixel unit scanning function introduced in the case of the triangle described above. FIG. 7 is a diagram illustrating an aspect when a scanning method in units of subpixels is introduced in drawing a line by the diamond rule. This figure also shows an example in which each pixel is divided into four in the vertical direction and the horizontal direction, and one pixel is 16 subpixels. When the above diamond rule is applied to each subpixel, it is determined that the subpixel having the diamond that the drawing target line 66 crosses constitutes the line, and the other subpixels are not related to the line.

ここで仮に、図6にて示したピクセル単位のダイヤモンドルールの処理において、1ピクセルが16サブピクセルであると考えると、描画対象線66を構成すると判定されたピクセルは16サブピクセル全てが当該描画対象線66を構成すると判定していることになる。それと比較すると、図7のサブピクセル単位の処理では、1ピクセルに含まれるサブピクセルのうち、描画対象線66を構成すると判定されたサブピクセルの数が極端に少なく、ピクセル単位の情報としてα値を算出すると全体的に小さい値となる。そのため、シェーダユニット30におけるαブレンディングの結果得られる描画データは、図6のピクセル単位の処理の場合と比較すると、描画される線の色が細くなったり、薄くなったり、不連続な線に見えたりすることがある。したがってシェーダユニット30において、エイリアスを軽減させようとαブレンディングの処理を行うようにすると、描画した線自体の印象まで変化してしまう、という問題が生じやすいことを本発明者は認識した。   Here, if it is assumed that one pixel is 16 subpixels in the diamond rule processing in units of pixels shown in FIG. 6, all of the 16 subpixels determined to constitute the drawing target line 66 are drawn. It is determined that the target line 66 is configured. Compared to that, in the processing in units of subpixels in FIG. 7, the number of subpixels determined to constitute the drawing target line 66 among the subpixels included in one pixel is extremely small, and the α value is used as information in units of pixels. As a result, the overall value becomes small. For this reason, the drawing data obtained as a result of the α blending in the shader unit 30 appears to be a thin line, a thin line, or a discontinuous line as compared with the pixel unit processing in FIG. Sometimes. Therefore, the present inventor has recognized that when the shader unit 30 is subjected to the α blending process to reduce the alias, a problem that the impression of the drawn line itself changes easily occurs.

上述の問題を克服するために、本実施の形態のラスタライザ10のセットアップ処理部16およびピクセル情報生成部18において行われる処理動作について、以降に説明する。   Processing operations performed in the setup processing unit 16 and the pixel information generation unit 18 of the rasterizer 10 of the present embodiment to overcome the above-described problem will be described below.

図8は本実施の形態において描画平面座標系の頂点データおよびエッジ関数が得られている線に対して、ピクセル情報生成部18において行われる処理について説明する図である。同図は、各ピクセルを縦方向、横方向に4分割し、1ピクセルを16サブピクセルとした例を示しているが、サブピクセルの数はこれに限定されず、所望の計算コストや精度などによって設定してよく、本実施の形態の手法はどの場合でも適用可能である。同図に示すとおり、本実施の形態においては当該線を所定の幅を有する領域と考え、その領域に対してサブピクセルの内外判定を行う。具体的には、エッジ関数を算出した描画対象線66を描画平面座標系の軸方向に平行移動させてできた2本のシフト線68と、移動方向に平行な2本の線(以降、端辺と呼ぶ)によって形成される平行四辺形abcdをその領域とする。   FIG. 8 is a diagram for explaining processing performed in the pixel information generation unit 18 for the line from which the vertex data and the edge function of the drawing plane coordinate system are obtained in the present embodiment. This figure shows an example in which each pixel is divided into four in the vertical and horizontal directions, and one pixel is 16 subpixels. However, the number of subpixels is not limited to this, and the desired calculation cost, accuracy, etc. The method of this embodiment can be applied in any case. As shown in the figure, in the present embodiment, the line is considered as a region having a predetermined width, and the inside / outside determination of the subpixel is performed on the region. Specifically, two shift lines 68 formed by translating the drawing target line 66 for which the edge function has been calculated in the axial direction of the drawing plane coordinate system, and two lines parallel to the moving direction (hereinafter referred to as end points). The parallelogram abcd formed by “side” is defined as the region.

図9は本実施の形態のセットアップ処理部16およびピクセル情報生成部18において行われる処理の手順を示す流れ図である。まず、描画対象線66について与えられた2つの頂点座標から、エッジ関数を算出する(S10)。次にエッジ関数の傾き判定を行い、描画対象線66が描画平面座標系のx軸となす鋭角が45゜以下の場合は(S12のY)、描画対象線66をy軸方向に0.5dおよび−0.5d平行移動させた2本のシフト線68の関数を算出する(S14)。ここでdは1ピクセルの表示領域の幅を示している。図8で示した図は、描画対象線66とx軸とがなす鋭角が45゜以下であり、描画対象線66をy軸方向に平行移動した場合を示している。一方、描画対象線66と描画平面座標系のx軸とがなす鋭角が45゜より大きい場合は(S12のN)、描画対象線66をx軸方向に0.5dおよび−0.5d平行移動させた2本のシフト線68の関数を算出する(S16)。   FIG. 9 is a flowchart showing a procedure of processes performed in the setup processing unit 16 and the pixel information generation unit 18 of the present embodiment. First, an edge function is calculated from the two vertex coordinates given for the drawing target line 66 (S10). Next, the inclination of the edge function is determined, and when the acute angle between the drawing target line 66 and the x axis of the drawing plane coordinate system is 45 ° or less (Y in S12), the drawing target line 66 is 0.5d in the y-axis direction. And the function of the two shift lines 68 translated by −0.5d is calculated (S14). Here, d indicates the width of the display area of 1 pixel. The diagram shown in FIG. 8 shows a case where the acute angle formed between the drawing target line 66 and the x-axis is 45 ° or less and the drawing target line 66 is translated in the y-axis direction. On the other hand, when the acute angle formed by the drawing target line 66 and the x-axis of the drawing plane coordinate system is greater than 45 ° (N in S12), the drawing target line 66 is translated by 0.5d and −0.5d in the x-axis direction. A function of the two shifted shift lines 68 is calculated (S16).

以降、描画対象線66が描画平面座標系のx軸となす鋭角が45゜以下の場合(S12のY)、当該描画対象線66に対してx軸をメジャー軸、y軸をマイナー軸と呼ぶ。一方、描画対象線66が描画平面座標系のx軸となす鋭角が45゜より大きい場合(S12のN)、x軸をマイナー軸、y軸をメジャー軸と呼ぶ。   Hereinafter, when the acute angle between the drawing target line 66 and the x axis of the drawing plane coordinate system is 45 ° or less (Y in S12), the x axis is called the major axis and the y axis is called the minor axis with respect to the drawing target line 66. . On the other hand, when the acute angle between the drawing target line 66 and the x axis of the drawing plane coordinate system is greater than 45 ° (N in S12), the x axis is called the minor axis and the y axis is called the major axis.

次に2本のシフト線68の始点および終点の4点を頂点とする平行四辺形abcdに含まれるサブピクセルを検出するための走査領域を設定し(S18)、当該走査領域を走査することによってサブピクセルの内外判定を行う(S20)。走査手法については後述する。   Next, a scanning region for detecting subpixels included in the parallelogram abcd having the four starting points and the ending points of the two shift lines 68 is set (S18), and the scanning region is scanned. The inside / outside determination of the subpixel is performed (S20). The scanning method will be described later.

その後は上述したサブピクセル導入時の三角形処理の場合と同様、各ピクセルに属するサブピクセルのうち平行四辺形abcdの内部に存在するサブピクセルの数の割合をα値として算出する。このα値を用いて、シェーダユニット30におけるαブレンディング処理を行うことにより、その幅がおよそd、すなわち1ピクセル分であり、ダイヤモンドルールなどによってサブピクセルを導入せずに生成したピクセル情報に基づいて描画された線と同様の色合いを有し、かつエイリアスが軽減された線を描画することができる。   Thereafter, as in the case of the triangle processing at the time of introducing the sub-pixel described above, the ratio of the number of sub-pixels existing inside the parallelogram abcd among the sub-pixels belonging to each pixel is calculated as an α value. By using this α value, the α blending process in the shader unit 30 is performed, so that the width is about d, that is, one pixel, and based on pixel information generated without introducing a subpixel by a diamond rule or the like. It is possible to draw a line having the same color as the drawn line and having reduced alias.

次に、図9のS18およびS20において行われる、本実施の形態におけるサブピクセル単位の走査手法について説明する。   Next, the sub-pixel unit scanning method in the present embodiment performed in S18 and S20 of FIG. 9 will be described.

図10は本実施の形態におけるサブピクセル単位の走査手法を説明する図である。まず図9のS18で示したように、平行四辺形abcdに外接し、描画平面のx軸およびy軸と平行な辺を有する矩形状に走査領域ABCDを設定する。本実施の形態では、平行四辺形abcdの辺のうち、2本のシフト線68の端点どうしを結ぶ端辺adおよびbcは描画対象線66のシフト方向の軸、すなわちマイナー軸であるy軸に平行であるから、走査領域ABCDの境界線の一部、すなわちADおよびBCは、端辺adおよびbcとそれぞれ一致することになる。マイナー軸がx軸となる描画対象線においても同様に、走査領域が端辺と一致する。   FIG. 10 is a diagram for explaining a scanning method in units of subpixels in the present embodiment. First, as shown in S18 of FIG. 9, the scanning region ABCD is set in a rectangular shape circumscribing the parallelogram abcd and having sides parallel to the x axis and the y axis of the drawing plane. In the present embodiment, of the sides of the parallelogram abcd, the edges ad and bc that connect the end points of the two shift lines 68 are the axes in the shift direction of the drawing target line 66, that is, the y axis that is the minor axis. Since they are parallel, a part of the boundary line of the scanning area ABCD, that is, AD and BC coincide with the edges ad and bc, respectively. Similarly, in the drawing target line whose minor axis is the x-axis, the scanning region coincides with the end side.

次にこの走査領域ABCD内を、上述の三角形に対する内外判定と同様に、サブピクセル単位の行ごとに、例えば水平の走査方向60に順次走査を行う。前述のとおり走査領域ABCDは端辺adおよびbcと一致しているため、端辺adおよびbcに対して外側にあるサブピクセルは走査の対象外となっている。したがって、ここで行われる走査では、サブピクセルが2辺abおよびdcの内側にあるか否かの内外判定だけで済むことになる。   Next, the scanning area ABCD is sequentially scanned, for example, in the horizontal scanning direction 60 for each row of subpixels, similarly to the above-described inside / outside determination for the triangle. As described above, since the scanning region ABCD coincides with the edge sides ad and bc, the sub-pixels outside the edge sides ad and bc are not scanned. Therefore, in the scanning performed here, it is only necessary to determine whether the subpixel is inside the two sides ab and dc.

2辺abおよびdc上にかかるサブピクセルについては、一方の辺上のサブピクセルを内在と判定した場合は、他方の辺上のサブピクセルを外在とするなど、描画線の幅がよりdに近くなるようなルールを設定する。同様に2辺adおよびbc上にかかるサブピクセルについては、一方の辺上のサブピクセルを内在と判定したら、もう一方の辺上のサブピクセルを外在と判定するなどのルールを設ける。これにより、描画対象線の本来の長さにより近い線が描画できるとともに、複数の線が連続している場合に、接続部分のサブピクセルを2重に集計するのを防止することができる。   For the subpixels on the two sides ab and dc, if the subpixel on one side is determined to be internal, the subpixel on the other side is external, for example, the width of the drawing line is further increased to d Set rules that are close to each other. Similarly, for the subpixels on the two sides ad and bc, a rule is set such that if a subpixel on one side is determined to be internal, a subpixel on the other side is determined to be external. As a result, a line closer to the original length of the drawing target line can be drawn, and when a plurality of lines are continuous, it is possible to prevent the sub-pixels of the connection portion from being double counted.

次に、本実施の形態における平行四辺形abcdに対するサブピクセルの内外判定のための走査手法を、三角形に対して用いられている内外判定機能を応用して、容易に実現する動作原理について説明する。   Next, a description will be given of an operation principle that easily realizes the scanning method for determining the inside / outside of a subpixel with respect to the parallelogram abcd according to the present embodiment by applying the inside / outside determination function used for a triangle. .

まず、本実施の形態を理解するために、三角形に対する内外判定の処理について説明する。図11は描画対象が三角形の場合の、ピクセルまたはサブピクセルの内外判定手法を説明する図である。ここで三角形のエッジ関数を表す線は、e、f、およびgと標記し、描画平面上の座標を(x,y)としている。以降、本実施の形態との整合性を保つためにサブピクセル単位の内外判定を行うとして説明する。まず走査を行うバウンディングボックス、すなわち走査領域を設定する。線e、f、およびgによって形成される三角形の外接矩形は矩形EFGHである。ここでもし、当該三角形が表示装置における画像の表示領域など、描画可能な領域をはみ出している場合、当然そのはみ出た部分のピクセル情報は表示に必要でないため、走査を行わない。図11に示すように、あらかじめ定められた描画可能な領域(以降、シザリング領域と呼ぶ)をsx0≦x≦sx1,sy0≦y≦sy1とした場合、三角形に対する走査領域は、外接矩形EFGHと前述のシザリング領域との共通領域である長方形EIJHである。   First, in order to understand the present embodiment, an inside / outside determination process for a triangle will be described. FIG. 11 is a diagram for explaining a pixel or sub-pixel inside / outside determination method when a drawing target is a triangle. Here, the lines representing the triangular edge functions are denoted as e, f, and g, and the coordinates on the drawing plane are (x, y). In the following description, it is assumed that inside / outside determination is performed in units of subpixels in order to maintain consistency with the present embodiment. First, a bounding box for scanning, that is, a scanning area is set. The circumscribed rectangle of the triangle formed by the lines e, f, and g is the rectangle EFGH. Here, if the triangle protrudes from a drawable region such as an image display region in the display device, the pixel information of the protruding portion is not necessary for display, and thus scanning is not performed. As shown in FIG. 11, when a predetermined drawable area (hereinafter referred to as a scissoring area) is sx0 ≦ x ≦ sx1, sy0 ≦ y ≦ sy1, the scanning area for the triangle is the circumscribed rectangle EFGH and the above-described area. This is a rectangle EIJH that is a common area with the scissoring area.

走査領域を設定したら、例えばエッジ関数eおよびfの交点からx軸に平行な走査線上を、y軸の負の方向へ順次、サブピクセル単位で走査する。例えば走査線70に示すように、線fからx軸の正方向へサブピクセル上を走査していき、走査されたサブピクセルは、三角形内部に存在すると判定される。走査位置が線eまで達したら、ひとつ下のサブピクセルの行を同様に走査する。これを繰り返していくと、いずれ線eに達する前に走査領域EIJHの辺IJ、すなわちシザリング領域の境界線に達する行が現れる。このときは、走査線72に示すように、辺IJに達した時点で、次の走査線へと走査を移行する。   When the scanning region is set, for example, scanning is performed in units of subpixels sequentially in the negative direction of the y axis on the scanning line parallel to the x axis from the intersection of the edge functions e and f. For example, as indicated by the scanning line 70, the sub-pixel is scanned from the line f in the positive direction of the x-axis, and the scanned sub-pixel is determined to exist inside the triangle. When the scanning position reaches the line e, the next lower pixel row is similarly scanned. If this process is repeated, before reaching the line e, a line reaching the side IJ of the scanning area EIJH, that is, the boundary line of the scissoring area appears. At this time, as indicated by the scanning line 72, when the side IJ is reached, scanning is shifted to the next scanning line.

以上述べた三角形に対するサブピクセルの内外判定では、あらかじめ設定されたシザリング領域を表す数値、sx0、sx1、sy0、およびsy1と、三角形の辺を構成する線e、f、およびgのエッジ関数とに基づき、走査領域を設定し、サブピクセルの内外判定を行っている。次に、この三角形に対する内外判定機能を利用して、本実施の形態における平行四辺形abcdに含まれるサブピクセルの検出を行う場合について説明する。   In the above-described determination of the inside / outside of the subpixel with respect to the triangle, the numerical value indicating the scissoring area set in advance, sx0, sx1, sy0, and sy1, and the edge functions of the lines e, f, and g that form the sides of the triangle are used. Based on this, a scanning region is set, and the inside / outside determination of the subpixel is performed. Next, a case where subpixels included in the parallelogram abcd in the present embodiment are detected using the inside / outside determination function for the triangle will be described.

図12は本実施の形態におけるサブピクセルの内外判定に関し、三角形描画時の手法を応用する手法について説明する図である。まず、平行四辺形abcdの2辺abおよびdcをなす2本のシフト線68に対応するエッジ関数を、図11で示した三角形の辺を構成する3本の線のうちの2本、eおよびfの関数として設定する。残りの線gについては、例えばシザリング領域の境界線の一辺と同一の関数を与える。図12ではy=sy1なる関数を与えている。一方、端辺であるadおよびbcを与える関数はxに対する定数であるから、その定数を、シザリング領域の境界線のうち、マイナー軸であるy軸に平行な線、すなわちx=sx0およびx=sx1の、sx0およびsx1として設定する。   FIG. 12 is a diagram for explaining a technique for applying the technique at the time of drawing a triangle regarding the determination of the inside / outside of the subpixel in the present embodiment. First, the edge function corresponding to the two shift lines 68 forming the two sides ab and dc of the parallelogram abcd is expressed as two of the three lines constituting the sides of the triangle shown in FIG. Set as a function of f. For the remaining line g, for example, the same function as one side of the boundary line of the scissoring region is given. In FIG. 12, a function y = sy1 is given. On the other hand, since the functions that give ad and bc that are the edges are constants for x, the constants are lines parallel to the y-axis that is the minor axis among the boundary lines of the scissoring region, that is, x = sx0 and x = Set as sx0 and sx1 of sx1.

その結果、走査領域は自動的に長方形ABCDに定まる。これにより、平行四辺形abcdに対するサブピクセル単位の走査において、辺ab上に始点を有するある走査線74は端辺bcが終点となり、辺dc上に終点を有するある走査線76は端辺adが始点となる。すなわち端辺を横切るようなサブピクセルの行を走査する場合は、端辺より外部の走査を行うことがなくなり、あとは2本の線eおよびfに対して三角形の場合と同様の処理を行えば、結果として平行四辺形abcd内に存在するサブピクセルの検出を行ったことになる。以上、図12を参照してマイナー軸がy軸の場合について説明したが、マイナー軸がx軸の場合でも同様である。具体的には線gを例えばx=sx1と設定し、端辺のyに対する定数を、シザリング領域の境界線を与える関数の一部、y=sy0およびy=sy1の、sy0およびsy1として設定すればよい。   As a result, the scanning area is automatically determined as a rectangle ABCD. Accordingly, in scanning in units of subpixels with respect to the parallelogram abcd, a scanning line 74 having a start point on the side ab has an end side bc as an end point, and a scan line 76 having an end point on the side dc has an end side ad. The starting point. In other words, when scanning a row of subpixels that crosses the edge, no scanning is performed outside the edge, and the same processing as in the case of a triangle is performed on the two lines e and f. For example, as a result, subpixels existing in the parallelogram abcd are detected. The case where the minor axis is the y axis has been described above with reference to FIG. 12, but the same applies to the case where the minor axis is the x axis. Specifically, the line g is set as, for example, x = sx1, and the constant for y on the edge side is set as a part of the function that gives the boundary line of the scissoring region, y = sy0 and y = sy1, sy0 and sy1. That's fine.

ここでは上述のとおり、両端辺adおよびbc上に位置するサブピクセルについては、例えば一方の端辺ad上のサブピクセルを平行四辺形に内在と判定したら、もう一方の端辺bc上のサブピクセルは外在と判定するなどのルールを設ける。これにより、複数の線の接続部分のサブピクセルの2重集計を防止できる。また、本実施の形態ではマイナー軸が同一の複数の線が連続している場合、その端辺を表す関数がいずれもxの定数、もしくはyの定数として一致するため、線の接続部分にそれぞれの線の端部による凹凸が出現することがなくなる。   Here, as described above, for the subpixels located on both ends ad and bc, for example, if it is determined that the subpixel on one end ad is intrinsic to the parallelogram, the subpixel on the other end bc Provides rules such as determining whether the person is outside. As a result, it is possible to prevent double counting of sub-pixels at connection portions of a plurality of lines. In this embodiment, when a plurality of lines having the same minor axis are continuous, the functions representing the edges coincide with each other as a constant of x or a constant of y. Unevenness due to the end of the line no longer appears.

図12では端辺adおよびbcを表す、xに対する定数を、シザリング領域の境界線の2辺を表すx=sx0およびx=sx1のsx0およびsx1として設定した。しかし、あらかじめ設定してある、本来のシザリング領域の境界線が、端辺の少なくとも一方より平行四辺形abcdの内側に存在する場合は、平行四辺形abcdのうち、本来のシザリング領域の外部にある領域を走査する必要がなくなる。この場合は、図11で示した三角形の場合で説明したように、平行四辺形abcdは当該境界線で切断され、当該境界線と図12で示した走査領域ABCDの一部とが囲む領域が、正規の走査領域となる。このときも、ただ端辺が平行四辺形abcdの内側へ平行移動したにすぎず、本実施の形態の作用、効果は同様に得ることができる。   In FIG. 12, the constants for x representing the edge sides ad and bc are set as sx0 and sx1 of x = sx0 and x = sx1 representing the two sides of the boundary line of the scissoring region. However, if the boundary line of the original scissoring region that is set in advance exists inside the parallelogram abcd from at least one of the end sides, the boundary line is outside the original scissoring region of the parallelogram abcd. There is no need to scan the area. In this case, as described in the case of the triangle shown in FIG. 11, the parallelogram abcd is cut by the boundary line, and an area surrounded by the boundary line and a part of the scanning area ABCD shown in FIG. This becomes a regular scanning area. Also at this time, the end side is merely translated inward of the parallelogram abcd, and the functions and effects of the present embodiment can be obtained in the same manner.

以上述べた本実施の形態によれば、所望の線幅を考慮した領域をあらかじめ算出し、サブピクセル単位の内外判定処理を行うことによって、エイリアスが軽減され、かつ線幅や色合いなどを損なわない線の描画が可能となる。また、当該領域は、エッジ関数の得られている描画対象線を軸方向に平行移動させただけで容易に取得できる関数により構成されているため、除算器などを新たに実装する必要がなく、さらに端辺が描画平面の軸と平行であるため、走査領域の設定に関して、三角形などの描画に一般的に実装されていたハードウェアの機能をそのまま利用できるため、結果として安価な実装コストでの実現が可能であり、計算負荷も増大しない。さらにマイナー軸が一致した複数の線が連続した構成を有する描画線の場合、構成する線の端辺が互いに平行であるため、接続部分における端辺が一致し、連続性に優れた線を描画することができる。   According to the present embodiment described above, by calculating an area in consideration of a desired line width in advance and performing an inside / outside determination process in units of subpixels, aliases are reduced and line width and color tone are not impaired. Line drawing is possible. In addition, since the area is configured by a function that can be easily obtained simply by translating the drawing target line from which the edge function is obtained in the axial direction, there is no need to newly install a divider or the like, Furthermore, because the edge is parallel to the axis of the drawing plane, the hardware functions generally used for drawing triangles etc. can be used as they are for setting the scanning area. This can be realized and the calculation load does not increase. Furthermore, in the case of a drawing line with a configuration in which multiple lines with the same minor axis are connected, the edges of the lines are parallel to each other. can do.

以上、本発明を実施の形態をもとに説明した。上記実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。   The present invention has been described based on the embodiments. Those skilled in the art will understand that the above-described embodiment is an exemplification, and that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are also within the scope of the present invention. is there.

本実施の形態では、主に3次元グラフィックス処理についての構成を述べたが、2次元のグラフィックス処理においても、ラスタライザ10の動作は同様である。また、描画対象線は直線に限られず、同様の処理を曲線に適用することができる。さらに、平行四辺形など、描画対象線をシフトして発生させた領域の幅は、1ピクセルの表示領域の幅である必要はなく、ユーザの入力などに応じた幅を適宜設定してよい。これらの変形例においても、所望の形状、幅を有する領域をまず発生させ、それに対してサブピクセル単位の内外判定を、三角形の内外判定機能を利用しながら行い、その結果に基づきピクセル単位の情報を取得していくことにより、形状、色合いなどへの影響を最小限に、少ないエイリアスで線を描画することが、実装コスト、処理の負荷を増大させることなく実現できる。   In the present embodiment, the configuration mainly regarding the three-dimensional graphics processing has been described, but the operation of the rasterizer 10 is the same also in the two-dimensional graphics processing. The drawing target line is not limited to a straight line, and the same processing can be applied to a curve. Furthermore, the width of the region generated by shifting the drawing target line, such as a parallelogram, does not have to be the width of the display region of 1 pixel, and may be set as appropriate according to the user input. Also in these modified examples, first, an area having a desired shape and width is generated, and the inside / outside determination for each subpixel is performed using the inside / outside determination function of the triangle, and the information for each pixel is based on the result. By acquiring the above, it is possible to draw a line with a small number of aliases while minimizing the influence on the shape, hue, etc., without increasing the mounting cost and processing load.

10 ラスタライザ、 12 頂点データ読込部、 14 ビュー変換部、 16 セットアップ処理部、 18 ピクセル情報生成部、 19 ピクセル情報送出部、 描画演算ユニット、 66 描画対象線、 68 シフト線、 100 描画ブロック、 120 入出力ブロック、 200 画像生成装置。   10 rasterizer, 12 vertex data reading unit, 14 view conversion unit, 16 setup processing unit, 18 pixel information generating unit, 19 pixel information sending unit, drawing operation unit, 66 drawing target line, 68 shift line, 100 drawing block, 120 input Output block, 200 image generation device.

Claims (13)

描画データ生成部を含む画像生成装置における描画方法であって、前記描画データ生成部が、
描画対象の線を中心として、表示画面の水平方向および垂直方向のいずれかの方向にピクセルの大きさの整数倍の幅をもたせた領域を当該描画対象の線の描画領域に定め、ピクセルの表示領域が前記描画領域に含まれる割合に応じて、当該ピクセルのピクセル値を決定し、
前記ピクセルの表示領域が前記描画領域に含まれる割合は、前記ピクセルの表示領域をそれぞれ仮想的に所定数分割して得られたサブピクセルのうち、前記描画領域に含まれるサブピクセルの数に応じて決定し、
前記描画領域に含まれるサブピクセルの数を取得する際、前記描画領域の一組の向かい合う境界線のうち、一方を含むサブピクセルを前記描画領域に内在するとし、他方を含むサブピクセルを前記描画領域に外在すると判定することを特徴とする描画方法。
A drawing method in an image generation apparatus including a drawing data generation unit, wherein the drawing data generation unit includes:
Display the pixel by setting an area with a width that is an integer multiple of the pixel size in the horizontal or vertical direction of the display screen around the line to be drawn as the drawing area of the line to be drawn. According to the proportion of the area included in the drawing area, determine the pixel value of the pixel ,
The ratio of the display area of the pixel included in the drawing area depends on the number of subpixels included in the drawing area among the subpixels obtained by virtually dividing the display area of the pixel by a predetermined number. Decide
When obtaining the number of subpixels included in the drawing area, it is assumed that a subpixel including one of a pair of opposing borders of the drawing area is included in the drawing area, and a subpixel including the other is drawn in the drawing area. A drawing method characterized in that it is determined to be outside a region .
描画データ生成部を含む画像生成装置における描画方法であって、前記描画データ生成部が、
描画対象の線を含み、当該線を表示画面の水平方向および垂直方向のいずれかの方向に所定の幅だけシフトさせた2本の平行線を境界線として含み、前記2本の平行線の端点を頂点とする領域を当該描画対象の線の描画領域に定め、ピクセルの表示領域が前記描画領域に含まれる割合に応じて、当該ピクセルのピクセル値を決定し、
前記ピクセルの表示領域が前記描画領域に含まれる割合は、前記ピクセルの表示領域をそれぞれ仮想的に所定数分割して得られたサブピクセルのうち、前記描画領域に含まれるサブピクセルの数に応じて決定し、
前記描画領域に含まれるサブピクセルの数を取得する際、前記描画領域の一組の向かい合う境界線のうち、一方を含むサブピクセルを前記描画領域に内在するとし、他方を含むサブピクセルを前記描画領域に外在すると判定することを特徴とする描画方法。
A drawing method in an image generation apparatus including a drawing data generation unit, wherein the drawing data generation unit includes:
Includes two parallel lines including a drawing target line, and the lines are shifted by a predetermined width in either the horizontal direction or the vertical direction of the display screen, and the end points of the two parallel lines Is determined as the drawing area of the line to be drawn, and the pixel value of the pixel is determined according to the ratio of the display area of the pixel included in the drawing area ,
The ratio of the display area of the pixel included in the drawing area depends on the number of subpixels included in the drawing area among the subpixels obtained by virtually dividing the display area of the pixel by a predetermined number. Decide
When obtaining the number of subpixels included in the drawing area, it is assumed that a subpixel including one of a pair of opposing borders of the drawing area is included in the drawing area, and a subpixel including the other is drawn in the drawing area. A drawing method characterized in that it is determined to be outside a region .
前記描画領域は前記シフトさせた2本の平行線と、当該2本の平行線の始点どうしおよび終点どうしをそれぞれ結ぶ2本の線分とを境界線とすることを特徴とする請求項2に記載の描画方法。   3. The drawing area according to claim 2, wherein the two parallel lines shifted and the two line segments respectively connecting the start points and the end points of the two parallel lines are used as a boundary line. The drawing method described. 描画データ生成部を含む画像生成装置における描画方法であって、前記描画データ生成部が、
描画対象の線を含み、当該線を表示画面の水平方向および垂直方向のいずれかの方向に所定の幅だけシフトさせた2本の平行線を境界線として含み、前記2本の平行線の端点を頂点とする領域を当該描画対象の線の描画領域に定めるステップと、
前記描画領域を含み、前記描画領域の境界線の少なくとも一部を境界線に含む矩形の走査領域を設定するステップと、
ピクセルの表示領域を仮想的に所定数分割して得られたサブピクセル単位で前記走査領域内を走査し、前記描画領域に含まれるサブピクセルの数を取得するステップと、
各ピクセルに含まれるサブピクセルのうち、前記描画領域に含まれるサブピクセルの数の割合に応じて当該ピクセルのピクセル値を設定するステップと、
前記描画領域に含まれるサブピクセルの数を取得する際、前記描画領域の一組の向かい合う境界線のうち、一方を含むサブピクセルを前記描画領域に内在するとし、他方を含むサブピクセルを前記描画領域に外在すると判定するステップと、実行することを特徴とする描画方法。
A drawing method in an image generation apparatus including a drawing data generation unit, wherein the drawing data generation unit includes:
Includes two parallel lines including a drawing target line, and the lines are shifted by a predetermined width in either the horizontal direction or the vertical direction of the display screen, and the end points of the two parallel lines A step of defining a region having a vertex as a drawing region of the drawing target line;
Setting a rectangular scanning area including the drawing area and including at least a part of a boundary line of the drawing area as a boundary line;
Scanning the scanning area in units of subpixels obtained by virtually dividing a display area of pixels by a predetermined number to obtain the number of subpixels included in the drawing area;
Setting a pixel value of the pixel according to a ratio of the number of subpixels included in the drawing area among the subpixels included in each pixel;
When obtaining the number of subpixels included in the drawing area, it is assumed that a subpixel including one of a pair of opposing borders of the drawing area is included in the drawing area, and a subpixel including the other is drawn in the drawing area. A step of determining that the object is outside the area, and a drawing method characterized by executing .
描画データ生成部を含む画像生成装置における描画方法であって、前記描画データ生成部が、
頂点データの得られた描画対象の直線を含み、表示画面の水平方向および垂直方向のいずれかに所定の幅を有する当該直線と平行な平行四辺形に対し、ピクセルの表示領域より小さい微細領域単位で内外判定を行うことにより、前記ピクセルの表示領域が前記平行四辺形に内在する度合いを評価し、その度合いにもとづいて当該ピクセルのピクセル値を決定し、
前記ピクセルの表示領域が前記描画領域に含まれる割合は、前記ピクセルの表示領域をそれぞれ仮想的に所定数分割して得られたサブピクセルのうち、前記描画領域に含まれるサブピクセルの数に応じて決定し、
前記描画領域に含まれるサブピクセルの数を取得する際、前記描画領域の一組の向かい合う境界線のうち、一方を含むサブピクセルを前記描画領域に内在するとし、他方を含むサブピクセルを前記描画領域に外在すると判定することを特徴とする描画方法。
A drawing method in an image generation apparatus including a drawing data generation unit, wherein the drawing data generation unit includes:
Small area unit smaller than the pixel display area for a parallelogram parallel to the straight line having a predetermined width in either the horizontal or vertical direction of the display screen, including the straight line to be drawn from which the vertex data was obtained The inside / outside determination is performed to evaluate the degree of the display area of the pixel existing in the parallelogram, and the pixel value of the pixel is determined based on the degree .
The ratio of the display area of the pixel included in the drawing area depends on the number of subpixels included in the drawing area among the subpixels obtained by virtually dividing the display area of the pixel by a predetermined number. Decide
When obtaining the number of sub-pixels included in the drawing area, it is assumed that a sub-pixel including one of a pair of opposing borders of the drawing area is included in the drawing area, and a sub-pixel including the other is drawn in the drawing area. A drawing method characterized in that it is determined to be outside a region .
描画すべき画像の情報を読み込む描画情報取得部と、
前記画像の情報に基づき、各ピクセル値によってピクセル単位で表現した描画データを生成する描画データ生成部と、
前記描画データを記憶する描画データ記憶部と、を備え、
前記描画データ生成部は、前記画像の情報に含まれる描画対象の線をピクセル単位で表現する際、当該描画対象の線を中心として、表示画面の水平方向および垂直方向のいずれかの方向にピクセルの大きさの整数倍の幅をもたせた領域を当該描画対象の線の描画領域に定め、ピクセルの表示領域が前記描画領域に含まれる割合に応じて、当該ピクセルのピクセル値を設定し、
前記描画データ生成部は、
前記ピクセルの表示領域が描画領域に含まれる割合を、前記ピクセルの表示領域をそれぞれ仮想的に所定数分割して得られたサブピクセルのうち、前記描画領域に含まれるサブピクセルの数に応じて決定し、
前記描画領域に含まれるサブピクセルの数を取得する際、前記描画領域の一組の向かい合う境界線のうち、一方を含むサブピクセルを前記描画領域に内在するとし、他方を含むサブピクセルを前記描画領域に外在すると判定することを特徴とする画像生成装置。
A drawing information acquisition unit that reads information of an image to be drawn;
A drawing data generation unit that generates drawing data expressed in pixel units by each pixel value based on the information of the image;
A drawing data storage unit for storing the drawing data;
When the drawing data generation unit expresses a drawing target line included in the image information in units of pixels, the drawing data generation unit has pixels in either the horizontal direction or the vertical direction of the display screen around the drawing target line. An area having a width that is an integral multiple of the size of is defined as the drawing area of the line to be drawn, and the pixel value of the pixel is set according to the ratio of the pixel display area included in the drawing area ,
The drawing data generation unit
The ratio of the display area of the pixel included in the drawing area is determined according to the number of subpixels included in the drawing area among the subpixels obtained by virtually dividing the display area of the pixel by a predetermined number. Decide
When obtaining the number of subpixels included in the drawing area, it is assumed that a subpixel including one of a pair of opposing borders of the drawing area is included in the drawing area, and a subpixel including the other is drawn in the drawing area. An image generating apparatus, characterized in that it is determined to be outside a region .
描画すべき画像の情報を読み込む描画情報取得部と、
前記画像の情報に基づき、各ピクセル値によってピクセル単位で表現した描画データを生成する描画データ生成部と、
前記描画データを記憶する描画データ記憶部と、を備え、
前記描画データ生成部は、前記画像の情報に含まれる描画対象の線をピクセル単位で表現する際、当該描画対象の線を含み、当該線を表示画面の水平方向および垂直方向のいずれかの方向に所定の幅だけシフトさせた2本の平行線を境界線として含み、前記2本の平行線の端点を頂点とする領域を当該描画対象の線の描画領域に定め、ピクセルの表示領域が前記描画領域に含まれる割合に応じて、当該ピクセルのピクセル値を設定し、
前記描画データ生成部は、
前記ピクセルの表示領域が描画領域に含まれる割合を、前記ピクセルの表示領域をそれぞれ仮想的に所定数分割して得られたサブピクセルのうち、前記描画領域に含まれるサブピクセルの数に応じて決定し、
前記描画領域に含まれるサブピクセルの数を取得する際、前記描画領域の一組の向かい合う境界線のうち、一方を含むサブピクセルを前記描画領域に内在するとし、他方を含むサブピクセルを前記描画領域に外在すると判定することを特徴とする画像生成装置。
A drawing information acquisition unit that reads information of an image to be drawn;
A drawing data generation unit that generates drawing data expressed in pixel units by each pixel value based on the information of the image;
A drawing data storage unit for storing the drawing data;
The drawing data generation unit includes the drawing target line when expressing the drawing target line included in the image information in units of pixels, and the drawing data generation unit includes either the horizontal direction or the vertical direction of the display screen. A region including two parallel lines shifted by a predetermined width as a boundary line and having an end point of the two parallel lines as a vertex is defined as a drawing region of the drawing target line, and a pixel display region is Set the pixel value of the pixel according to the percentage included in the drawing area ,
The drawing data generation unit
The ratio of the display area of the pixel included in the drawing area is determined according to the number of subpixels included in the drawing area among the subpixels obtained by virtually dividing the display area of the pixel by a predetermined number. Decide
When obtaining the number of subpixels included in the drawing area, it is assumed that a subpixel including one of a pair of opposing borders of the drawing area is included in the drawing area, and a subpixel including the other is drawn in the drawing area. An image generating apparatus, characterized in that it is determined to be outside a region .
前記描画データ生成部が定める描画領域は、前記シフトさせた2本の平行線と、当該2本の平行線の始点どうしおよび終点どうしをそれぞれ結ぶ2本の線分とを境界線とすることを特徴とする請求項に記載の画像生成装置。 The drawing area defined by the drawing data generation unit uses the two parallel lines shifted and the two line segments connecting the start points and the end points of the two parallel lines as boundary lines. 8. The image generation apparatus according to claim 7 , wherein 前記描画データ生成部は、前記描画領域を含む矩形の走査領域を設定し、表示画面の水平方向および垂直方向のいずれかの方向に前記走査領域内を前記サブピクセル単位で走査することにより、前記描画領域に含まれるサブピクセルを検出することを特徴とする請求項7または8に記載の画像生成装置。 The drawing data generation unit sets a rectangular scanning area including the drawing area, and scans the scanning area in the horizontal direction and the vertical direction of the display screen in units of subpixels. 9. The image generation apparatus according to claim 7, wherein a sub-pixel included in the drawing area is detected. 前記描画データ生成部は、前記走査領域を、その境界線の一部が前記描画領域の境界線の一部と一致するように設定することを特徴とする請求項に記載の画像生成装置。 The image generation apparatus according to claim 9 , wherein the drawing data generation unit sets the scanning region so that a part of a boundary line thereof coincides with a part of a boundary line of the drawing region. 前記描画データ生成部は、前記描画対象の線と表示画面の水平方向とがなす鋭角が、所定の角度以内のときは前記シフトを垂直方向に行い、前記所定の角度より大きいときは前記シフトを水平方向に行うことを特徴とする請求項から10のいずれかに記載の画像生成装置。 The drawing data generation unit performs the shift in the vertical direction when the acute angle formed by the line to be drawn and the horizontal direction of the display screen is within a predetermined angle, and performs the shift when the acute angle is larger than the predetermined angle. the image generating apparatus according to claim 7, characterized in that it is carried out in the horizontal direction 10. 請求項に記載の画像生成装置と、当該画像生成装置を制御する制御部とを備え、前記画像生成装置が生成した画像を前記制御部の制御により表示装置へ表示することを特徴とする電子情報機器。 7. An electronic apparatus comprising: the image generation apparatus according to claim 6; and a control unit that controls the image generation apparatus, wherein an image generated by the image generation apparatus is displayed on a display device under the control of the control unit. Information equipment. 請求項に記載の画像生成装置と、当該画像生成装置を制御する制御部とを備え、前記画像生成装置が生成した画像を前記制御部の制御により表示装置へ表示することを特徴とする電子情報機器。 8. An electronic apparatus comprising: the image generation device according to claim 7; and a control unit that controls the image generation device, wherein an image generated by the image generation device is displayed on a display device under the control of the control unit. Information equipment.
JP2009074142A 2009-03-25 2009-03-25 Drawing method, image generation apparatus, and electronic information device Expired - Fee Related JP4766576B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009074142A JP4766576B2 (en) 2009-03-25 2009-03-25 Drawing method, image generation apparatus, and electronic information device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009074142A JP4766576B2 (en) 2009-03-25 2009-03-25 Drawing method, image generation apparatus, and electronic information device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2005017059A Division JP4327105B2 (en) 2005-01-25 2005-01-25 Drawing method, image generation apparatus, and electronic information device

Publications (2)

Publication Number Publication Date
JP2009134773A true JP2009134773A (en) 2009-06-18
JP4766576B2 JP4766576B2 (en) 2011-09-07

Family

ID=40866529

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009074142A Expired - Fee Related JP4766576B2 (en) 2009-03-25 2009-03-25 Drawing method, image generation apparatus, and electronic information device

Country Status (1)

Country Link
JP (1) JP4766576B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014052782A (en) * 2012-09-06 2014-03-20 Fujitsu Semiconductor Ltd Line drawing device, line drawing method, and line drawing program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0392899A (en) * 1989-09-05 1991-04-18 Seiko Instr Inc Image processor
JPH04139589A (en) * 1990-10-01 1992-05-13 Ricoh Co Ltd Graphic processor
JPH07121731A (en) * 1993-08-31 1995-05-12 Matsushita Electric Ind Co Ltd Method and device for plotting straight line
JPH0822548A (en) * 1994-07-06 1996-01-23 Hitachi Ltd Method and device for graphic processing
JPH1186007A (en) * 1997-07-02 1999-03-30 Hewlett Packard Co <Hp> Method for finding rate of pixel covered with primitive
JP2001092981A (en) * 1999-09-27 2001-04-06 Fuji Xerox Co Ltd Device and method for processing image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0392899A (en) * 1989-09-05 1991-04-18 Seiko Instr Inc Image processor
JPH04139589A (en) * 1990-10-01 1992-05-13 Ricoh Co Ltd Graphic processor
JPH07121731A (en) * 1993-08-31 1995-05-12 Matsushita Electric Ind Co Ltd Method and device for plotting straight line
JPH0822548A (en) * 1994-07-06 1996-01-23 Hitachi Ltd Method and device for graphic processing
JPH1186007A (en) * 1997-07-02 1999-03-30 Hewlett Packard Co <Hp> Method for finding rate of pixel covered with primitive
JP2001092981A (en) * 1999-09-27 2001-04-06 Fuji Xerox Co Ltd Device and method for processing image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014052782A (en) * 2012-09-06 2014-03-20 Fujitsu Semiconductor Ltd Line drawing device, line drawing method, and line drawing program

Also Published As

Publication number Publication date
JP4766576B2 (en) 2011-09-07

Similar Documents

Publication Publication Date Title
JP4327105B2 (en) Drawing method, image generation apparatus, and electronic information device
JP6476327B2 (en) Changes in effective resolution due to screen position by changing rasterization parameters
JP6678209B2 (en) Gradient adjustment for texture mapping to non-orthonormal grid
KR102101626B1 (en) Gradient adjustment for texture mapping for multiple render targets with resolution that varies by screen location
US7348996B2 (en) Method of and system for pixel sampling
US20070097145A1 (en) Method and system for supersampling rasterization of image data
KR101030825B1 (en) Low-cost supersampling rasterization
JP3547250B2 (en) Drawing method
US7940283B2 (en) Method and apparatus for pixel sampling
JP4766576B2 (en) Drawing method, image generation apparatus, and electronic information device
JP2018032301A (en) Image data processing method in image processing processor and program therefor
US7737971B2 (en) Image drawing device, vertex selecting method, vertex selecting program, and integrated circuit
US7372461B2 (en) Image processing apparatus and method of same
WO2019049289A1 (en) Image generation device and image generation method
JP3872056B2 (en) Drawing method
JP2011028641A (en) Image processing device and image processing method
JP4433525B2 (en) Image processing device
JP2010140101A (en) Drawing device
KR100927131B1 (en) Method and system of anti-aliasing
JPH08235380A (en) Method and device for displaying polyhedron

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090326

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20101125

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20110127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110222

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110329

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110531

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110609

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4766576

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140624

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees