WO2003001458A1 - Processeur de donnees - Google Patents

Processeur de donnees Download PDF

Info

Publication number
WO2003001458A1
WO2003001458A1 PCT/JP2002/006159 JP0206159W WO03001458A1 WO 2003001458 A1 WO2003001458 A1 WO 2003001458A1 JP 0206159 W JP0206159 W JP 0206159W WO 03001458 A1 WO03001458 A1 WO 03001458A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinates
matrix
calculating
information processing
coordinate
Prior art date
Application number
PCT/JP2002/006159
Other languages
English (en)
French (fr)
Inventor
Yasuhisa Tanioka
Junya Tsutsumi
Kazuo Kawabata
Kazutoshi Oda
Original Assignee
Hi Corporation
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 Hi Corporation filed Critical Hi Corporation
Priority to IL15445002A priority Critical patent/IL154450A0/xx
Priority to US10/344,452 priority patent/US7030880B2/en
Priority to KR10-2003-7002480A priority patent/KR20030043935A/ko
Priority to JP2003507765A priority patent/JPWO2003001458A1/ja
Priority to EP02743661A priority patent/EP1406214A4/en
Publication of WO2003001458A1 publication Critical patent/WO2003001458A1/ja
Priority to IL154450A priority patent/IL154450A/en

Links

Classifications

    • G06T3/02
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing

