JP3005389B2 - Polygon 3D display system - Google Patents

Polygon 3D display system

Info

Publication number
JP3005389B2
JP3005389B2 JP5156476A JP15647693A JP3005389B2 JP 3005389 B2 JP3005389 B2 JP 3005389B2 JP 5156476 A JP5156476 A JP 5156476A JP 15647693 A JP15647693 A JP 15647693A JP 3005389 B2 JP3005389 B2 JP 3005389B2
Authority
JP
Japan
Prior art keywords
storage area
coordinate value
polygon
dimensional image
display
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.)
Expired - Lifetime
Application number
JP5156476A
Other languages
Japanese (ja)
Other versions
JPH0736439A (en
Inventor
勝則 久保
Original Assignee
中国日本電気ソフトウェア株式会社
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 中国日本電気ソフトウェア株式会社 filed Critical 中国日本電気ソフトウェア株式会社
Priority to JP5156476A priority Critical patent/JP3005389B2/en
Publication of JPH0736439A publication Critical patent/JPH0736439A/en
Application granted granted Critical
Publication of JP3005389B2 publication Critical patent/JP3005389B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は多角形立体表示システム
に関し、特に情報処理装置のグラフ表示機能のうち、多
角形柱を立体的に表示する多角形立体表示システムに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a polygonal three-dimensional display system, and more particularly, to a polygonal three-dimensional display system for displaying a polygonal column in a three-dimensional manner in a graph display function of an information processing apparatus.

【0002】[0002]

【従来の技術】グラフ表示用のアプリケーションプログ
ラムにおいて、立体グラフは、データや図形そのものを
視覚的に表示する手段の一つとしてしばしば用いられて
いる。立体グラフに用いられる立体像要素としては、多
角形柱を斜め上方からの平行光線で投影した立体像が最
も一般的なものである。
2. Description of the Related Art In an application program for displaying a graph, a three-dimensional graph is often used as one of means for visually displaying data or a graphic itself. As a three-dimensional image element used in a three-dimensional graph, a three-dimensional image obtained by projecting a polygonal column with parallel rays from obliquely above is the most common.

【0003】従来、この種の機能を実現するためには、
プログラムの内部で座標値を3次元座標値として制御
し、複雑な座標変換処理(データを極座標に変換し、表
示座標を算出する処理)や陰線制御処理(後方にあるた
め陰になって見えない描画線の消去処理)を行うことが
一般的に行われてきた。
Conventionally, in order to realize this kind of function,
The coordinate values are controlled as three-dimensional coordinate values inside the program, and complicated coordinate conversion processing (processing of converting data into polar coordinates and calculating display coordinates) and hidden line control processing (behind the scenes, the shadows cannot be seen. (Drawing line erasure processing) has been generally performed.

【0004】[0004]

【発明が解決しようとする課題】上述した従来の処理方
法は、表示データに対する座標変換処理や、描画の際に
陰線制御処理が必要となるため、他の平面的なグラフに
比べてプログラムが特殊で複雑になりやすい。その結
果、実行プログラムの肥大化、計算・表示処理の低速
化、保守の非容易化を招くという欠点がある。
The above-mentioned conventional processing method requires a coordinate conversion process for display data and a hidden line control process at the time of drawing, so that the program is more specialized than other planar graphs. Easy to be complicated. As a result, there are disadvantages in that the execution program is enlarged, the calculation / display processing is slowed down, and the maintenance becomes difficult.

【0005】本発明の目的は、複雑な座標変換処理や陰
線制御処理を行うことなく、2次元処理のみの小規模な
プログラムで多角形の立体表示を高速で行える多角形立
体表示システムを提供することにある。
An object of the present invention is to provide a polygonal three-dimensional display system capable of performing high-speed three-dimensional display of a polygon with a small-scale program of only two-dimensional processing without performing complicated coordinate conversion processing and hidden line control processing. It is in.

【0006】[0006]

【課題を解決するための手段】本発明の多角形立体表示
システムは、立体像として表示する多角形柱の底面の各
頂点に対応する座標値が右または左回りの配列方向順に
格納された多角形座標値格納エリアと、前記多角形柱の
高さに関する立体像高データが格納された立体像高格納
エリアと、前記多角形座標値格納エリアから座標値を順
番に読み込み面積を求めることにより格納されたデータ
の格納順序を判断した後に前記多角形柱の側面のX軸増
減値より描画する側面と描画しない側面とに分類し側面
のY軸成分値により描画順序を決定する描画情報制御部
と、前記多角形座標値格納エリアの座標値と前記立体像
高格納エリアの立体像高データとを基に前記描画情報制
御部で決定された描画順序に従って立体像側面を描画す
るための表示用情報を作成し画像メモリに重ね表示形式
で出力する側面描画部と、前記多角形座標値格納エリア
の座標値と前記立体像高格納エリアの立体像高データと
を基に立体像頂面を描画するための表示用情報を作成し
前記画像メモリに重ね表示形式で出力する頂面描画部と
を備えて構成されている。
According to the present invention, there is provided a polygonal three-dimensional display system in which coordinate values corresponding to respective vertices of a bottom surface of a polygonal column to be displayed as a three-dimensional image are stored in a clockwise or counterclockwise arrangement direction. obtaining a rectangular coordinate value storage area, the stereoscopic image height storage area stereoscopic image height data is stored relating to the height of the polygonal pillar, a write-area reading sequentially the coordinates from the polygon coordinate value storage area Data stored by
After determining the storage order, increase the X-axis of the side of the polygonal pillar.
Sides are classified into sides to be drawn and sides not to be drawn from the decrement.
A drawing information control unit that determines a drawing order based on the Y-axis component values of the above, and the drawing information control unit that determines the drawing order based on the coordinate values of the polygon coordinate value storage area and the three-dimensional image height data of the three-dimensional image height storage area. A side drawing unit that creates display information for drawing the three-dimensional image side surface in accordance with the drawn drawing order and outputs the information in an overlaid display format to an image memory; the coordinate values of the polygon coordinate value storage area and the three-dimensional image height storage area And a top surface drawing unit for creating display information for drawing the top surface of the three-dimensional image based on the three-dimensional image height data, and outputting the information to the image memory in a superimposed display format.

【0007】[0007]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0008】図1は本発明の一実施例の構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention.

【0009】本実施例の多角形立体表示システムは、図
1に示すように、立体像として表示する多角形柱の底面
の各頂点の座標値が右または左回り方向で格納されてい
る多角形座標値格納エリア2と、多角形柱の高さを表す
立体像高データが格納されている立体像高格納エリア3
と、多角形座標値格納エリア2及び立体像高格納エリア
3のデータから2次元制御のみにより多角形柱の立体像
としての表示情報を作成する表示情報制御装置1と、出
力装置4とで構成されている。
As shown in FIG. 1, a polygonal three-dimensional display system according to this embodiment has a polygon in which coordinate values of respective vertices of a bottom surface of a polygonal column to be displayed as a three-dimensional image are stored in a clockwise or counterclockwise direction. A coordinate value storage area 2 and a three-dimensional image height storage area 3 in which three-dimensional image height data representing the height of a polygonal column is stored.
A display information control device 1 for creating display information as a three-dimensional image of a polygonal column only by two-dimensional control from data in the polygon coordinate value storage area 2 and the three-dimensional image height storage area 3, and an output device 4. Have been.

【0010】表示情報制御装置1は、多角形座標値格納
エリア2から底面の座標値を順番に読み込んで配列方向
を識別した後、多角形柱の側面を描画する側面と描画し
ない側面とに分類し描画順序を決定する描画情報制御部
11と、描画情報制御部11で決定した描画順序に従っ
て、底面の座標値および立体像高データから各立体像側
面を描画するための表示用情報を作成し、画像メモリに
重ね表示形式で順次書き込む側面描画部12と、底面の
座標値および立体像高データから立体像頂面を描画する
ための表示用情報を作成し、画像メモリに重ね表示形式
で出力する頂面描画部13とから構成されている。
The display information control device 1 reads the coordinate values of the bottom face from the polygon coordinate value storage area 2 in order and identifies the arrangement direction, and then classifies the polygon pillar into a side in which the side is drawn and a side in which the side is not drawn. A drawing information control unit 11 for determining a drawing order, and display information for drawing each stereoscopic image side surface from the coordinate values of the bottom surface and the stereoscopic image height data are created in accordance with the drawing order determined by the drawing information control unit 11. A side drawing unit 12 that sequentially writes in an image memory in an overlaid display format, and display information for drawing a top surface of a 3D image from coordinate values of the bottom surface and 3D image height data, and outputs the image to the image memory in an overlaid display format. And a top surface drawing unit 13.

【0011】図2は、図1に示した表示情報制御装置1
の処理の流れを図示したもので、描画情報制御部11が
行う描画情報制御処理と、側面描画部12が行う側面描
画処理と、頂面描画部13が行う頂面描画処理とに分け
られる。以下、図1,図2を参照しながら各処理につい
て詳細に説明する。
FIG. 2 shows the display information control device 1 shown in FIG.
2 is divided into drawing information control processing performed by the drawing information control unit 11, side drawing processing performed by the side drawing unit 12, and top drawing processing performed by the top drawing unit 13. Hereinafter, each process will be described in detail with reference to FIGS.

【0012】表示情報制御装置1の描画情報制御部11
は、まず多角形座標値格納エリア2から各頂点の座標値
を格納順に読み込み(ステップS1)、立体像の側面描
画に関する制御情報として、座標値配列方向,描画側面
判断配列,描画順序制御配列の諸情報を順次作成する
(ステップS2〜S4)。
The drawing information control unit 11 of the display information control device 1
First, the coordinate values of each vertex are read from the polygon coordinate value storage area 2 in the order of storage (step S1), and the control information relating to the side drawing of the stereoscopic image includes the coordinate value array direction, the drawing side determination array, and the drawing order control array. Various information is created sequentially (steps S2 to S4).

【0013】多角形座標値格納エリア2には、立体像描
画の対象となる多角形柱の底面を構成するn個の頂点の
座標値A(x,y)が座標値配列として格納されてい
る。格納されている座標値の格納順序は、多角形に対し
て右回り左回りどちらでもよいが、必ず連続した順序で
格納されていなければならない。
The polygon coordinate value storage area 2 stores coordinate values A i (x, y) of n vertices forming the bottom surface of a polygonal column to be rendered as a three-dimensional image as a coordinate value array. I have. The stored coordinate values may be stored clockwise or counterclockwise with respect to the polygon, but must be stored in a continuous order.

【0014】図3は、ステップS1で座標値配列を読み
込んだ後に、最初にステップS2で行われる座標値配列
の配列方向判断の方法を説明するための説明図である。
本発明では任意の多角形を指定可能であるが、図3に
は、具体例として4点で構成される多角形の場合が示し
てある。
FIG. 3 is an explanatory diagram for explaining a method of judging the arrangement direction of the coordinate value array performed first in step S2 after reading the coordinate value array in step S1.
Although an arbitrary polygon can be designated in the present invention, FIG. 3 shows a case of a polygon composed of four points as a specific example.

【0015】多角形座標値格納エリア2には、図3
(a)に示す頂点A〜Aの4頂点の座標値が、図3
(b)に示すように左回りの座標値配列として格納され
ているものとする。描画情報制御部11は、図3(b)
の座標値配列をインデックス値順に読み込み、読み込ん
だ値を図3(c)に示す判別式の右辺に代入して面積S
を求める。図3(c)の判別式は、任意の座標値A
(x,y)に対し、次の座標値配列の座標値A
i+1(x,y)と、それぞれのy軸への投影点B,B
i+1との4点で構成される台形の面積を求め、変数iに
ついて加算していく式である。ここで、A(x,y)
とAi+1(x,y)を結ぶ線分は多角形の一辺なので、
言い換えればすべての辺に対する台形の面積を加算して
いくことになる。このようにして求めた面積Sの正負を
図3(d)の判断規則により判断し、座標値配列の配列
方向を識別する。
In the polygon coordinate value storage area 2, FIG.
Coordinate values of four vertices of the vertex A 1 to A 4 shown in (a) is 3
It is assumed that the coordinates are stored as a counterclockwise coordinate value array as shown in FIG. The drawing information control unit 11 is configured as shown in FIG.
Are read in the order of index values, and the read values are substituted into the right side of the discriminant shown in FIG.
Ask for. The discriminant equation of FIG.
For i (x, y), the coordinate value A of the next coordinate value array
i + 1 (x, y) and projection points B i , B on the respective y axes
This is an equation in which the area of a trapezoid composed of four points, i + 1 , is obtained and added for a variable i. Here, A i (x, y)
And the line connecting A i + 1 (x, y) is one side of a polygon,
In other words, the area of the trapezoid for all sides is added. The sign of the area S thus determined is determined according to the determination rule of FIG. 3D, and the arrangement direction of the coordinate value array is identified.

【0016】図3(b)の座標値配列の場合には、辺
(A,A),辺(A,A),辺(A,A
をそれぞれ一辺とする正の面積の台形の和(斜線の部
分)に、辺(A,A)を一辺とする面積が負の台形
を加算する結果、四角形(A,A,A,A)の
面積Sは負となるので、図3(d)の判断規則により左
回りと識別される。
In the case of the coordinate value array shown in FIG. 3B, sides (A 1 , A 2 ), sides (A 2 , A 3 ), and sides (A 4 , A 1 )
Is added to the sum of the trapezoids of the positive areas each having one side (shaded area) and the trapezoid whose area is one side of the side (A 3 , A 4 ) as a result, the squares (A 1 , A 2 , A 3 , A 4 ) has a negative area S, and is thus identified as counterclockwise by the determination rule of FIG.

【0017】逆に右回りに座標値が格納されていた場合
は、辺(A,A),辺(A,A),辺(A
)をそれぞれ一辺とする台形がすべて負の面積とな
り、辺(A,A)を一辺とする面積が正の台形を加
算する結果、四角形(A,A,A,A)の面積
Sは正となるので、判断規則により右回りと識別され
る。識別結果に基づいて座標値配列方向を示すフラグを
セットした後、ステップS3に進み次の立体像の描画側
面判断を行う。
Conversely, when the coordinate values are stored clockwise, the sides (A 1 , A 4 ), the sides (A 3 , A 2 ), and the sides (A 2 , A 2 ,
All trapezoids each having A 1 ) as a side have a negative area, and as a result of adding a positive trapezoid having an area having a side (A 4 , A 3 ) as a side, a square (A 1 , A 2 , A 3 , A) is obtained. 4 ) Since the area S is positive, it is identified as clockwise by the determination rule. After setting a flag indicating the coordinate value array direction based on the identification result, the process proceeds to step S3 to determine the drawing side of the next three-dimensional image.

【0018】ステップS3における描画側面判断では、
描画情報制御部11は、先に読み込んだ座標値配列の先
頭から、順次その座標値配列位置(インデックス)と次
の座標値配列位置(インデックス)の座標値のx軸成分
を比較して増減を調べる。図4に示すように、xy面上
の多角形(6角形)を底面とする多角形柱(z>0)を
立体表示(y<0,z>0の方向からの投影)する場
合、多角形底面の各頂点の座標値が座標値配列に左回り
に入れられているならばx軸成分が増加した辺、逆に右
回りに入れられているならばx軸成分が減少した辺が、
それぞれ描画しなければならない(目に見える)立体像
側面を構成する底面の一辺である(図4に○印を付し実
線で示す)。逆に、図4に破線で示し×印を付した辺
(左回りならばx軸成分が減少した辺、右回りならばx
軸成分が増加した辺)は、描画する必要のない(目に見
えない)立体像側面を構成する底面の一辺である。な
お、x軸成分が等しい場合は、2点はy軸成分だけの変
化なので面としては表示されず線となる。従って、この
辺を含む立体像側面は描画しないものと判断してよい
(描画してもよいが、それだけ描画の処理回数が多くな
る)。
In the drawing side determination in step S3,
The drawing information control unit 11 sequentially compares the x-axis components of the coordinate value array position (index) and the next coordinate value array position (index) from the top of the previously read coordinate value array to increase or decrease. Find out. As shown in FIG. 4, when a polygonal column (z> 0) having a polygon (hexagon) on the xy plane as a bottom surface is stereoscopically displayed (projection from the direction of y <0, z> 0), If the coordinate values of the vertices of the rectangular base are placed counterclockwise in the coordinate value array, the side where the x-axis component increases, and conversely if it is placed clockwise, the side where the x-axis component decreases,
These are one side of the bottom surface that constitutes the (visible) stereoscopic image side surface that must be drawn (marked with a circle in FIG. 4 and indicated by a solid line). Conversely, the side indicated by a dashed line in FIG. 4 and marked with x (the side where the x-axis component decreases when counterclockwise, the x
The side with the increased axis component) is one side of the bottom surface constituting the side of the three-dimensional image that does not need to be drawn (not visible). If the x-axis components are equal, the two points are changed only in the y-axis component and are not displayed as a surface but are lines. Therefore, it may be determined that the side of the three-dimensional image including this side is not drawn (the drawing may be performed, but the number of drawing processes increases accordingly).

【0019】この判断方法により、先にステップS2で
求めた座標値配列方向を示すフラグを参照して多角形の
すべての辺について描画判断を行い、判断結果を描画す
る場合をフラグ“1”、描画しない場合をフラグ“0”
として、図5に示すように描画側面判断配列の座標値配
列と対応する箇所に格納していく。すなわち、座標値配
列のインデックスmの箇所の点を始点とする辺の判断結
果を、描画側面判断配列のインデックスmの箇所に格納
する。この描画判断を行うことにより、立体像のすべて
の側面を描画するのではなく、実際に目に見えている側
面だけを描画できる。従って、システム全体の処理の中
でウェイトのかかる側面描画処理を軽減し、システムの
処理速度を上げることが可能となる。
According to this determination method, drawing determination is performed for all sides of the polygon with reference to the flag indicating the coordinate value array direction previously obtained in step S2, and the flag "1" is set when the determination result is drawn. Flag "0" when not drawing
As shown in FIG. 5, the image data is stored in a location corresponding to the coordinate value array of the drawing side surface determination array. That is, the determination result of the side starting from the point of the index m in the coordinate value array is stored in the position of the index m in the drawing side surface determination array. By making this drawing determination, it is possible to draw only the side that is actually visible, instead of drawing all the sides of the stereoscopic image. Therefore, it is possible to reduce the weighted side surface drawing processing in the processing of the entire system and increase the processing speed of the system.

【0020】次に、描画情報制御部11は、ステップS
4において、陰線制御処理を意識せずに立体像を表示す
るために、立体像側面の描画順序に関する制御情報とし
て描画順序制御配列を作成する。まず、先に読み込んだ
座標値配列のインデックス値を描画順序制御配列に順番
に格納し、その後で座標値配列のy軸成分をキーとして
降順に描画順序制御配列のインデックスソートを行う。
ソート後の描画順序制御配列には、図6に示すように、
配列値として座標値配列および描画側面判断配列のイン
デックス値が描画する順番に格納されることになる。こ
のソートされた順序、すなわち、底面の多角形を構成す
る各辺の始点の座標値のy軸成分の大きいものから、そ
の辺を含む立体像側面の表示情報を作成して順番に画像
メモリに重ね表示することにより、陰線制御処理を行わ
ずに立体投影的なイメージ像を完成することが可能とな
る。
Next, the drawing information control section 11 executes step S
In step 4, a drawing order control array is created as control information on the drawing order on the side of the stereoscopic image in order to display a stereoscopic image without being conscious of hidden line control processing. First, the previously read index values of the coordinate value array are sequentially stored in the drawing order control array, and then the index sorting of the drawing order control array is performed in descending order using the y-axis component of the coordinate value array as a key.
In the drawing order control array after sorting, as shown in FIG.
The index values of the coordinate value array and the drawing side surface determination array are stored as array values in the order of drawing. From the sorted order, that is, from the largest y-axis component of the coordinate value of the starting point of each side constituting the polygon of the bottom surface, display information of the three-dimensional image side including the side is created and sequentially stored in the image memory. By superimposing and displaying, it is possible to complete a stereoscopic projection image without performing hidden line control processing.

【0021】描画情報制御部11で作成された描画側面
判断配列,描画順序制御配列は、多角形座標値格納エリ
ア2から読み込んだ座標値配列と共に側面描画部12に
渡され、ここで立体像側面の描画に必要な表示情報が作
成される。
The drawing side determination array and the drawing order control array created by the drawing information control unit 11 are passed to the side drawing unit 12 together with the coordinate value array read from the polygon coordinate value storage area 2, where the three-dimensional image side The display information necessary for drawing is created.

【0022】図6は、側面描画部12で行われる側面描
画処理(ステップS5〜S7)の説明図である。
FIG. 6 is an explanatory diagram of the side surface drawing process (steps S5 to S7) performed by the side surface drawing unit 12.

【0023】側面描画部12は、まず立体像高格納エリ
ア3から立体像として表示する多角形柱の高さを表す立
体像高データを読み込む(ステップS5)。次に、描画
情報制御部11で作成された描画順序制御配列の先頭か
ら順に、格納されているインデックス値により描画側面
判断配列の該当するインデックス値番目を参照しにい
く。描画順序制御配列のj番目に格納されているインデ
ックス値がmであれば、描画側面判断配列のm番目を参
照しにいき、m番目の配列に格納されている描画側面判
断結果のフラグが“0”であれば、その側面は描画しな
いので描画順序制御配列のj+1番目に移る。描画側面
判断結果のフラグが“1”であれば、その側面すなわち
多角形のm番目の辺を含む立体像側面を描画することに
なる。
The side surface drawing unit 12 first reads solid image height data representing the height of a polygonal column displayed as a solid image from the solid image height storage area 3 (step S5). Next, from the top of the drawing order control array created by the drawing information control unit 11, the corresponding index value of the drawing side determination array is referred to by the stored index value. If the index value stored at the jth position in the drawing order control array is m, the mth position in the drawing side determination array is referred to, and the flag of the drawing side determination result stored in the mth array is set to “ If "0", the side is not drawn, and the processing moves to the (j + 1) th position in the drawing order control array. If the flag of the drawing side determination result is “1”, the side, that is, the three-dimensional image side including the m-th side of the polygon is drawn.

【0024】ここで描画を行う多角形柱の側面は、座標
値配列のm番目の座標値と、m+1番目の座標値と、そ
れぞれ高さ(z成分)の異なる座標値との4点で構成さ
れるが、xy平面と角度θの斜め上方(y<0,z>
0)から投影すると、底面のy軸成分はsinθ倍に、
高さはcosθ倍に投影されるので、座標値配列の座標
値のy軸成分と立体像高データとから立体像側面の表示
用座標値を計算し、これらの値を基にして立体像側面内
の各点の表示情報を作成する(ステップS6)。すなわ
ち、立体像として面の輪郭のみを表示する場合は、輪郭
線に対応する各画素の表示情報を例えば白黒の2値表示
で“1”とすると、輪郭線に囲まれた面内の各点には
“0”の表示情報を作成する。次に、ステップ7でこれ
らの表示情報を画像メモリに重ね表示形式で書き込み、
次の側面の処理に移り同様の処理を繰り返す。
Here, the side surface of the polygonal column to be drawn is composed of four points: the m-th coordinate value in the coordinate value array, the (m + 1) -th coordinate value, and coordinate values having different heights (z components). But obliquely above the xy plane at an angle θ (y <0, z>
When projected from 0), the y-axis component of the bottom surface becomes sin θ times,
Since the height is projected by cosθ times, the display coordinate values of the stereoscopic image side surface are calculated from the y-axis component of the coordinate values in the coordinate value array and the stereoscopic image height data, and the stereoscopic image side surface is calculated based on these values. The display information of each point in is created (step S6). That is, when displaying only the outline of a surface as a three-dimensional image, if the display information of each pixel corresponding to the outline is, for example, “1” in binary display of black and white, each point in the surface surrounded by the outline , Display information of “0” is created. Next, in step 7, the display information is written in the image memory in an overlaid display format,
The process moves to the next aspect and the same process is repeated.

【0025】前述したように、描画順序制御配列に格納
されている描画順序は、多角形を構成する各辺の始点の
座標値のy軸成分の大きいもの、すなわち後側の側面か
ら描画するため、手前側の側面が描画されると後側の側
面の重なって見えなくなる部分の表示情報は消去される
ので、陰線制御処理は不要となる。
As described above, the drawing order stored in the drawing order control array is a drawing order in which the y-axis component of the coordinate value of the starting point of each side constituting the polygon is large, that is, from the rear side surface. When the front side is drawn, the display information of the part that is not visible because of the overlap of the rear side is erased, so that the hidden line control processing becomes unnecessary.

【0026】描画順序制御配列順に立体像側面のすべて
について、重ね表示で画像メモリに表示情報を出力し終
えると、座標値配列と立体像高データから求めた表示用
座標値の情報を頂面描画部13に渡し、ここで立体像の
頂面描画処理を行う(ステップS8,S9)。
When the display information has been output to the image memory in superimposed display for all of the three-dimensional image side surfaces in the order of the drawing order control, the information of the display coordinate values obtained from the coordinate value array and the three-dimensional image height data is displayed on the top surface. The processing is passed to the section 13 where the top surface drawing processing of the stereoscopic image is performed (steps S8 and S9).

【0027】頂面描画部13では、底面の多角形の表示
用座標値を立体像の表示高さ分だけけy軸方向に移動さ
せたものを立体像の頂面多角形の表示用座標値とし、こ
れらから立体像頂面の表示情報を作成し(ステップS
8)、画像メモリに重ね表示形式で出力する(ステップ
9)。
In the top surface drawing unit 13, the display coordinate values of the polygon on the bottom surface are shifted in the y-axis direction by the display height of the stereoscopic image, and the coordinate values for display of the polygon on the top surface of the stereoscopic image are obtained. And display information of the top surface of the three-dimensional image is created from these (step S
8) Output to the image memory in a superimposed display format (step 9).

【0028】以上のようにして表示情報制御装置1が作
成した画像メモリの表示情報を出力装置4に渡し、立体
像としてディスプレイに表示し、又は用紙に出力する。
図7に印刷装置に出力した結果の一例として、北海道の
地形図を多角形で近似し、頂面を輪郭線表示とし、側面
を着色表示(図ではまだら模様)により浮き上がらせた
立体像の例を示す。
The display information in the image memory created by the display information control device 1 as described above is passed to the output device 4 and displayed as a stereoscopic image on a display or output on paper.
As an example of the result output to the printing apparatus in FIG. 7, an example of a three-dimensional image in which the topographic map of Hokkaido is approximated by a polygon, the top surface is displayed as a contour line, and the side surface is embossed with a colored display (mottle pattern in the figure). Is shown.

【0029】上述のように、立体像の側面描画処理およ
び頂面描画処理を共に重ね表示で処理することにより、
多角形座標値データと立体像高データの2次元制御のみ
で表示用座標値を算出し、陰線制御処理を行わずに多角
形の疑似3次元表示を実現している。
As described above, by performing both the side surface drawing process and the top surface drawing process of the three-dimensional image by overlapping display,
Display coordinate values are calculated only by two-dimensional control of polygon coordinate value data and stereoscopic image height data, and pseudo three-dimensional display of polygons is realized without performing hidden line control processing.

【0030】上述の実施例の説明では、多角形座標値格
納エリアには多角形柱の底面の平面座標値が格納され、
立体像高格納エリアには多角形柱の高さが格納されてい
るものとし、側面描画部において立体像として表示する
ときの表示用座標値を演算するように説明したが、多角
形座標値格納エリアに底面の投影座標を、立体像高格納
エリアには立体像としての表示高さを格納しておけば、
演算で求める必要はない。この場合でも、描画情報制御
部で行う座標配列方向判断,描画側面判断,描画順序判
断の手順には何ら変更を必要とせず、多角形座標値格納
エリアから読み出した座標値を使用して同様な処理を行
えばよい。
In the description of the above embodiment, the plane coordinate values of the bottom surface of the polygonal column are stored in the polygonal coordinate value storage area.
It has been described that the height of the polygonal column is stored in the three-dimensional image height storage area, and the display coordinate values for displaying as a three-dimensional image in the side surface drawing unit are calculated. If the area stores the projection coordinates of the bottom surface and the stereoscopic image height storage area stores the display height as a stereoscopic image,
There is no need to calculate it. Even in this case, the procedure of the coordinate array direction determination, the rendering side determination, and the rendering order determination performed by the rendering information control unit does not require any change, and the same procedure is performed using the coordinate values read from the polygon coordinate value storage area. Processing may be performed.

【0031】[0031]

【発明の効果】以上説明したように、本発明の多角形立
体表示システムは、任意の多角形座標値データと立体像
高データの2次元制御のみを行い、立体像側面および頂
面を一定の順序で重ね表示で描画して多角形の立体表示
を行うので、表示用座標値を求めるための3次元制御に
伴う複雑な座標変換処理や陰線制御処理を必要とせず、
従来の方法に比べてプログラムの縮小化,保守の容易
化,表示処理の高速化ができるという効果がある。
As described above, the polygonal three-dimensional display system of the present invention performs only two-dimensional control of arbitrary polygon coordinate value data and three-dimensional image height data, and keeps the three-dimensional image side surface and the top surface constant. Since polygons are displayed three-dimensionally by drawing in overlapping order in the order, there is no need for complicated coordinate conversion processing and hidden line control processing associated with three-dimensional control for obtaining display coordinate values,
As compared with the conventional method, there is an effect that the program can be reduced in size, maintenance can be facilitated, and the display processing can be speeded up.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】本実施例の処理の流れを示すフローチャートで
ある。
FIG. 2 is a flowchart illustrating a flow of a process according to the embodiment.

【図3】本実施例における座標値配列方向の判断処理の
説明図である。
FIG. 3 is an explanatory diagram of a determination process of a coordinate value array direction in the embodiment.

【図4】本実施例における描画側面判断方法の説明図で
ある。
FIG. 4 is an explanatory diagram of a drawing side surface determination method according to the present embodiment.

【図5】本実施例における描画側面判断配列の作成処理
の説明図である。
FIG. 5 is an explanatory diagram of a creation process of a drawing side surface determination array in the embodiment.

【図6】本実施例における側面描画処理の説明図であ
る。
FIG. 6 is an explanatory diagram of a side surface drawing process in the embodiment.

【図7】本実施例における出力結果の一例を示す説明図
である。
FIG. 7 is an explanatory diagram illustrating an example of an output result in the present embodiment.

【符号の説明】[Explanation of symbols]

1 表示情報制御装置 2 多角形座標値格納エリア 3 立体像高格納エリア 4 出力装置 11 描画情報制御部 12 側面描画部 13 頂面描画部 Reference Signs List 1 display information control device 2 polygon coordinate value storage area 3 stereoscopic image height storage area 4 output device 11 drawing information control unit 12 side drawing unit 13 top drawing unit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 立体像として表示する多角形柱の底面の
各頂点に対応する座標値が右または左回りの配列方向順
に格納された多角形座標値格納エリアと、前記多角形柱
の高さに関する立体像高データが格納された立体像高格
納エリアと、前記多角形座標値格納エリアから座標値を
順番に読み込み面積を求めることにより格納されたデー
タの格納順序を判断した後に前記多角形柱の側面のX軸
増減値より描画する側面と描画しない側面とに分類し側
面のY軸成分値により描画順序を決定する描画情報制御
部と、前記多角形座標値格納エリアの座標値と前記立体
像高格納エリアの立体像高データとを基に前記描画情報
制御部で決定された描画順序に従って立体像側面を描画
するための表示用情報を作成し画像メモリに重ね表示形
式で出力する側面描画部と、前記多角形座標値格納エリ
アの座標値と前記立体像高格納エリアの立体像高データ
とを基に立体像頂面を描画するための表示用情報を作成
し前記画像メモリに重ね表示形式で出力する頂面描画部
とを備えたことを特徴とする多角形立体表示システム。
1. A polygon coordinate value storage area in which coordinate values corresponding to respective vertices of a bottom surface of a polygonal column displayed as a three-dimensional image are stored in a clockwise or counterclockwise arrangement direction, and a height of the polygonal column. Day stereoscopic image height data is stored by obtaining a stereoscopic image height storage area stored, the write-area read from said polygon coordinate value storage area coordinate values sequentially related
X-axis of the side of the polygonal column after judging the storage order of data
Sides that are classified into sides to be drawn and sides not to be drawn from the increase / decrease value
A drawing information control unit that determines a drawing order based on a Y-axis component value of a surface; and a drawing information control unit based on coordinate values of the polygon coordinate value storage area and stereoscopic image height data of the stereoscopic image height storage area. A side surface drawing unit that creates display information for drawing the three-dimensional image side surface in accordance with the determined drawing order and outputs the information in an overlaid display format to an image memory; and stores the coordinate values of the polygon coordinate value storage area and the three-dimensional image height. And a top surface drawing unit for creating display information for drawing the top surface of the three-dimensional image based on the three-dimensional image height data of the area and outputting the information to the image memory in a superimposed display format. 3D display system.
JP5156476A 1993-06-28 1993-06-28 Polygon 3D display system Expired - Lifetime JP3005389B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5156476A JP3005389B2 (en) 1993-06-28 1993-06-28 Polygon 3D display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5156476A JP3005389B2 (en) 1993-06-28 1993-06-28 Polygon 3D display system

Publications (2)

Publication Number Publication Date
JPH0736439A JPH0736439A (en) 1995-02-07
JP3005389B2 true JP3005389B2 (en) 2000-01-31

Family

ID=15628594

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5156476A Expired - Lifetime JP3005389B2 (en) 1993-06-28 1993-06-28 Polygon 3D display system

Country Status (1)

Country Link
JP (1) JP3005389B2 (en)

Also Published As

Publication number Publication date
JPH0736439A (en) 1995-02-07

Similar Documents

Publication Publication Date Title
JP2667835B2 (en) Computer Graphics Display
JP5299173B2 (en) Image processing apparatus, image processing method, and program
JPH10177656A (en) Method for mixing plural pixels on texture map, plural-pixel mixer circuit using the same and image processor
JPH05506730A (en) image generator
US5745667A (en) 3d graphics apparatus using texture images with displacement information
US6774897B2 (en) Apparatus and method for drawing three dimensional graphics by converting two dimensional polygon data to three dimensional polygon data
JP3629243B2 (en) Image processing apparatus and method for rendering shading process using distance component in modeling
JP3268666B2 (en) Computer graphics production equipment
US5920735A (en) Method and apparatus to observe the geometry of relative motion
JP3005389B2 (en) Polygon 3D display system
JP2001148028A (en) Device and method for displaying graphic
JPH0816816A (en) Computer graphics display method
JPH09305791A (en) Device and method for generating three-dimensional image
JP2000057376A (en) Method for generating new viewpoint image
JP3268665B2 (en) Computer graphics production equipment
JPH06176168A (en) Computer graphics preparing device
JP2000187679A (en) Package design simulation method and its device and recording medium recording package design simulation program
JP2611599B2 (en) Computer graphics data processing method and apparatus
JP3251744B2 (en) Image generation method by intersection tracking method
JPH06231274A (en) Method and device for three-dimensional simulation
Chen Highlight lines for surface quality control and shape manipulation
JPH06274648A (en) Image generator
CN116994237A (en) License plate rendering method and device
JPH0935085A (en) Method and device for real-time video generation
JPH02127786A (en) Two-dimensional expressing method for three-dimensional object

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991102

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20071119

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081119

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20081119

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20091119

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20091119

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20101119

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20111119

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20111119

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 14

EXPY Cancellation because of completion of term