Definitions

  • the present invention relates to a technique for drawing a three-dimensional image, and more particularly, to an information processing apparatus that reduces the processing of geometry operation and division performed during the processing of drawing a three-dimensional image and does not have an FPU (floating-point operation unit). Also, the present invention relates to a technology that enables rendering of three-dimensional graphics even in an information processing device having a low processing capability of a CPU. Background art
  • the information processing terminal When drawing a three-dimensional graphic, the information processing terminal
  • the CPU of the information processing device is in charge of the so-called “geometry operation” of (1) and (2), and performs processing using the FPU (floating-point operation unit) of the CPU. .
  • the so-called rasterization processing of (3) and (4) is usually performed by a 3D graphics accelerator.
  • the so-called geometric operation of (1) and (2) is performed using the FPU (floating-point operation unit) of the CPU.
  • the CPU In addition to being designed to calculate floating point in general, the CPU also performs other processing, and is not necessarily suitable for processing 3D graphics.
  • 3D graphics accelerators that have been designed so that the geometry operation can be performed with a graphics chip (in other words, a built-in geometry engine) have been introduced, and various measures have been taken to reduce the load factor of the CPU. Also, the performance of the geometry operation can be greatly improved compared to the case where the CPU is used, that is, the 3D rendering performance can be improved.
  • 3D graphics accelerators are expensive, and not all information processing devices are equipped.
  • information processing devices include, for example, a mobile phone and a FPU (floating-point arithmetic unit) as well as a 3D graphics accelerator such as a PDA (Personal Digital (Data) Assistants). Some are not.
  • the division processing is much slower than the multiplication processing, and it is preferable to reduce the division as much as possible in order to perform the calculation processing at high speed.
  • the present invention provides an information processing apparatus that does not have an FPU (floating-point arithmetic unit) by performing integer arithmetic processing in a geometry operation performed when rendering a three-dimensional graphic.
  • the purpose is to provide a technology that enables the rendering of three-dimensional graphics.
  • the present invention performs high-speed rendering of three-dimensional graphics even in an information processing apparatus having a CPU with low processing capability by performing rasterization processing without performing division during rasterization processing.
  • the purpose is to provide technologies that can be used. Disclosure of the invention
  • a point, y ; ) and a point ⁇ (,) on a two-dimensional plane are passed through.
  • a second invention for achieving the above object is the first invention, wherein the ⁇ is limited to 2 ′′ ( « ⁇ 1), and the calculated l ′ is shifted right by ⁇ digits. It is characterized by further comprising means for calculating zl.
  • the coordinate values are limited to integers, and the coordinates, ' ⁇ ⁇
  • a fourth invention for achieving the above object is the above-mentioned third invention, wherein ⁇ is limited to 2 ′′ ( « ⁇ 1),
  • a fifth aspect of the present invention for achieving the above object is the fourth aspect, wherein the arithmetic means is means for performing an operation by adding a constant / to each dividend and shifting right by ⁇ digits. .
  • a sixth invention for achieving the above object is the third, fourth, or fifth invention, characterized in that the sixth invention has a combining means for combining two or more parameters which are preliminarily multiplied by ⁇ ( ⁇ 0). .
  • a seventh aspect of the present invention for achieving the above object is that, when performing a rasterization process for drawing a three-dimensional image, a point ⁇ (,) and a point ⁇ (,) on a two-dimensional plane pass through.
  • J is a drawing processing method of a three-dimensional image for calculating ⁇
  • An eighth invention for achieving the above object is the seventh invention, wherein the ⁇ is limited to 2 n ( Wis l), and the calculated l ′ is shifted right by n places. Is further provided.
  • a ninth invention for achieving the above object is the ninth invention according to the seventh and eighth inventions, wherein the coordinate values are limited to integers.
  • a tenth invention for achieving the above object is the ninth invention, wherein the preceding entry is limited to 2 "( « ⁇ 1),
  • the step of calculating comprises:
  • a eleventh invention for achieving the above object is the tenth invention, further comprising a step of adding a constant / to each dividend before shifting right by ⁇ digits.
  • a twelfth invention for achieving the above object is the ninth, tenth, or eleventh invention, further comprising a step of synthesizing two or more parameters previously multiplied by ⁇ ( ⁇ 0). .
  • a point ⁇ (, y,) and a point P x 2 ,) on a two-dimensional plane are used.
  • the program is stored in the information processing device
  • the information processing apparatus limits the ⁇ to 2 "( « ⁇ 1), and shifts the calculated 'to an n-digit right shift.
  • the program is characterized by further having a step of calculating by calculating
  • the information processing device according to the thirteenth and fourteenth inventions, wherein the coordinate values are limited to integers, and the coordinates, y, W are
  • a sixteenth invention for achieving the above object is the above-mentioned fifteenth invention, wherein ⁇ is limited to 2 "( « 3 ⁇ 41),
  • the step of calculating comprises:
  • a seventeenth invention for achieving the above object is the above-mentioned sixteenth invention, further comprising a step of causing the information processing device to add a constant / to each dividend before shifting right by n digits.
  • An eighteenth invention for achieving the above object is a program which, in the inventions of the fifteenth, sixteenth, and seventeenth aspects, has two or more ⁇ ( ⁇ 0) previously applied to the information processing device.
  • a program further comprising a step of synthesizing a parameter.
  • a nineteenth aspect of the present invention for achieving the above object is that, when performing a rasterization process of rendering a three-dimensional image, a d-axis of a straight line passing through a point ⁇ (,) and a point ⁇ (,) on a two-dimensional plane Coordinate change with respect to
  • a recording medium storing a program for causing an information processing device to perform an arithmetic process for calculating 2-1;
  • the program is stored in an information processing device, ⁇
  • the program restricts the ⁇ to 2 "( « ⁇ 1) in the information processing device, and
  • the recording medium further comprises a step of calculating 4 by shifting right by ⁇ digits.
  • a twenty-first invention for achieving the above object is the ninth invention, wherein the program is:
  • the coordinate values are limited to integers, and the coordinates, y, W
  • Is a recording medium further comprising:
  • a twenty-second invention for achieving the above object is the above-mentioned twenty-first invention, wherein ⁇ is limited to 2 ′′ ( ⁇ 1),
  • the step of calculating comprises:
  • ⁇ ' (' ⁇ * ⁇ + a '* y + ⁇ ' 13 * ⁇ ) / ⁇ + t 1 ;
  • ⁇ ' ( ⁇ ' 31 * + ⁇ ' 3 9 * ⁇ +, * ⁇ ) / ⁇ + ⁇ 3 ;
  • a twenty-third invention for achieving the above object is the twelfth invention, wherein the program causes the information processing apparatus to add a constant / i / "to each dividend before shifting right by n digits.
  • a recording medium characterized by further comprising steps.
  • a twenty-fourth invention for achieving the above object is the invention according to the twenty-first, twenty-second, and twenty-third inventions, wherein the program comprises: A recording medium further comprising the step of combining BRIEF DESCRIPTION OF THE FIGURES
  • FIG. 1 is a block diagram of a mobile terminal
  • FIG. 2 is a flowchart showing a basic drawing operation of three-dimensional graphics
  • FIG. 3 is a flowchart of Step 106 of drawing a model object.
  • 6 is a flowchart showing the operation in more detail.
  • ⁇ ' ( ⁇ ' 31 * + ⁇ '32 * + ⁇ ' 33 / + ⁇ 3;. become like, however, all the numeric types are integers.
  • rounding is in the - ⁇ direction.
  • ⁇ ' (( ⁇ ' ⁇ * + a '12 * y + * z +)) A') + ⁇ ⁇ ;
  • the result of this calculation is (991, 579, 1316) 1 , which is almost the same as the result of the real number operation described above.
  • a matrix 'obtained by multiplying a matrix by ⁇ and a matrix / /' are stored as parameters in the memory of the information processing device, and when performing coordinate transformation by affine transformation, The matrix 'corresponding to the relevant matrix and the matrix t (t // are read from the memory, and the operation is performed for each element based on the read matrix'. The constant / is added to the result. Right-shift the object by a constant number of times and add the matrix / (/ to the result to calculate the coordinates.
  • Equation 8 becomes Becomes
  • Equation 1 1 The right-hand side of Equation 1 1 is the same as the right-hand side of Equation 4
  • i x ((b * u] + b i2 * u 2 + b i3 * u 3 + ⁇ / 2) » ⁇ ,) + ⁇ ⁇ ; a ⁇ .
  • the matrix is obtained by rounding the elements of ⁇ and ⁇ to the nearest integer.
  • can be obtained from a small array prepared in advance. That is, is stored in the memory of the information processing device in advance so as to correspond to II. Then, ⁇ is read using as an index, and By calculating, it is possible to obtain 4 ', which is almost the same value as just by multiplication.
  • the amount of change in jr coordinates can be obtained without using any division.
  • lambda 65536, describes an example of a segment of the starting point P 2 of the coordinates (10, 20) start point Pi and the coordinates (85, 120) of.
  • Figure 1 is a block diagram of a mobile terminal.
  • Fig. 1, 1 is a display that displays 3D graphics
  • 2 is a CPU that does not have an FPU (floating-point operation unit).
  • the control unit 3 is a memory unit that stores programs and data.
  • Such a series of processing (operation) such as coordinate transformation, perspective transformation, and light source calculation is called a geometry operation. Then, the polygon converted by the calculation is finally written to the frame buffer, and drawing is performed.
  • the processing called geometry operation is performed by using the CPU's FPU (floating point arithmetic unit), but the FPU is designed to calculate not only the geometry operation but also the floating point general . Furthermore, many portable terminal devices, such as cellular phones, do not have an FPU (floating point arithmetic unit) because they are expensive.
  • FPU floating point arithmetic unit
  • control unit 3 performs a geometry operation using an integer.
  • Rasterization for dividing objects into dots is also used for 3D rasterization.
  • the processing load increases. Therefore, in the present invention, in order to reduce the processing load, the control unit 3 rasterizes the triangle without using division.
  • FIG. 2 is a flowchart showing a basic drawing operation of three-dimensional graphics.
  • Step 110 the information of the virtual frame buffer at the drawing destination is set.
  • shape data which is geometric coordinate data, is read from the memory unit 3 into the ⁇ del object (Ste ⁇ 101).
  • the shape data read here includes information on the vertex coordinate sequence, the polygon sequence, and the segment sequence.
  • the segment data includes the conversion parameters for the basic posture, the vertices that belong, and the ID (identification information) of the parent segment.
  • the conversion parameters to be read out are a matrix 'obtained by multiplying the basic matrix ⁇ by (2 "(w3 ⁇ 4l)) and a matrix t (, t 2 , t 3 y), a matrix A' and a matrix t (ticillin t 2 , t 3 ) ′ are read from the conversion parameter table 4. Subsequently, texture data corresponding to the shape data, for example, data such as texture is read (S tep 102).
  • Step 103 a conversion parameter from the model coordinate system to the viewpoint coordinate system is set (Step 103), and a conversion parameter from the viewpoint coordinate system to the screen coordinate system is set (Step 104).
  • Step 1 a three-dimensional graphic is drawn.
  • Step 106 in which the control unit 3 draws a model object using an operation which is a feature of the present invention, will be described in further detail.
  • FIG. 3 is a flowchart showing the operation of Step 106, which is a step of drawing a model object, in more detail.
  • the vertex coordinates of the model are transformed from the oral coordinate system to the screen coordinate system (Step 200).
  • a model has multiple segments inside, and each segment has multiple vertices. These vertices have coordinate values in the segment coordinate system.
  • a segment can have multiple child segments, and has transformation parameters for transforming the coordinates of the vertices contained in the segment into the parent segment coordinate system.
  • the transformation parameters of the top-level segment are the vertices contained in that segment. Is a value for converting the coordinates of the coordinates into the model coordinate system. It also has information on conversion parameters for the basic posture.
  • the calculation of the conversion parameters from the segment coordinate system to the model coordinate system is performed by synthesizing the affine transformation by the above-mentioned integer geometric operation.
  • the transformation parameter / of the segment and the transformation parameter from the segment coordinate system of the parent segment to the model coordinate system are synthesized, and the segment coordinate system is converted to the model coordinate system. Convert parame to overnight. Generate /
  • the transformation parameters from the model coordinate system to the screen coordinate system are calculated in the same way.
  • the conversion parameter from the model coordinate system to the viewpoint coordinate system is, and the conversion parameter from the viewpoint coordinate system to the screen coordinate system is, then the conversion parameter from the model coordinate system to the screen coordinate system is r mich becomes p. Finally, based on the conversion parameter h from the segment coordinate system to the model coordinate system and the conversion parameter r from the model coordinate system to the screen coordinate system calculated as described above, the segment coordinate system to the screen Calculate conversion parameter 5 to the coordinate system.
  • the conversion parameter s from the segment coordinate system to the screen coordinate system is s r as in the above-described synthesis. ft.
  • the force needs to be calculated for each segment, but / needs to be calculated only once for a single model.
  • the vertex coordinates in the segment coordinate system are converted to the coordinates in the screen coordinate system.
  • the coordinate conversion operation is performed using the integer operation described above.
  • the transformation is performed by coordinate transformation.
  • the vertex coordinates, in the segment coordinate system are converted to the coordinates', y ', ⁇ ' in the screen coordinate system using the conversion parameter s. Subsequently, the polygon on the back side is excluded from the processing target in the screen space (Step 210).
  • the polygons to be processed are sorted by the Z value (depth) of the viewpoint coordinate system (Ste ⁇ 202).
  • the numerical value for scanning the triangle is calculated in advance.
  • This calculation mainly calculates the amount of change in the ridge coordinates and texture coordinates of the triangle. This variation is performed by the above-described triangular rasterization operation without using division.
  • Triangle scanning repeats simple operations such as addition and bit shift, and writes pixel values to a virtual frame buffer.
  • ⁇ * ( 2 - ⁇ ⁇ ;
  • ⁇ ⁇ can be obtained from a small array.
  • @param src is equivalent to the coordinates r, W shown in the above equation 2
  • Iparam dst is equivalent to the coordinates ( ⁇ ,, ⁇ ', ⁇ ' ⁇ shown in the above equation 2.
  • the composition of the affine transformation is described below.
  • the above table corresponds to the reciprocal table 5 of the above value; however, it is set to 11 from the viewpoint of saving the memory storage capacity. 'And they are arranged in order of size.
  • int pixel scan— scr— y * scr— pitch + scr— offset int di s t_scr_x, dist_scr_y;
  • di s t_scr_x bot_x-top_x;
  • di s t_scr_y inver sel 6 (bot— y-top— y);
  • tb_scr_dx dist— scr— x dis t_scr_y; II X gradient of top_bot (How to find ')
  • tb_scr_x top— X ku SFT; // J on top-bot
  • dist_tex__u bot— u-top_u; (How to find Ax ')
  • dist_tex_v bot— v-top_v; (How to find ⁇ ')
  • tb_tex_du dist—tex—u * dist—scr—y;
  • tb_tex_dv dist—tex—v * dist—scr—y;
  • ib_tex_u top— u «SFT; II on topbot ⁇
  • tm_tex_v tb_tex_v; II V gradient on top-mid if (width> 0) (I / top-bot is left
  • int pi (tb_scr_x »SFT) + pixel
  • int p2 (tm—scr—x» SFT) + pixel
  • int tpx tb_tex_u;
  • tb_scr_x + tb scr_dx
  • tm_scr_x + tm_scr_dx
  • dist_scr_x bot— x-mid— x .
  • di s t_scr_y inversel6 (bot— y-mid—y);
  • mb_scr_x + mb— scr— dx
  • the processing of an FPU floating point arithmetic unit
  • PDA Personal Digital (Data) Assistants

Description

明 細 書 情報処理装置 技術分野
本発明は 3次元画像の描画の技術に関し、 特に 3次元画像の描画の 処理時に行われるジオメ トリ演算や除算の処理を軽減し、 F PU (浮 動小数点演算ユニッ ト) を持たない情報処理装置や、 C PUの処理能 力が低い情報処理装置であっても 3次元グラフィクの描画を可能とす る技術に関する。 背景技術
3次元グラフイクを描画する場合、 情報処理端末は、
( 1 ) 3次元の物体をずらしたりする座標変換演算(Transformation), ( 2 )物体に光源 (例えば太陽など)から光が当たっていると考えて、 日向になっている部分と日陰になっている部分とを計算する光源計算 処理 (Lighting)
( 3 )物体をドッ トと呼ばれるカラムに分割する処理 (ラスタライズ) (4) そのカラムにテクスチャ一 (模様) を張り込んでいく (テクス チヤ一マッピング)
等の処理を行う。
通常、 情報処理装置本体の C P Uは、 ( 1 ) と (2) とのいわゆるジ オメ トリ演算という作業を担当し、 C PUの F PU (浮動小数点演算 ユニッ ト) を利用して処理している。
更に、 ( 3) と (4) とのいわゆるラスタライズの処理は、 通常、 3 Dグラフィックスァクセラレータが行つている。 しかしながら、 ( 1 ) と ( 2 ) とのいわゆるジオメ トリ演算という作 業は C PUの F PU (浮動小数点演算ユニッ ト) を利用して行なわれ ていが、 F PUはジオメ トリ演算だけでなく、 浮動小数点一般を計算 するために設計されているほか、 C P Uは他の処理も行ったりしてお り、 必ずしも 3次元のグラフイクを描画する処理に適したものではな い。
そこで、 そのジオメ トリ演算をグラフィックスチップで行えるよう に設計した (つまりジオメ 卜リエンジンを内蔵) 3 Dグラフィックス ァクセラレータも登場しており、 C P Uの負荷率を下げる工夫がされ ているほか、 何よりもジオメ トリ演算の性能を C P Uで行う場合に比 ベて大幅に向上させることが可能、 つまり 3 Dの描画性能を向上させ ることを可能としている。
しかしながら、 3 Dグラフィックスァクセラレータは高価なのもの であり、 全ての情報処理装置が備えている訳ではない。
更に、 情報処理装置の中には、例えば携帯電話や、 PDA (Personal Digi tal (Data) Assistants) のように 3 Dグラフィックスァクセラレ 一夕どころか、 F PU (浮動小数点演算ユニッ ト) も備えていないも のもある。
このような情報処理装置では、 一般に C P Uの能力も低く、 3 Dグ ラフィックスは無理とされていた。
更に、 除算処理は乗算処理に比べてたいへん低速であり、 高速に演 算処理を行う為には、 除算をなるベく減らすことが好ましい。
そこで、 本発明は、 3次元グラフイクの描画の処理時に行われるジ オメ トリ演算において、整数演算処理を行うことによって、 F PU (浮 動小数点演算ユニッ ト) を持たない情報処理装置であっても 3次元グ ラフィクの描画を可能とする技術を提供することを目的としている。 また、 本発明は、 ラスタライズ処理の際、 除算を行わずラスタライ ズ処理を行うことによって、 処理能力が低い C PUを持つ情報処理装 置であっても、 3次元グラフィクの描画を高速に可能とする技術を提 供することを目的としている。 発明の開示
上記目的を達成する第 1の発明は、 3次元画像の描画のラスタライ ズ処理を行う際、 2次元平面上の点 , y;)と点 Λ ( , )とをとおる
直線の y座標に対する 座標の変化量 "^ v v を算出する情報 処理装置において、
λ
= 、, ―、, で表せられる定数^が、 y座標の変化量に関連付けら
J2一 /1
れて格納されたメモリと、
Z1 を演算する際、 前記 y座標の変化量に対応する ^を前記メモリ より読み出して乗算により、 Δχ' = μ ^[ c^ -x1); を算出し、 この結果を として演算する演算手段と
を有することを特徴とする。
上記目的を達成する第 2の発明は、 上記第 1の発明において、 前記 λを 2"(«≥1)に限定し、 前記算出された l ' を、 η桁右シフ トするこ とにより、 zl を演算する手段を更に有することを特徴とする。
上記目的を達成する第 3の発明は、 上記第 1、 2の発明において、 座標値が整数に限定され、 座標 , 'を、 ί Ί
y +
z )
で表現されるァフィン変換により 座標 ' , ,ζ' に変換処理を 行う場合、
ァフィ ン変換の行列 11 ^12 13
Α =
31 ^32 "33
に λ (≠ 0 ) をかけた行列
Figure imgf000006_0001
と、 行列 ,, , / 'と、 形状データとが格納されたメモリと、
前記形状データの座標 , を、 行列 ^及び行列 "い t2, t3yヒの ァフィン変換により、 座標 ' , , 'に変換する際、 前記メモリ より、 行列 ' と、 行列( / 'とを読み出し、
X1- (a,r *λ' + α '12 *y + α '13 *z) / λ +tx\
'21*χ + a 2^y + "'23 )/ λ + 12;
Figure imgf000006_0002
λ +t3;
を演算して、 座標 ' ,: F' ' を演算する演算手段と
を更に有することを特徴とする。
上記目的を達成する第 4の発明は、 上記第 3の発明において、 前記 λを 2"(«≥1)に限定し、
前記演算手段は、 x = (α'η* + «'12*y + α'13*ζ)/Α + ; z'= (a'31*x + a 2^y + β'33 *z)/A + ί3;
の除算演算を、 η桁右シフトすることにより演算する手段であること を特徴とする。
上記目的を達成する第 5の発明は、 上記第 4の発明において、 前記 演算手段は、 各被除数に定数 / を加えた後、 η桁右シフトすること により演算する手段であることを特徴とする。
上記目的を達成する第 6 の発明は、 上記第 3、 4 , 5 の発明におい て、 予め λ (≠ 0 ) をかけた二つ以上のパラメータを合成する合成手 段を有することを特徴とする。
上記目的を達成する第 7の発明は、 3次元画像の描画のラスタライ ズ処理を行う際、 2次元平面上の点 ^ ( , )と点 ^ ( , )とをとおる
直線の y座標に対する 座標の変化量 v v
J 2一 \ を算出する 3次元画像の描画処理方法であって、
λ
4 を演算する際、 = ^で表せられる定数 が、 y座標の
2一 Λ
変化量に関連付けられて格納されたメモリから、 算出する の ; F座 標の変化量に対応する を読み出すステツプと、
前記読み出した に基づいて、 乗算により、
Αχ = μ * ( - ; を算出し、 この結果を 4 として演算するステップと
を有することを特徴とする。 上記目的を達成する第 8の発明は、 上記第 7の発明において、 前記 λを 2n(Wisl)に限定し、 前記算出された l ' を、 n桁右シフ トするこ とにより、 4 を演算するステップを更に有することを特徴とする。 上記目的を達成する第 9の発明は、 上記第 7、 8の発明において、 座標値が整数に限定され、 座標 , を、
Figure imgf000008_0002
で表現されるァフィン変換により、 座標 ' , y' , に変換処理を 行う際、
形状データの座標 , , wを、 行列 A及び行列 a,, t2, t3 とのァフ ィン変換により、 座標 ' , ν ' , ζ ' に変換する際、 メモリに記憶さ れている、 行列 に λ ( 0 ) をかけたパラメータ '
fa 11 fl, 、 ' λ an λα12 λ 13
a 21 u 22 a 23 = λΑ = λ a21 λ α2
a31 Λβ32
a 31 ^32 β'33 J 、Λ と、 行列 ;, , / 'とを読み出すステップと、
前記読み出した行列 ' と、 行列 ;, , / 'とに基づいて、
Figure imgf000008_0001
ヌ' = (α'21*χ + a'22*y + α'23*ζ)/Λ +t2;
z'= (な'31* + fl'32* + fl'33 *z)l λ +t3;
を演算して、 座標 ' , ' を演算するステップと
を更に有することを特徴とする。
上記目的を達成する第 1 0の発明は、 上記第 9の発明において、 前 記入を 2"(«≥1)に限定し、 前記演算するステップは、
Figure imgf000009_0001
Ϋ= {a21^x + a 2^y + a^z) I λ +t2;
z'= (Α'31*Λ: + a'37*v + α'33*ζ)/ A +ί3;
の除算演算を、 η桁右シフトすることにより、 座標 ' , , ^を 演算するステツプであることを特徴とする。
上記目的を達成する第 1 1の発明は、 上記第 1 0の発明において、 前記 η桁右シフ卜する前に、 各被除数に定数 / を加算するステップ を更に有することを特徴とする。
上記目的を達成する第 12の発明は、 上記第 9、 1 0、 1 1の発明 において、 予め λ (≠ 0 ) をかけた二つ以上のパラメータを合成する ステップを更に有することを特徴とする。
上記目的を達成する第 1 3の発明は、 3次元画像の描画のラスタラ ィズ処理を行う際、 2次元平面上の点 ^ ( , y,)と点 P x2, )とをとお
る直線の y座標に対する 座標の変化量 を算出する演 算処理を情報処理装置に行わせるプログラムであって、
前記プログラムは情報処理装置に、
λ
を演算する際、 〃 =·^ ~~ ^で表せられる定数 /Xが、 y座標の
12一 1
変化量に関連付けられて格納されたメモリから、 算出する の y座 標の変化量に対応する ^を読み出させるステップと、
前記読み出した/^に基づいて、 乗算により、
Δ ' = μ * (X — χ); を算出し、 この結果を として演算させるステップと
を有することを特徴とするプログラムである。
上記目的を達成する第 1 4の発明は、 上記第 1 3の発明において、 情報処理装置に、 前記 λを 2"(«≥1)に限定し、 前記算出された ' を、 n桁右シフ卜することにより、 を演算させるステツプを更に有す ることを特徴とするプログラムである。 '
上記目的を達成する第 1 5の発明は、 上記第 1 3、 1 4の発明にお いて、 情報処理装置に、 座標値が整数に限定され、 座標 , y,Wを、
Figure imgf000010_0002
で表現されるァフィン変換により、 座標 ' ry' , ζ' ^に変換処理を 行わせる際、
形状データの座標 (χ, y, (を、 行列 A及び行列 "い t3yとの了フ イン変換により、 座標 ' , , ' に変換する際、 メモリに記憶さ れている、 行列 に λ (≠ 0 ) をかけたパラメ一夕 '
(a 11 a 12 a 1 λα λα12 λα13
Α-- a 21 a 22 a 23 = λΑ = 《21 Λ α22
、な 31 a 32 a 33 ) 、λな 31 Λβ32 i l ノ
と、 行列 "い t2, " とを読み出させるステツプと、
前記読み出した行列 ' と、 行列 ;, 'とに基づいて、
x,=
Figure imgf000010_0001
λ +ί2;
ヌ' = («'21*x + fl'22*j +α'23*ζ)/Α +ί2;
z'= (β'31* + a'32* +α'33 *ζ)/Λ +t3;
を演算して、 座標 ' , , を演算させるステップと を更に有することを特徴とするプログラムである。
上記目的を達成する第 1 6の発明は、 上記第 1 5の発明において、 前記 λを 2"(«¾1)に限定し、
前記演算するステップは、
ぶ' = (β'η*Λ; + 2*y + β'13* ) I ^+ ->'
ダ + 12;
Figure imgf000011_0001
+ 13;
の除算演算を、 n桁右シフトすることにより、 座標 ' , y' , を 演算させるステップであることを特徴とするプログラムである。
上記目的を達成する第 1 7の発明は、 上記第 1 6の発明において、 情報処理装置に、 前記 n桁右シフトする前に、 各被除数に定数 / を 加算させるステップを更に有することを特徴とするプログラムである, 上記目的を達成する第 1 8の発明は、 上記第 1 5、 1 6、 1 7の発 明において、 情報処理装置に、 予め λ (≠ 0 ) をかけた二つ以上のパ ラメ一夕を合成させるステップを更に有することを特徴とするプログ ラムである。
上記目的を達成する第 1 9の発明は、 3次元画像の描画のラスタラ ィズ処理を行う際、 2次元平面上の点 ^ ( , )と点 ^ ( , )とをとお る直線の ダ座標に対する 座標の変化量
* ^つ «/ «i
Δχ =
2ー 1 を算出する演算処理を情報処理装置に行わせるプログラムが格納され た記録媒体であって、
前記プログラムは情報処理装置に、 λ
を演算する際、 〃 = で表せられる定数^が、 y座標の
Figure imgf000012_0001
変化量に関連付けられて格納されたメモリから、 算出する の y座 標の変化量に対応する を読み出させるステップと、
前記読み出した〃に基づいて、 乗算により、
を算出し、 この結果を として演算させるステップと
を有することを特徴とする記録媒体である。
上記目的を達成する第 2 0の発明は、 上記第 1 9の発明において、 前記プログラムが、 情報処理装置に、 前記 λを 2"(«≥1)に限定し、 前 記算出された ' を、 η桁右シフトすることにより、 4 を演算させ るステツプを更に有することを特徴とする記録媒体である。
上記目的を達成する第 2 1の発明は、 上記第 1 9、 2 0の発明にお いて、 前記プログラムは、
情報処理装置に、 座標値が整数に限定され、 座標 , y,Wを、
Figure imgf000012_0002
で表現されるァフィ ン変換により、 座標 ' , y' , ζ' 'に変換処理を 行わせる際、
形状データの座標 , 'を、 行列 Α及び行列 (tい t2, との了フ ィン変換により、 座標 ' , , ^に変換する際、 メモリに記憶さ れている、 行列 に λ ( 0 ) をかけたパラメータ ' (a 11 a,
12 ' λ an ^fl 12 Lfl13
a 21 a 22 a 23 = A = ス 21 ^«23
31 a 32 な 33 t 、Λ " λα32
と、 行列 "い とを読み出させるステップと、
前記読み出した行列 ^ Γ と、 行列 ;, / 'とに基づいて、
Figure imgf000013_0001
z = (a ^x + a 2*y + a '33 * ) / λ +t3;
を演算して、 座標 ' , , を演算させるステップと
を更に有することを特徴とする記録媒体である。
上記目的を達成する第 2 2の発明は、 上記第 2 1の発明において、 前記 λを 2"(η≥1)に限定し、
前記演算するステップは、
χ'= ( 'η*χ + a' *y +α'13*ζ)/λ +t1;
3;'= (β'21*χ + «'22*} + fl'23*z)/A +ί2;
ζ'= (α'31* + α'39*ν + , *ζ)/ λ +ί3;
の除算演算を、 η桁右シフトすることにより、 座標 ' , y' , を 演算させるステップであることを特徴とする記録媒体である。
上記目的を達成する第 2 3の発明は、 上記第 2 2の発明において、 前記プログラムは、 情報処理装置に、 前記 n桁右シフ トする前に、 各 被除数に定数/ i/" を加算させるステップを更に有することを特徴と する記録媒体である。
上記目的を達成する第 2 4の発明は、 上記第 2 1、 2 2、 2 3の発 明において、 前記プログラムは、 情報処理装置に、 予め λ (≠ 0 ) を かけた二つ以上のパラメータを合成させるステップを更に有すること を特徴とする記録媒体である。 図面の簡単な説明
図 1は携帯端末のブロック図であり、 図 2は 3次元グラフィクの基 本的な描画動作を示すフローチヤ一トであり、 図 3はモデルオブジェ クトを描画のステップである S t e p 1 0 6の動作を更に詳細に示 すフローチヤ一卜である。 発明を実施するための最良の形態
本発明の実施するための最良の形態を説明する。
まず、 本発明の特徴である情報処理装置を用いた整数によるジオメ トリ演算と、 除算を使用しない三角形ラスタライズとについて説明す る。
<整数によるジオメ トリ演算 >
1. ァフィン変換による座標変換
座標 , y, 'から座標 (χ ' , γ' , ζ ' ^へのァフィン変換を、 12 "13、
Α = a2i
、 31 a32 33 j
=A y + 2
z. 、
の形で表すとき、 c言語的な数値演算で、 , y , z を求める場合. '= au *x + a12 ^y +α12ι *ζ + tl;
y'=a21 *x + 22 *y+a23 *z + t2;
z'= a31 *x + a32 *y + a33 *z+t3; のようになる。 但し、 全ての数値型が無限の範囲と精度とをもってい るものとする。
有限範囲の整数で座標計算する場合、 計算精度と演算のオーバーフ ローとが問題となる。
オーバ一フローに関しては、 扱う座標の範囲を制限すれば、 問題と ならないが、計算精度は絶対値の小さい実数を整数に丸めるときに(小 数を含む数値などで、必要とする右端の位 (または桁) より 一つ下の 位 (または桁) の値を四捨五入等して、 数値を短縮すること。 四捨五 入以外にも切り上げや切り捨てなどの場合もありうる。)、 相対誤差が 大きくなる。 特に、 行列 の成分は絶対値が 1以下の場合が非常に多 く、 その数値を整数に丸めた場合は期待する結果から大きくずれてし まう。
そこで、 行列 の成分を整数に丸めるとき、 相対誤差をなるベく少 なくするために、 予め λ ( Φ 0 ) を行列 ^の成分に掛けておく。
β12 λ a1
22 L fl23 3
Figure imgf000015_0001
α32 33ノ
の行列 ' で座標変換するときに
Figure imgf000015_0002
のように計算する。
C言語的な数値演算で、 , γ, を求める場合、
Figure imgf000016_0001
+α'13*ζ)/λ + tx;
ダ = ("'21* +"'22*ヌ +"'23 )/ス "2;
ζ'= (α '31 * + α '32 * + α '33 / + ί3; のようになる。 但し、 すべての数値型は整数である。
このような計算でも、 整数計算となり、 浮動小数点演算を行う必要は ないが、 高速化のために実行時の整数除算を避けるため を 2η( ¾1) に限定し、 ' =log2Aとして、
x'= ((« 'η *χ + α 2 *y + α ' * ) )} Λ ') + tx;
- ((a"21*x + «'22*y + «'23*2:))) λ ') + ί2;
(0'31*ぶ+ "'32* + "'33*2) » Α ') + ί3;
のように算術右シフトで除算とほぼ同じ演算を行う。
また、 算術右シフトを整数除算として利用する場合、 丸めは-∞方 向になるので、
χ'= ((α'η* + a'12 *y + *z + )) A ') + ίχ;
= ((«'21*^ + «'22*^ + «'23*2: + ^) » λ ') + —;
(Ο '31 *χ + β '32 * + β '33 *ζ + λ/_) » Α ') + ί3;
のように算術右シフトを行う前に定数 / を加えて誤差を修正する。 具体的な例で説明すると、 例えば、 座標(111,222, 333)'の点をァフ ィン変換する場合を考える。
上記の式 2の行列 及ぴ t (t〗, t3yを、
I 0.8901408311 -0.3213994875 0.32300913 \
A 0.3857072937 0.9088972746 -0.1585421959
\- 0.2426503336 0.2657218728 0.9330127019 856\
387
、973 とすると、
実数で計算した場合の式 2の結果は、
( 0.8901408311 - 0.3213994875
0.3857072937 0.9088972746 -0.1585421959
z, -0.2426503336 0.2657218728 0.9330127019
Figure imgf000017_0001
991.0256314\
578.0256314
, 1315.7492981
となる。
ここで、 上述した如く、 本発明のァフィ ン変換を用いると、 λ =4096 (2|2)とした場合、 行列 ' は、
/3646 -1316 1323、
A 1580 3723 - 649
-994 1088 3822
\
となる。
この行列 ^' と、 行列 t(tい , 尸とを使ったァフィン変換を、 C言 語の式で表すと、
int X, y, z;
x= ( (3646*1111-1316*222 + 1323*333+4096/2) »12) +856
y=( (1580*111+ 3723*222+- 649*333+4096/2)》12) +387;
z=( (-994*111+ 1088*222 + 3822*333+4096/2) »12) +973
となる。
この計算結果は、 (991, 579, 1316)1となり、 上記の実数の演算結果 とほぼ同じ結果となる。 情報処理装置の実際処理では、 行列. に λを乗算した行列 ' と、 行列 / / 'とが、 情報処理装置のメモリにパラメータとして格 納されており、 ァフィン変換による座標変換をする際に、 該当する行 列 に対応する行列 ' と、行列 t(tい / 'とをメモリから読み出し、 読み出した行列 ' 基づいて、 各要素毎に演算が行われる。 そして、 その結果に定数 / を加えたものを、 定数 ' 回右シフトを行い、 そ の結果に行列 / ( / を加えて、 座標を算出する。
2. ァフィン変換の合成
2つのァフィン変換 /, (変換パラメータ) をそれぞれ, f(p) = Ap+u - 5
g(p) = Bp+v ·'·6 とする。 この二つの変換の合成 go /は.
Figure imgf000018_0001
である。 ' = A、 B, =义 βのとき、
Figure imgf000018_0002
である
Μ =士 , 9
Figure imgf000018_0003
とすると、 式 8は、
Figure imgf000019_0001
となる。
この式 1 1の右辺と式 4の右辺は同じ形である
'"11 12 "13、
な 21 22 23 , U = u2 12
な 31 32 "33ノ Γ3/
( わ 12
b21 わ 22 °23 1) 13
、 31 b32 33ノ 、 ノ 12 13
M = 23 14
、 31 m32 m33j 、
として、 C言語的な数値演算で と との成分を求める場合. for ( /=1; i <=3; /'++ ) { for ( =l; /<=3; ゾ++ )
jniJ = (bil≠ au i bi2* a2ji bi3* a3j +Λ / 2) /A ;
t j -ibn* u, i b i2* u2i bi3* u3 ) / Λ + Vi ; } となる。 を 2"(«≥1)に限定し、 ' =/o として全ての整数型を整 数で計算するようにすると、 for ( i=l; / <=3; ++ ) { for ( ゾ =1; ゾく =3; ゾ ++ ) mii = ^n* au i bi2* a2j+ bi3* a3j + λ / 2) » ? ' ;
ix = ((b * u】 + bi2* u2+ bi3* u3 +λ / 2) »Λ , )+νί ; } となる。
この方法により、 事前に/ ίを掛けたァフィン変換同士の合成ができ る。
具体的な例で説明すると、 例えば、
( 0.8805527696 -0.4083871864 0.2413463 、
A 0.3599626335 0.9063791978 0.2211417016
、- 0.308307837 0.1081510783 0.9451188401
( 0.7764762277 0.6197856324 0.1137999896 \
B -0.527293037 0.7379376463 -0.4212007637
-0.3450314781 0.267046438 0.8997996883 23、
231
312
\
Figure imgf000020_0001
とし、 λ =4096とすると 3570.657414 951.7067091 1766.883123 \
-281.8861842 3808.232933 -1481.593097
-1986.998191 1169.971053 3385.294954
/619.1826538、
Bu+v ^ 517.1919145
734.9863581 となる。
Λ Αと との要素を最近整数値に丸めた行列は.
Figure imgf000021_0001
である。
従って、 上述した数式により、 行列 と行列 とを求めると
( 3570 952 1767 \
Μ - 282 3809 -1481
-1987 1170 3386
/619、
t = 517
735 となる。
このよう 、 上記の如く計算した
( 3570.657414 951.7067091 1766.883123
λ ΒΑ - 281.8861842 3808.232933 -1481.593097
-1986.998191 1169.971053 3385.294954
/619.1826538、
Bu + v 517.1919145
734.9863581 と、 ほぼ同様な値を得ることができる <除算を使用しない三角形ラスタライズ>
直線上の 座標の変化量を求める場合、 2次元平面上の点 の座標 を( , )、 点 ^の座標を( , )とする。 ≠ のとき、 と P2とを とおる直線の y座標に対する 座標の変化量は、
である。
Δ '= λ Δχとし、 Δχ'を C言語的な数値演算で求める場合、
Figure imgf000022_0001
のようになる。
A
そして、
Figure imgf000022_0002
としたときは
Figure imgf000022_0003
のように乗算の形式になる。
整数のみで計算する場合、 1 Λ Iが十分に大きく | がある程度小 さければ、 丸めによる相対誤差が小さくなる。
そこで、 を定数にして、 y 座標の範囲を制限すれば、 ^は予め用 意された少ない配列から得ることができる。 すなわち、 を I - Iに 対応させて、 情報処理装置のメモリに予め格納しておく。 そして、 をインデックスとして、 βを読み出して、
Figure imgf000022_0004
を計算すれば、 乗算だけでほぼ と同じ値の 4 ' を求めることがで きる。
また、 ^を 2"(« 1)に制限すれば、 算術右シフトによって、 4 を算 出することができる。
よって、 除算を一切使わずに jr座標の変化量が求まる。
また、 テクスチャ一座標も同じ理由により、 除算は必要ない。
具体的な例として、 λ =65536 として、 座標(10, 20)の始点 Piと座標 (85, 120) の始点 P2との線分の例を説明する。
この線分の y座標に対する X座標の変化量は、 Δχ ==_85-10_ = () 75
120-20
となり、 4 ' = =49152.0となる。
Δ χ' を整数のみで除算を使用しないで計算する場合、上述したよう に 120-20 = 100 をィンデックスとして、対応する〃をメモリから読み出 してくる。
この場合、 μ = « 655
120 - 20
とすると、
Δτ'= ^ χ(85-10) = 49125
となり、 除算を使用した zi ' = =49152.0 とほぼ同じ値を得ること ができる。
次に、 上述の方法を携帯端末等に用いた場合について説明する。 図 1は携帯端末のブロック図である。
図 1中、 1は 3次元グラフイクを表示するディスプレイであり、 2 は F P U (浮動小数点演算ユニッ ト) を持たない C P U等で構成され た演算手段である制御部、 3はプログラムやデータが格納されたメモ リ部である。
尚、 メモリ部 3には、 変換パラメ一夕 (上述した行列 ^4 ' と、 行列 t (t„ t2, t3) ') が格納された変換パラメータテーブル 4 と、 上述した をィンデックスとして〃が格納された逆数テーブル 5 とが格 納されている。
以下の本説明の 3次元グラフィクの描画では、 物体をすベて多角形 の平面の組み合わせで表現する。 そして、 その多角形のことをポリゴ ンと呼ぶ。 3次元空間にある物体(ポリゴン)は、 J, , の 3 つの座 標値を持っており、 この座標を動かすことで、 物体の位置や向きを変 更することができる。 さらに、 3次元座標で表現されるものを、 最終 的に 2次元のスクリーンに表示させる為、 スクリーン座標系への変換 が行われる。
このような、 一連の座標変換、 透視変換、 光源計算などの処理 (演 算) は、 ジオメ トリ演算と呼ばれる。 そして、 計算によって変換され たポリゴンは、 最終的にフレームバッファに書き込まれ、 描画が行わ れる。
通常、 ジオメ トリ演算という処理は C P Uの F P U (浮動小数点演 算ユニッ ト) を利用して行なわれていが、 F P Uはジオメ トリ演算だ けでなく、 浮動小数点一般を計算するために設計されている。 更に、 携帯電話に代表される携帯端末の機器では、高価になるという理由で、 F P U (浮動小数点演算ユニット) を持たないものも多い。
そこで、 携帯端末のような F P U (浮動小数点演算ユニッ ト) を持 たない C P Uの情報処理装置でも、 ジオメ トリ演算を可能とする為、 本発明では制御部 3が整数によるジオメトリ演算を行う。
また、 物体をドッ トに分割するラスタライズについても、 3 Dダラ フィ ックスァクセラレータのない携帯端末では、処理負荷が増大する。 そこで、 本発明では、 処理負荷を軽減する為に、 制御部 3が除算を 使用しないで三角形をラスタライズする。
次に、 制御部 3が行う、 上述した演算を用いた 3次元グラフイクの 描画動作を説明する。
図 2は 3次元グラフィクの基本的な描画動作を示すフローチャート である。
まず、 描画先の仮想フレームバッファの情報を設定する (S t e p 1 0 0) 。
次に、 ΐデルオブジェク トに、 メモリ部 3から幾何学的座標データ である形状データを読み込む (S t e ρ 1 0 1 ) 。
ここで読み込まれる形状データは、 頂点座標列、 ポリゴン列及びセ グメント列の情報が含まれる。 また、 セグメントのデータには、 基本 姿勢用の変換パラメータ、 所属頂点群及び親セグメントの I D (識別 情報) を含む。
尚、 読み出される変換パラメータは、 基本の行列 ^ に (2"(w¾l)) を乗算した行列 ' と行列 t ( , t2, t3y とであ Ό、 行列 A' と行列 t(t„ t2, t3)' とは、 変換パラメータテ一ブル 4から読み出される。 続いて、 形状データに対応するテクスチャ一データ、 例えば質感等 のデータを読み込む (S t e p 1 0 2) 。
そして、 モデル座標系から視点座標系への変換パラメ一夕を設定し (S t e p 1 0 3) 、 視点座標系からスクリーン座標系への変換パ ラメータを設定する (S t e p 1 04) 。
仮想フレームバッファに 2次元の背景を描画する (S t e p 1 0 5 )
仮想フレームパッファにモデルオブジェクトを描画する (S t e p 1 0 6) 。
最後に、 仮想フレームバッファの内容を実際の画面に表示する (S t e 1 0 7) 。
そして、 S t e p 1 0 3から S t e p 1 0 7を繰り返すことに よって 3次元グラフイクが描画されることになる。
続いて、 本発明の特徴である演算が用いられるモデルオブジェク ト を制御部 3が描画する S t e p 1 0 6について、 更に詳細に説明す る。
図 3はモデルオブジェクトを描画のステツプである S t e p 1 0 6の動作を更に詳細に示すフローチャートである。
まず、 モデルの頂点座標を口一カル座標系からスクリーン座標系に 変換する (S t e p 2 0 0 ) 。
ここで、 モデルの構造について説明する。 通常、 モデルは内部に複 数のセグメントを持ち, 各セグメントは複数の頂点を持っている。 そ れらの頂点はセグメント座標系での座標値を持っている。 セグメント は複数の子セグメントを持つことができ, セグメントに含まれる頂点 の座標を親セグメント座標系に変換するための変換パラメータを持つ, 最上位のセグメントが持つ変換パラメータは, そのセグメン卜が含む 頂点の座標をモデル座標系に変換するための値になる。 また、 基本姿 勢用の変換パラメ一夕の情報も有する。
そこで、 セグメント座標系での座標値を持つモデルの頂点座標を口 一カル座標系からスクリーン座標系に変換するため、 まず、 セグメン ト座標系からモデル座標系への変換を行う。
セグメント座標系からモデル座標系への変換パラメータの算出は, 上述した整数によるジオメ トリ演算によるァフィン変換の合成により 行われる。 親セグメントを持つセグメントの場合は, セグメン 卜が持つ変換パ ラメ一タ /と、 親セグメントのセグメント座標系からモデル座標系へ の変換パラメ一夕 とを合成して, セグメント座標系からモデル座標 系への変換パラメ一夕 。/を生成する。
この合成に際し、上述したァフィン変換の合成の手法が用いられる。 尚、 親セグメントを持たないセグメントの場合は、 セグメントが持 つ変換パラメータ とすると、 セグメント座標系からモデル座標系へ の変換パラメ一夕は、 力 =/になる。
続いて、 モデル座標系からスクリーン座標系への変換について、 説 明する。
モデル座標系からスクリ一ン座標系への変換パラメ一タも同じ方法 で計算する。
モデル座標系から視点座標系への変換パラメ一夕を とし, 視点座 標系からスクリーン座標系への変換パラメータを とすると, モデル 座標系からスクリーン座標系への変換パラメータは r » 。 pとなる。 最後に、 上述の如く算出された、 セグメント座標系からモデル座標 系への変換パラメ一夕 hと、 モデル座標系からスクリーン座標系への 変換パラメ一夕 rとに基づいて、 セグメント座標系からスクリーン座 標系への変換パラメータ 5を算出する。
セグメント座標系からスクリーン座標系への変換パラメ一夕 sは、 上述の合成と同様に、 s r。ftとなる。 力 は各セグメント毎に計算する 必要があるが、 /は 1 体のモデルの計算では 1度しか計算する必要が ない。
このように算出された変換パラメータ sを使ってセグメント座標系 の頂点座標をスクリーン座標系の座標に変換する。
座標変換の演算は、 上述した整数によるジオメ トリ演算のァフィン 変換により座標変換により行う。
すなわち、 セグメント座標系の頂点座標 , を、 変換パラメ一 タ sを使ってスクリーン座標系の座標 ' , y ' , ζ ' に変換する。 続いて、 スクリーン空間で裏面のポリゴンを処理対象から外す (S t e p 2 0 1 ) 。
処理対象のポリゴンを視点座標系の Z値(奥行き)でソートする (S t e ρ 2 0 2 ) 。
最後に、 スクリーン座標で仮想フレームバッファにポリゴンを描画 する (S t e p 2 0 3 ) 。
本ステップを更に詳細に説明すると、 まず、 ここでは描画領域に三 角形が表示される可能性をチェックする。 三角形が完全に描画領域の 外にある場合は以降の描画処理をスキップする。
そして、 三角形を走査するための数値を事前に計算する。 この計算 は、 主に三角形の稜線座標やテクスチャー座標などの変化量を計算す る。 この変化量は、 上述した除算を使用しない三角形ラスタライズの 演算により行われる。
三角形の走査は, 加算ゃビットシフトなどの単純操作を繰り返し、 仮想フレ一ムパッファにピクセル値を書き込む。
具体的な演算の方法としては、 直線上の 座標の変化量を求める場 合、 2次元平面上の点 ^の座標を( , )、 点 ^の座標を( , y )とす る。 ダ;≠ ^のとき、 ^と ^とをとおる直線の y座標に対する 座標の 変化量は、 上述した通り、
Figure imgf000028_0001
である。 '=ス とし、 Δχ'を C言語的な数値演算で求める場合、
Figure imgf000029_0001
のようになる。
λ
そして、 〃
Figure imgf000029_0002
としたときは
Δχ = μ * ( 2 - χ^ ; のように乗算の形式になる。
整数のみで計算する場合、 I Iが十分に大きく I - Iがある程度小 さければ、 丸めによる相対誤差が小さくなる。
そこで、 を定数にして、 y座標の範囲を制限すれば、 〃は少ない 配列から得ることができる。
そこで、 をインデックスとした の値を、 メモリ部 3の逆数 テーブル 5に予め格納しておく。 そして、 I ^- Iに対応する ^を逆数 テーブル 5から読み出し、 乙の a と - とを除算することにより、 Δ χ ' を算出する。
そして、 処理の高速化のため、 ' で必要な演算を行っていき、 仮 想フレームバッファにピクセル値を書き込む際に λで除算する。
また、 除算の段階で、 を 2" («≥1)としてあれば、 算術右シフ トに よって、 を算出することができ、 除算を使わずに 座標の変化量 が求まることが可能となる。
尚、 テクスチャー座標も同様な処理が可能である。
次に、 本発明の実際の具体例として、 制御部 3で実行される C言語 で記載されたプログラムを説明する。 まず、 整数によるジオメ トリ演算のプログラムを以下に記す。
以下は、 メモリに記憶されている、 変換パラメータ、 すなわち行列
A ' と行列( / 'の例である。
/** 整数によるジオメ トリ演算
* λ = 4096 とする public class Atrans3i {
publ ic int mOO; // a' nに相当
publ ic int mOl; // a' 12に相当
publ ic int 102; // a' 13に相当
publ ic int m03; // t, ,に相当
publ ic int mlO; // a' 21に相当
publ ic int mil; // a' 22に相当
publ ic int ml2; // a' 23に相当
publ ic int ml3; // t, 2に相当
pub 1 ic int m20; // a' 3,に相当
pu l ic int 121 ; // a' 32に相当
publ ic int m22; // a' 33に相当
pu 1 i c int m23; // t, 3に相当
ここで、 public int mOO力 ら publ ic int m23 は、 コメントにあ るようにァフィン変換の行列 , と、 行列 ^;, , / 'の各要素に相当 する。 また、 λ = 4096である。
次に、 座標変換について以下に示す。
/** 座標変換 * iparam src 変換元の点
* @param dst 変換結果の点
*/
public void transPoint ( Vec3i src, Vec3i dst ) {
int x = ((mOO src. x + mOl * src.y + m02 * src. z + 2048) » 12) + m03;
int y = ((mlO * src. x + mil * src.y + il 2 * src. z + 2048) » 12) + ml3;
int z = ((m20 * src. x + m21 * src.y + m22 * src. z + 2048)
» 12) + m23;
ds t. x = x; ds t . y = y; dst. z = z;
return;
}
ここで、 @param srcは上記の式 2で示される座標 r, Wに相当し、 Iparam dst は上記の式 2で示される座標 (χ, , γ' , ζ ' ^に相当する。 次に、 ァフィン変換の合成について以下に示す。
/** ァフィン変換の合成 * @param tl 左辺のァフィン変換
* @param t2 右辺のァフィン変換 public void mul t iply ( Atrans3i tl, Atrans3i t2 ) {
int aOO = (tl. mOO t2.m00 + tl.mOl % t2.ml0 + tl.m02 % t2.m20 + 2048) » 12;
int aOl = (tl.mOO t2. mOl + tl.mOl * t2.mll + tl.m02 *
/ O ϊοοAVー
臼 曰 曰 曰' 曰
+
臼 m 曰 曰
11 I) m S 白 曰
曰 曰 曰 曰 曰 臼
+ + + + + +
co II II II o csi
e 臼
曰 曰 e m 曰
白 曰 m 曰 * 曰 臼 II II
+ 曰 II
曰 曰 e e +
ノ 一 曰
II \ II 11 /\ II A 1] 八 II A II 11 へ !1 /\
八 II
八 A A A
> o
oo co cd oo oo OO oo oo II II !i 一 o 一 o
i=!
曰 曰
+ + + + + H- + + + 曰 m o O
CM
}
次に、 ポリゴン描画について示す。
/** ポリゴン描画
* λ = 65536 とする
*/
public class Polydraw {
/** ポリゴン頂点情報
static final class Vertex {
int x; II ピクセル X座標
int y; // ピクセル Y座標
int u; IIテクセル U座標
int v; IIテクセル V座標
II 内部定数
private final static int SFT = 16;
private final static int TEXHMASK = 0x7F0000;
private final static int TEXWMASK = 0x7F;
private final static int TEXPSHIFT = 0x09;
// li- 1のテーブル
private static final short —inverse— tbl口 = {
0x0000, (short)Oxf f f f, 0x7f f f, 0x5554, 0x3f fi, 0x3332, 0x2aa9, 0x2491,
Oxlf f f, 0xlc70, 0x1998, 0x1744, 0x1554, 0xl3b0, 0x1248,
Figure imgf000034_0001
'ZSZOXO '8SZ0X0 '8920X0 '6920^0 ' 920X0 'QA20X0
'q^oxo
Ί8Ζ0Χ0 ' oxo '3820X0 ' 6Z0X0 'q6Z0X0 ' OXO
'oqzoxo
'sqgoxo 'jqcoxo
Figure imgf000034_0002
οζ
ΌίΖΟΧΟ
'6JZ0X0 '2080X0 'QOSOXO ' ISOXO '3180^0 £8280^0 '2SS0X0 ' OXO '2 20X0 'PS20X0 '89S0X0 ' SOXO '0880^0 ' 880X0
'B6S0X0 ST
'A¾SOXO ' SOXO '^80X0 'IPSOXO 'JPSO^O 'J^SOXO 'JJ20X0
'jotoxo
'o oxo
Figure imgf000034_0003
' stoxo e89toxo ' oxo £16f0X0
'9^0X0
'a O^O '8P OXO 'qatOXO ' 0 0X0 'P190X0 '8SS0X0 ' SOXO OT
' 90X0
'J8 0X0 'JB90X0 ΌΡ90Χ0 'SJSOXO 'Z190X0 'PS90X0 '9990^0
'J890X0
'qq90X0 '¾390^0 'qUO^O 'j 。X0 '98丄 0X0 '( AOXO 'JUOXO
' 80X0 9
'Z880X0 'ξΖ60^0 'B 60X0 'ZP60X0 ' 0X0 '6ΒΒ( θ
'ocqoxo
'IBqoxo 'jgooxo 'qooOXO '8AP0X0 'L^Q Q '30J0X0 'JJJOXO
'ΟΠΐΧΟ
6ST90/Z0df/X3d 8SM00/C0 OAV 0x0225,
0x0221, 0x021c, 0x0218, 0x0213, 0x020f, 0x020b, 0x0207,
0x0203
}; 尚、 上記テーブルは、 上述した; の値の逆数テーブル 5に相当する ものであるが、メモリの記憶容量節約の観点から、 一 1としてある。 ' そして、 の大きさの順に並んでいる。
〃仮想フレームバッファ情報
private byte scr_image[] ;// 仮想フレームバッファの先頭ァド レス
private int scr_width; II フレームバッファの横ピクセル数 private int - scrjieight; II フレームバッファの縦ピクセル数 private int scr_pi tch; II スキャンラインス卜ライ ド
private int scr_of f set; II ァドレス才フセッ 卜
// テクスチャ一イメージ情報
private byte tex_image[]; // テクセルデータの先頭アドレス private Texture texture; // テクスチャ一
private int tex— width; IIテクスチャ一の幅
private int tex— height; IIテクスチャーの高さ
II クリップ情報
private int clip— left; // 左クリップ位置 private int clip一 top; II 上クリップ位置
private int c 1 i p_r i gh t; // 右クリップ位置
private int clip—bottom; // 下クリップ位置
/** 三角形を描画 */
void drawTr i angl e i, Polydraw. Vertex vO, Polydraw. Ver tex vl : Polydraw. Vertex v2 ) {
1% クリッピング (コード省略) */
boolean inside;
/* 3点をソート (コード省略) */
int top— x, top_y, top_u, top_v;
int mid— x, mid_y, mid_u, mid— v;
int bot— x, bot_y, bot_u, bo t_v;
/* 3点が横に一直線 */
i f ( top— y == bot— y )
return;
/* スキヤン開始位置 */
int scan— scr— y = t op_y;
int pixel = scan— scr— y * scr— pitch + scr— offset int di s t_scr_x, dist_scr_y;
int tb_scr_x, im_scr_x, mb_scr_x;
int tb scr dx, tm scr一 dx, mb scr dx int di s t_tex_u, dist_tex_v;
int tb_tex_u, tb_tex_v, tm_tex_u, tm_tex_v, mb_tex_u, mb_tex_v;
int tb_tex_du, tb_tex_dv, tm_tex_du, tm_tex_dv, mb_tex_du, mb_tex_dv;
/* top-bot %/
di s t_scr_x = bot_x - top_x;
di s t_scr_y = inver sel 6 ( bot— y - top— y );
tb_scr_dx = dist— scr— x dis t_scr_y; II top_botの X勾 配 ( ' の求め方)
tb_scr_x = top— X くく SFT; // top-bot上の J
/* テクスチャ一の top- bot l
dist_tex__u = bot— u - top_u; {Ax' の求め方)
dist_tex_v = bot— v - top_v; {Αχ' の求め方)
tb_tex_du = dist— tex— u * dist— scr— y;
tb_tex_dv = dist— tex— v * dist— scr— y;
ib_tex_u = top— u « SFT; II top- bot上の ϋ
tb_tex_v = top— v くく SFT; // top- bot上の V
/* top-mid */
dist— scr— x = mid— x - top— x;
dist— scr一 y = mid— y - top— y;
dist— tex— u = mid— u - top_o;
dist— tex— v = mid— v - top_v; テクスチャースキャン用 dx,dy t op-bo t->m id */ int scan— tex— du, scan_t ex_dv;
int width = dis t_scr_x - ( (tb_scr_dx * disし scr— y) » SFT);
if ( width != 0 ) {
int inv— width = inversel 6 ( width ) ;//水平スキヤン U 勾配 (4 ' の求め方)
scan— tex— du = (dist— tex— u - ((tb_tex_du * dist— scr— y) » SFT)) * inv— width; );〃水平スキャン v勾配 ( zl , の求め方) scan_tex_dv = (dist— tex— v - ((tb_tex_dv * dis t_scr_y) » SFT)) inv— width;
}
else
return;
1% top-mid */
int scr— end, scr_dd;
if ( dist_scr_y > 0 ) {
上の三角形がある */
dist— scr— y = inversel 6 ( dist— scr— y ); tni— scr— dx = dist— scr— x * dis t_scr_y ;// top - midの x 勾配 ( ljr' の求め方)
tm— scr— x = tb_scr_x; II top- mid上の X
/* テクスチャーの top- mid */ tm— tex— du = disし tex— u * dist— scr— y; II top - midの U 勾配 ( l ' の求め方)
tm— tex— dv = dist— tex— v * dist— scr— y; II top-mid 上 の v勾配 (Zl ' の求め方)
tm— tex— u = tb_tex_u; II top_mid上の U勾配
tm_tex_v = tb_tex_v; II top- mid上の V勾配 if ( width > 0 ) { I / top-botが左
if ( inside ) {
while ( scan— scr— y く mid— y ) {
int pi = (tb_scr_x » SFT) + pixel; int p2 = (tm— scr— x » SFT) + pixel ; int tpx = tb_tex_u;
int tpy = tb_tex_v;
while ( pi < p2 ) {
int tidx = ((tpy & TEXHMASK) »> TEXPSHIFT) + ((tpx »> SFT) TEXffMASK);
scr— image [pi] = tex— image [tidx] ;// 1ピクセル書き込む
tpx += scan— tex— du;
tpy += scan— tex— dv;
pl++;
} scan— scr— y++;
pixel += scr— pitch;
tb_scr_x += tb scr_dx; tm_scr_x += tm_scr_dx;
ib—iex—u += tb_tex_du; tb_tex v += tb_tex dv;
}
else { /* コード省略 %/ }
}
else { top- midが左 (コード省略) %l } 底が水平 %/
i f ( mid—y == bot— y )
return ;
/* mid-bot l
dist_scr_x = bot— x - mid— x.;
di s t_scr_y = inversel6 ( bot— y - mid—y );
mb_scr_dx = dist_scr_x * dist— scr— y; II mi d-botの勾配 mb_scr_x = mid— x « SFT; II mid-bot上の X if ( width > 0 ) { II top- botが左
if ( inside ) {
while ( scan— scr— y < bot_y ) {
int pi = (tb一 scr— x » SFT) + pixel ;
int p2 = (mb_scr_x » SFT) + pixe ;
int tpx = tb_tex_u; int t y = tb_tex_v;
while ( pi く p2 ) {
int tidx = ((tpy & TEXHMASK) »> TEXPSHIFT) + ((tpx »> SFT) & TEXWMASK);
scr— image [pi] = t ex_image [t i dx]; // 1 ピ クセル書き込む
tpx += scan_tex_du;
t y += scan_tex_dv;
pl++;
} scan— scr— y++;
pixel += scr— pitch
tb一 scr— x += tb_scr_dx
mb_scr_x += mb— scr— dx
tb_tex一 u += tb_tex_du
tb tex v += tb tex dv
}
else { /* コード省略 */ }
}
else { /* mid_botが左 (コード省略) */ } return; /^ を計算する
* @param num 分母(-32767. · -1, 1..32767)
* ©return
Figure imgf000042_0001
*/
private static int inversel 6 ( int num ) {
boolean pos i_f lg = (num >= 0);
' int denom = posi_f lg ? num : -num;
if ( denom く 128 ) {
int val = し inverse— tbl [denom] & Oxffif) + 1 return pos i_f lg ? val : -val;
} int x = 32768*128;
int y denom « 15;
{ int s = x - y; X = (s >= 0) ? (s « 1) + 1 : X « 1
{ int s = x - y; X = (s >= 0) ? (s « 1) 1 : X « 1
{ int s = x - y; X = (s >= 0) ? (s « 1) + 1 • X « 1
{ int s = x - y; X = (s >= 0) ? (s « 1) + 1 : X « 1
{ int s = - y; X = (s >= 0) ? (s « 1) + 1 X « 1
{ int s = X - y; X = (s >= 0) ? (s « 1) + 1 X « 1
{ int s = X - y; X = (s >= 0) ? (s « 1) + 1 X « 1
{ int s = x - y; X = (s >= 0) ? (s « 1) + 1 X « 1
{ int s = X — y; X = (s >= 0) ? (s « 1) + 1 X « 1 int r = (x » 15);
x «= 1;
if ( denom <= r )
x++;
x &= Oxfff f ;
return posi_f Ig ? x : -x:
}
以上が、 本発明を実施する為のプログラムの一例である 産業上の利用可能性
本発明は、 3次元画像の描画の演算処理の際、 整数の範囲で演算処 理が行えるので、 携帯電話や、 P D A (Personal Digital (Data) Assistants) のように F PU (浮動小数点演算ユニッ ト) も備えてい ないものであっても、 3次元画像が扱える。
また、 演算処理の際、 処理負荷の高い除算を行わないようにしてい るので、 C P Uの能力が低い情報処理装置であっても、 スムーズな描 画処理が行える。

Claims

請 求 の 範 囲
1 . 3次元画像の描画のラスタライズ処理を行う際、 2次元平面上 の点 Λ ( , Υι)と点 P2 ( , )とをとおる直線のダ座標に対する 座標の 変化量
^
Figure imgf000044_0001
を算出する情報処理装置において、
λ
^ = ~ ~~ で表せられる定数^が、 y 座標の変化量に関連付けら
2ーノ 1
れて格納されたメモリと、
Δ を演算する際、 前記 y座標の変化量に対応する ^を前記メモリ より読み出して乗算により、
Δχ' = * ( つ一 χ); を算出し、 この結果を Z1 として演算する演算手段と
を有することを特徴とする情報処理装置。
2 . 前記 λを 2η («≥1)に限定し、 前記算出された zl ' を、 n桁右シ フトすることにより、 4 を演算する手段を更に有することを特徴と する請求項 1に記載の情報処理装置。 3 . 座標値が整数に限定され、 座標 , を、 〈ΧΊ ftA
=Α y +
) 、ζ3/
で表現されるァフィ ン変換により、 座標 ' ,γ' ,ζ' に変換処理を 行う場合、
ァフィン変換の行列 12 «13
- 21 22 23
31 な 32 33ノ
に λ (≠ 0 ) をかけた行列
λ α13、 33
Figure imgf000045_0001
と、 行列 , / と、 形状デ一夕とが格納されたメモリと、
前記形状データの座標 , wを、 行列 ^及び行列 "い t2, t3 との ァフィン変換により、 座標 ' , ' , ' ^に変換する際、 前記メモリ より、 行列 ' と、 行列 /^とを読み出し、
'
Figure imgf000045_0002
λ + t ,
'= (a x*x + a 2^y + a ^z) I λ +t2;
z'= (a'31*x + «'32* + fl'33*z)/A +t3;
を演算して、 座標 ' , y ' , を演算する演算手段と
を更に有することを特徴とする請求項 1又は請求項 2に記載の情報処 理装置,
4. 前記 λを 2"(« 1)に限定し、 前記演算手段は、
' = + "'12*ヌ + ",13*z)M + tx;
;
Figure imgf000046_0001
の除算演算を、 n桁右シフトすることにより演算する手段であること を特徴とする請求項 3に記載の情報処理装置。
5 . 前記演算手段は、 各被除数に定数 / を加えた後、 n桁右シフ トすることにより演算する手段であることを特徴とする請求項 4に記 載の情報処理装置。 6 . 予め λ (≠ 0 ) をかけた二つ以上のパラメータを合成する合成 手段を有することを特徴とする請求項 3から請求項 5のいずれかに記 載の情報処理装置。
7 . 3次元画像の描画のラスタライズ処理を行う際、 2次元平面上 の点 ;( , )と点 ^( , )とをとおる直線の y座標に対する 座標の 変化量
Δ =——— L
2 1 を算出する 3次元画像の描画処理方法であって、
λ
4 を演算する際、 〃 = で表せられる定数^が、 y座標の
Figure imgf000046_0002
変化量に関連付けられて格納されたメモリから、 算出する の y座 標の変化量に対応する を読み出すステップと、 前記読み出した に基づいて、 乗算により、
Δχ = μ *( 2 - j); を算出し、 この結果を^! として演算するステップと
を有することを特徴とする 3次元画像の描画処理方法。
8. 前記 λを 2n(w≥l)に限定し、 前記算出された i ' を、 n桁右シ フトすることにより、 を演算するステップを更に有することを特 徵とする請求項 7に記載の 3次元画像の描画処理方法。 9 座標値が整数に限定され、 座標 'を、
Figure imgf000047_0002
で表現されるァフィン変換により、 座標 ' , ' ^に変換処理を 行う際、
形状データの座標 , Wを、 行列 及び行列 尸とのァフ イン変換により、 座標 ' ' に変換する際、 メモリに記憶さ れている、 行列 に λ (≠ 0 ) をかけたパラメ一夕 '
Figure imgf000047_0001
33
と、 行列 ( ;, 'とを読み出すステップと、
前記読み出した行列 ' と、 行列 f とに基づいて、 x = (a ^x + a 2*y + a ^z)l λ
yx = *ぶ +ひ、 + "'23 *ζ) /λ+ί2;
ζ = (β'31*ぶ + fl'32*y + "'33*Z)/ L + 3;
を演算して、 座標 ' , y' , ' を演算するステップと
を有することを特徴とする請求項 7又は請求項 8に記載の 3次元画像 の描画処理方法。
1 0. 前記 λを 2"(«≥1)に限定し、
前記演算するステップは、
'= (α'η* + «'12*y + a 3 *z)/A +tx
y'= (a'21* + «'22*y + α'23*ζ)/ A +t2:
z'= (a'31*x + fl'32*y + α '33 *z)/ A +
の除算演算を、 n桁右シフトすることにより、 座標 ' , , ζ' ^を 演算するステツプであることを特徴とする請求項 9に記載の 3次元画 像の描画処理方法。
1 1. 前記 η桁右シフ トする前に、 各被除数に定数 / を加算する ステツプを更に有することを特徴とする請求項 1 0に記載の 3次元画 像の描画処理方法。
1 2. 予め λ (≠ 0 ) をかけた二つ以上のパラメ一夕を合成するス テツプを更に有することを特徴とする請求項 9から請求項 1 1のいず れかに記載の 3次元画像の描画処理方法。
1 3. 3次元画像の描画のラスタライズ処理を行う際、 2次元平面 上の点 Ρ, ( , 7;)と点 ( , )とをとおる直線の y座標に対する 座標 の変化量
Ax =
Figure imgf000049_0001
を算出する演算処理を情報処理装置に行わせるプログラムであって、 前記プログラムは情報処理装置に、 を演算する際、 = 'で表せられる定数^が、 ダ座標の
Figure imgf000049_0002
変化量に関連付けられて格納されたメモリから、 算出する の y座 標の変化量に対応する ^を読み出させるステツプと、
前記読み出した に基づいて、 乗算により、
を算出し、 この結果を として演算させるステップと
を有することを特徴とするプログラム。
1 4. 情報処理装置に、 前記 λを 2"(«≥1)に限定し、 前記算出され た 4 ' を、 η桁右シフ トすることにより、 4 JTを演算させるステップ を更に有することを特徴とする請求項 1 3に記載のプログラム。
5. 情報処理装置に、座標値が整数に限定され、座標 , 'を、
Figure imgf000049_0003
で表現されるァフィン変換により、 座標 ' ,γ' ,ζ' ^に変換処理を 行わせる際、
形状データの座標 ,: 尸を、 行列 及び行列 "い t2, t3 ヒの了フ ィ ン変換により、 座標 ' , y' ' に変換する際、 メモリに記憶さ れている、 行列 ^に λ (≠ 0 ) をかけたパラメータ '
Figure imgf000050_0001
と、 行列 "い / 'とを読み出させるステップと、
前記読み出した行列 ' と、 行列 / とに基づいて、
ぶ'= (fl'n* + a'12*y + α 3 *ζ)/ λ +
y'= (fl'21*x + '22*y +β'23*ζ)/λ +ί2;
ζ'= (α'31* + fl'32* + fl'33 *ζ)/Λ +t3;
を演算して、 座標 ' , , ζ ' を演算させるステップと
を有することを特徴とする請求項 1 3又は請求項 1 4に記載のプログ ラム。
1 6. 前記 λを 2"(«≥ 1)に限定し、
前記演算するステップは、
'= (a'r *x + a 2*y + a 3 *z)/ A +tx;
y'= (a '21 * + a *22 *y + « '23 ¾) /λ +ί2;
z'= (fl'31*jc + fl'32*y + a'33*z)/ A +t3;
の除算演算を、 n桁右シフトすることにより、 座標 ' , , 'を 演算させるステツプであることを特徴とする請求項 1 5に記載のプロ グラム。 1 7 情報処理装置に、 前記 n桁右シフトする前に、 各被除数に定 数 を加算させるステツプを更に有することを特徴とする請求項 1 6に記載のプログラム。
1 8 . 情報処理装置に、 予め λ (≠ 0 ) をかけた二つ以上のパラメ 一夕を合成させるステップを更に有することを特徴とする請求項 1 5 から請求項 1 7のいずれかに記載のプログラム。
1 9 . 3次元画像の描画のラスタライズ処理を行う際、 2次元平面 上の点 P! {x„ y,)と点 P2 ( 2, )とをとおる直線の y座標に対する 座標 の変化量
Δ =——— L
Figure imgf000051_0001
を算出する演算処理を情報処理装置に行わせるプログラムが格納され た記録媒体であって、
前記プログラムは情報処理装置に、
4 を演算する際、 = ;, ~~ ^で表せられる定数 ^が、 y座標の
2一 1
変化量に関連付けられて格納されたメモリから、 算出する l の y座 標の変化量に対応する〃を読み出させるステップと、
前記読み出した〃に基づいて、 乗算により、
Figure imgf000051_0002
を算出し、 この結果を 4 として演算させるステップと
を有することを特徴とする記録媒体。
2 0. 前記プログラムは、 情報処理装置に、 前記 λを 2n(«≥l)に限 定し、 前記算出された zljf ' を、 n桁右シフ卜することにより、 4 を 演算させるステップを更に有することを特徴とする請求項 1 9に記載 の記録媒体。
2 1. 前記プログラムは、
情報処理装置に、 座標値が整数に限定され、 座標 , tを、
Figure imgf000052_0002
で表現されるァフィン変換により、 座標 ' , , ^に変換処理を 行わせる際、
形状データの座標 , Wを、 行列 及び行列 尸とのァフ イ ン変換により、 座標 ' , , ' ^に変換する際、 メモリに記憶さ れている、 行列 に λ (≠ 0 ) をかけたパラメ一タ ^'
λ a13
λ 23
Figure imgf000052_0001
と、 行列 (t,, t2, t3)1とを読み出させるステップと、
前記読み出した行列 ' と、 行列( とに基づいて、
'= (fl'n*x + «'12* + β'13*ζ)/Α + tx;
y = (fl'21* + a 2^y + α'23*ζ)/Α + 12;
z'= ("'31*x + '32*y + fl'33¾)/A +t3;
を演算して、 座標 ' , ,ζ' を演算させるステップと
を更に有することを特徴とする請求項 1 9又は請求項 2 0に記載の記 録媒体。
2 2. 前記 λを 2"(M 1)に限定し、
前記演算するステップは、
ぶ'= ( ' + fl'r*y +
= ("'21* + "'22 +
Figure imgf000053_0001
+ 12;
ζ'= (α'31* + 2*y + a ^z)l λ + ;
の除算演算を、 n桁右シフトすることにより、 座標 ' , , ^を 演算させるステップであることを特徴とする請求項 2 1に記載の記録 媒体。
2 3. 前記プログラムは、 情報処理装置に、 前記 n桁右シフトする 前に、 各被除数に定数/ ί /^を加算させるステップを更に有することを 特徴とする請求項 2 2に記載の記録媒体。
24. 前記プログラムは、 情報処理装置に、 予め λ (≠ 0 ) をかけ た二つ以上のパラメータを合成させるステップを更に有することを特 徴とする請求項 2 1から請求項 2 3のいずれかに記載の記録媒体。
PCT/JP2002/006159 2001-06-21 2002-06-20 Processeur de donnees WO2003001458A1 (fr)

Priority Applications (6)

Application Number Priority Date Filing Date Title
IL15445002A IL154450A0 (en) 2001-06-21 2002-06-20 Information processing apparatus
US10/344,452 US7030880B2 (en) 2001-06-21 2002-06-20 Information processor
KR10-2003-7002480A KR20030043935A (ko) 2001-06-21 2002-06-20 정보처리장치
JP2003507765A JPWO2003001458A1 (ja) 2001-06-21 2002-06-20 情報処理装置
EP02743661A EP1406214A4 (en) 2001-06-21 2002-06-20 INFORMATION PROCESSOR
IL154450A IL154450A (en) 2001-06-21 2003-02-13 3D simulation processing is suitable for systems without hardware support

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2001187619 2001-06-21
JP2001-187619 2001-06-21

Publications (1)

Publication Number Publication Date
WO2003001458A1 true WO2003001458A1 (fr) 2003-01-03

Family

ID=19026886

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/JP2002/006157 WO2003001457A1 (fr) 2001-06-21 2002-06-20 Processeur d'informations
PCT/JP2002/006159 WO2003001458A1 (fr) 2001-06-21 2002-06-20 Processeur de donnees

Family Applications Before (1)

Application Number Title Priority Date Filing Date
PCT/JP2002/006157 WO2003001457A1 (fr) 2001-06-21 2002-06-20 Processeur d'informations

Country Status (8)

Country Link
US (2) US7030880B2 (ja)
EP (2) EP1406213A4 (ja)
JP (2) JP4046233B2 (ja)
KR (2) KR100924250B1 (ja)
CN (2) CN1465036A (ja)
IL (4) IL154451A0 (ja)
TW (2) TWI239488B (ja)
WO (2) WO2003001457A1 (ja)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7107081B1 (en) 2001-10-18 2006-09-12 Iwao Fujisaki Communication device
US7127271B1 (en) 2001-10-18 2006-10-24 Iwao Fujisaki Communication device
US7466992B1 (en) 2001-10-18 2008-12-16 Iwao Fujisaki Communication device
US8229512B1 (en) 2003-02-08 2012-07-24 Iwao Fujisaki Communication device
US8241128B1 (en) 2003-04-03 2012-08-14 Iwao Fujisaki Communication device
US8090402B1 (en) 2003-09-26 2012-01-03 Iwao Fujisaki Communication device
US7917167B1 (en) 2003-11-22 2011-03-29 Iwao Fujisaki Communication device
US8041348B1 (en) 2004-03-23 2011-10-18 Iwao Fujisaki Communication device
US7091982B2 (en) * 2004-05-14 2006-08-15 Nvidia Corporation Low power programmable processor
US7202877B2 (en) * 2004-05-21 2007-04-10 Texas Instruments Incorporated Sprite rendering
US7664338B2 (en) 2004-09-28 2010-02-16 Qualcomm Incorporated Perspective transformation of two-dimensional images
US8208954B1 (en) 2005-04-08 2012-06-26 Iwao Fujisaki Communication device
KR101249988B1 (ko) * 2006-01-27 2013-04-01 삼성전자주식회사 사용자의 위치에 따른 영상을 디스플레이하는 장치 및 방법
US8692809B2 (en) * 2006-07-06 2014-04-08 Elo Touch Solutions, Inc. Auto-gain switching module for acoustic touch systems
US7936921B2 (en) * 2007-01-04 2011-05-03 Freescale Semiconductor, Inc. Efficient fixed-point real-time thresholding for signal processing
US7890089B1 (en) 2007-05-03 2011-02-15 Iwao Fujisaki Communication device
US8559983B1 (en) 2007-05-03 2013-10-15 Iwao Fujisaki Communication device
US8676273B1 (en) 2007-08-24 2014-03-18 Iwao Fujisaki Communication device
US8639214B1 (en) 2007-10-26 2014-01-28 Iwao Fujisaki Communication device
US8472935B1 (en) 2007-10-29 2013-06-25 Iwao Fujisaki Communication device
US8744720B1 (en) 2007-12-27 2014-06-03 Iwao Fujisaki Inter-vehicle middle point maintaining implementer
US8543157B1 (en) 2008-05-09 2013-09-24 Iwao Fujisaki Communication device which notifies its pin-point location or geographic area in accordance with user selection
US8340726B1 (en) 2008-06-30 2012-12-25 Iwao Fujisaki Communication device
US8452307B1 (en) 2008-07-02 2013-05-28 Iwao Fujisaki Communication device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0677842A (ja) * 1992-08-28 1994-03-18 Mitsubishi Electric Corp 量子化装置
JPH0778269A (ja) * 1993-06-30 1995-03-20 Nec Corp 3次元描画装置
JPH0799578A (ja) * 1993-09-28 1995-04-11 Nec Corp 画像処理装置
JPH09305789A (ja) * 1996-05-21 1997-11-28 Hitachi Ltd 演算方法およびグラフィックス表示装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4760548A (en) * 1986-06-13 1988-07-26 International Business Machines Corporation Method and apparatus for producing a curve image
US5028848A (en) * 1988-06-27 1991-07-02 Hewlett-Packard Company Tile vector to raster conversion method
US5715385A (en) * 1992-07-10 1998-02-03 Lsi Logic Corporation Apparatus for 2-D affine transformation of images
US5581665A (en) * 1992-10-27 1996-12-03 Matsushita Electric Industrial Co., Ltd. Three-dimensional object movement and transformation processing apparatus for performing movement and transformation of an object in a three-diamensional space
AU3139295A (en) * 1994-07-22 1996-02-22 Apple Computer, Inc. Method and system for the placement of texture on three-dimensional objects
KR0170934B1 (ko) * 1994-12-29 1999-03-20 배순훈 프랙탈 영상 부호화를 위한 고속 아핀 변환 장치
AUPP091197A0 (en) * 1997-12-15 1998-01-08 Liguori, Vincenzo Direct manipulation of compressed geometry
US6215915B1 (en) * 1998-02-20 2001-04-10 Cognex Corporation Image processing methods and apparatus for separable, general affine transformation of an image
US6389154B1 (en) * 1998-07-15 2002-05-14 Silicon Graphics, Inc. Exact evaluation of subdivision surfaces generalizing box splines at arbitrary parameter values
US6483514B1 (en) * 1999-04-15 2002-11-19 Pixar Animation Studios Motion blurring implicit surfaces
JP4244444B2 (ja) 1999-05-28 2009-03-25 ソニー株式会社 データ処理装置、除算回路および画像処理装置
GB2359884B (en) * 1999-11-25 2004-06-30 Canon Kk Image processing method and apparatus
JP2002008060A (ja) * 2000-06-23 2002-01-11 Hitachi Ltd データ処理方法、記録媒体及びデータ処理装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0677842A (ja) * 1992-08-28 1994-03-18 Mitsubishi Electric Corp 量子化装置
JPH0778269A (ja) * 1993-06-30 1995-03-20 Nec Corp 3次元描画装置
JPH0799578A (ja) * 1993-09-28 1995-04-11 Nec Corp 画像処理装置
JPH09305789A (ja) * 1996-05-21 1997-11-28 Hitachi Ltd 演算方法およびグラフィックス表示装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP1406214A4 *

Also Published As

Publication number Publication date
IL154450A (en) 2008-11-26
WO2003001457A1 (fr) 2003-01-03
KR20030043935A (ko) 2003-06-02
TWI239488B (en) 2005-09-11
US6970178B2 (en) 2005-11-29
US20030185460A1 (en) 2003-10-02
KR20030045036A (ko) 2003-06-09
EP1406213A4 (en) 2009-01-14
JPWO2003001457A1 (ja) 2004-10-14
TWI257795B (en) 2006-07-01
CN1465035A (zh) 2003-12-31
JP4046233B2 (ja) 2008-02-13
EP1406214A1 (en) 2004-04-07
CN1465036A (zh) 2003-12-31
EP1406213A1 (en) 2004-04-07
IL154450A0 (en) 2003-09-17
KR100924250B1 (ko) 2009-10-30
JPWO2003001458A1 (ja) 2004-10-14
US20030184543A1 (en) 2003-10-02
IL154451A0 (en) 2003-09-17
EP1406214A4 (en) 2009-01-14
US7030880B2 (en) 2006-04-18
IL154451A (en) 2009-07-20

Similar Documents

Publication Publication Date Title
WO2003001458A1 (fr) Processeur de donnees
US8786606B2 (en) Point containment for quadratic Bèzier strokes
US8059119B2 (en) Method for detecting border tiles or border pixels of a primitive for tile-based rendering
US7872648B2 (en) Random-access vector graphics
CN110084875B (zh) 使用计算着色器作为顶点着色器的前端
US8379025B1 (en) Methods and apparatus for rendering vector art on graphics hardware
US8289323B2 (en) Drawing processing apparatus, texture processing apparatus, and tessellation method
KR100834596B1 (ko) 묘화장치와 묘화방법 및 묘화 프로그램을 구비한 컴퓨터 독출가능 기록매체
KR101240815B1 (ko) 그래픽 렌더링을 위한 멀티-스테이지 테셀레이션
US7609263B2 (en) Drawing processing apparatus and method for compressing drawing data
EP1630745A2 (en) Rendering of outline fonts
EP0834830B1 (en) System and method for perspective transformation
JP2009301284A (ja) 描画装置および方法
US8179399B2 (en) Rasterizing method
US6677953B1 (en) Hardware viewport system and method for use in a graphics pipeline
US20100302259A1 (en) Drawing data processing method, graphics drawing system and graphics drawing data generation program
Kim et al. A high-performance OpenVG accelerator with dual-scanline filling rendering
JP3747859B2 (ja) 画像処理装置およびその方法
US11776179B2 (en) Rendering scalable multicolored vector content
JP4556646B2 (ja) 図形情報生成装置、画像処理装置、情報処理装置、および図形情報生成方法
Belyaev Packing large segmented volumes for visual analysis
WO2013038437A1 (ja) ジオモーフィング装置
JP5388707B2 (ja) 描画処理装置及び描画処理方法
Hemingway GPU-Based NURBS Geometry Evaluation and Rendering.

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SD SE SG SI SK SL TJ TM TN TR TT TZ UA UG US UZ VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

WWE Wipo information: entry into national phase

Ref document number: 10344452

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 154450

Country of ref document: IL

WWE Wipo information: entry into national phase

Ref document number: 1020037002480

Country of ref document: KR

Ref document number: 2002743661

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 02802446X

Country of ref document: CN

WWP Wipo information: published in national office

Ref document number: 1020037002480

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 1097/MUMNP/2003

Country of ref document: IN

ENP Entry into the national phase

Ref document number: 2004106547

Country of ref document: RU

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2004106164

Country of ref document: RU

Kind code of ref document: A

WWP Wipo information: published in national office

Ref document number: 2002743661

Country of ref document: EP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642