JPH06231274A - Method and device for three-dimensional simulation - Google Patents

Method and device for three-dimensional simulation

Info

Publication number
JPH06231274A
JPH06231274A JP1735393A JP1735393A JPH06231274A JP H06231274 A JPH06231274 A JP H06231274A JP 1735393 A JP1735393 A JP 1735393A JP 1735393 A JP1735393 A JP 1735393A JP H06231274 A JPH06231274 A JP H06231274A
Authority
JP
Japan
Prior art keywords
dimensional
dimensional image
data
color
simulation
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.)
Pending
Application number
JP1735393A
Other languages
Japanese (ja)
Inventor
Masayuki Okudaira
正幸 奥平
Tokiko Fujimura
富木子 藤村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toppan Inc
Original Assignee
Toppan Printing Co Ltd
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 Toppan Printing Co Ltd filed Critical Toppan Printing Co Ltd
Priority to JP1735393A priority Critical patent/JPH06231274A/en
Publication of JPH06231274A publication Critical patent/JPH06231274A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To speedily provide the three-dimensional picture in the case of changing the two-dimensional picture in the three-dimensional simulation confirming the solid form by mapping the two-dimensional picture to the three-dimensional form data. CONSTITUTION:By mapping the two-dimensional picture representing the design of label on the three-dimensional form data such as bottle form and performing rendering, the position and color change on the projection surface of each point of the two-dimensional picture is obtained and stored in a storage device 3 as a corresponding table. In case of changing the two-dimensional picture, a CPU 4 obtains the position and color on the projection surface of each point of the two-dimensional picture after the change based on a conversion table and performs the three-dimensional simulation.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ラベル等の平面デザイ
ンがボトルなどの立体物に貼り付けられた場合にどのよ
うに見えるかをコンピュータグラフィックスの手法を用
いてシミュレーションするシステムに関するものであ
り、詳しくはテザインの変更や修正を行う場合に、過去
のシミュレーションのデータを基にして、容易かつ迅速
に変更後のシミュレーション画像を得ることができるシ
ミュレーションシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for simulating what a flat design such as a label looks like when it is attached to a three-dimensional object such as a bottle by using a computer graphics technique. More specifically, the present invention relates to a simulation system that can easily and quickly obtain a changed simulation image based on past simulation data when changing or modifying the design.

【0002】[0002]

【従来の技術】従来より、コンピュータグラフィックス
の手法を用いて、実際に物を作ることなく完成イメージ
をシミュレーションすることが行われている。例えば、
ボトル等のラベルのデザイン設計においては、平面的な
ラベルのデザインを決定後、そのラベルをボトルに貼着
した際のイメージを把握する必要があるため、2次元上
で作成したラベルデザインを予め定義しておいた立体形
状に貼り付けるいわゆるマッピングを施し、マッピング
された3次元形状データをディスプレイ等の投影面に投
影し、色付けや陰影付けを行ういわゆるレンダリングを
行って3次元画像を得る3次元コンピュータ・グラフィ
ックスシステムが各種開発されている。
2. Description of the Related Art Conventionally, a computer graphics technique has been used to simulate a finished image without actually making a product. For example,
In designing labels for bottles, etc., it is necessary to determine the flat label design and then grasp the image when the label is attached to the bottle, so the label design created in two dimensions is defined in advance. A three-dimensional computer that obtains a three-dimensional image by performing so-called mapping that is pasted on the three-dimensional shape that has been stored, projecting the mapped three-dimensional shape data on a projection surface such as a display, and performing so-called rendering that performs coloring and shading.・ Various graphics systems have been developed.

【0003】従来のシミュレーションの手法を図5を参
照して説明する。まず、2次元画像Tを3次元形状デー
タSの表面にマッピングさせる。これは、3次元形状S
をベジェ、B−スプライン、NURBS等の数式で表現
しておき、その数式に従って2次元画像Tの点Xを3次
元形状S上の点Xに対応させる座標変換を行う。
A conventional simulation method will be described with reference to FIG. First, the two-dimensional image T is mapped on the surface of the three-dimensional shape data S. This is a three-dimensional shape S
Is expressed by a mathematical expression such as Bezier, B-spline, NURBS, etc., and coordinate conversion is performed so that the point X of the two-dimensional image T corresponds to the point X on the three-dimensional shape S according to the mathematical expression.

【0004】この例では、3次元形状Sは(s、t)の
中心角及び中心からの距離でXが表現できるが、実際に
2次元画像Tの点Xを3次元形状S上の点Xに対応させ
るX→Xの座標変換を行うには、2次元画像Tがm(p
ixel)×n(pixel)から成り立っていれば、
中心角sをm等分、tをn等分することにより計算が行
える。以上のようにして3次元形状に2次元画像をマッ
ピングさせた後、光源から物体に当たって目に入るまで
の光をレイトレーシング等の手法により求めることで、
2次元画像T上の点xが、ディスプレイのどの位置に何
色で表示されるのかを求めることができ、ディスプレイ
上に3次元形状データを表示することができる。
In this example, the three-dimensional shape S can be expressed by the central angle of (s, t) and the distance from the center, but the point X of the two-dimensional image T is actually the point X on the three-dimensional shape S. In order to perform coordinate conversion from X to X corresponding to
If it consists of (ixel) × n (pixel),
Calculation can be performed by equally dividing the central angle s into m and t into n. After mapping the two-dimensional image to the three-dimensional shape as described above, the light from the light source to the object and entering the eyes is obtained by a method such as ray tracing.
It is possible to determine at what position on the display and in what color the point x on the two-dimensional image T is displayed, and three-dimensional shape data can be displayed on the display.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、これら
のコンピュータ・グラフィックスによるシミュレーショ
ンシステムは、画像データに対して複雑な計算を行わな
ければならないため、計算量が膨大となり処理の時間と
手間を必要とするものである。従って、2次元画像を修
正又は変更して再度同じ3次元形状データにマッピング
させた画像を得ようとすると、改めて2次元画像の3次
元物体上へのマッピング計算や、照明光や観察者の視点
を考慮した3次元形状データの投影面への投影計算を行
う必要があるため、多大な計算時間が必要となり、その
度に人間の思考が中断されてしまうため、デザイン決定
がスムースに出来ないという問題点があった。
However, since these computer graphics simulation systems have to perform complicated calculations on image data, the amount of calculations becomes enormous and processing time and labor are required. To do. Therefore, when an image in which the two-dimensional image is modified or changed and mapped to the same three-dimensional shape data is obtained again, the calculation of mapping the two-dimensional image onto the three-dimensional object, the illumination light, and the observer's viewpoint are performed again. Since it is necessary to calculate the projection of the 3D shape data on the projection surface in consideration of the above, a large amount of calculation time is required, and human thinking is interrupted each time, which makes it difficult to make design decisions. There was a problem.

【0006】本発明は上記のような課題を解決するため
に成されたもので、その目的は2次元画像の修正や変更
を行った場合に、迅速に3次元画像を得ることのできる
3次元シミュレーションシステムを提供することにあ
る。
The present invention has been made to solve the above problems, and its purpose is to obtain a three-dimensional image promptly when a two-dimensional image is modified or changed. To provide a simulation system.

【0007】[0007]

【課題を解決するための手段】本発明は上記課題を解決
するためになされたものであり、請求項1記載の発明
は、2次元画像を3次元物体データにマッピングして投
影面上に投影することで3次元のシミュレーションを行
い、2次元画像の各点が投影面上のどの位置に対応する
かを表す位置対応データ及び2次元画像の各点の色が投
影面上でどのような色であらわされているかを示す色変
化データを求めておき、この位置対応データ及び色変化
データに基づいて入力された2次元画像の各点の投影面
上の位置及び色を求め立体画像を生成することを特徴と
する3次元シミュレーション方法である。
The present invention has been made to solve the above-mentioned problems, and the invention according to claim 1 projects a two-dimensional image onto three-dimensional object data and projects it onto a projection surface. By doing so, a three-dimensional simulation is performed, and the position correspondence data that indicates which position on the projection plane each point of the two-dimensional image corresponds to and the color of each point of the two-dimensional image on the projection plane. The color change data indicating whether it is represented is obtained in advance, and the position and color on the projection surface of each point of the input two-dimensional image is obtained based on the position correspondence data and the color change data to generate a stereoscopic image. It is a three-dimensional simulation method characterized by the above.

【0008】また、請求項2記載の発明は、2次元画像
を3次元物体データにマッピングし、このマッピングさ
れた3次元データを投影面上に投影することで立体画像
を生成する3次元シミュレーション装置であって、2次
元画像の各点が投影面上のどの位置に対応するかを表す
位置対応データ及び2次元画像の各点の色が投影面上で
どのような色で表されているかを示す色変化データを記
憶する対応テーブルと、入力された2次元画像に対して
前記位置対応データ及び色変化データに基づいて2次元
画像の各点の投影面上の位置及び色を求め立体画像を生
成する画像生成手段を具備することを特徴とする3次元
シミュレーション装置である。
The invention according to claim 2 is a three-dimensional simulation apparatus for mapping a two-dimensional image onto three-dimensional object data and projecting the mapped three-dimensional data onto a projection surface to generate a three-dimensional image. Then, the position correspondence data indicating which position on the projection plane each point of the two-dimensional image corresponds to, and what color the color of each point on the two-dimensional image represents on the projection plane. The correspondence table storing the color change data shown, and the position and color on the projection plane of each point of the two-dimensional image are calculated based on the position correspondence data and the color change data with respect to the input two-dimensional image. It is a three-dimensional simulation apparatus characterized by comprising an image generating means for generating.

【0009】[0009]

【作用】本発明の3次元シミュレーション方法及び装置
によれば、ラベルのデザイン等を表す2次元画像をボト
ルの形状等の3次元形状データにマッピングさせた時
に、2次元画像の各点が投影面上のどの位置に対応する
かを表す位置対応データと、2次元画像の各点の色が投
影面上でどのような色で表されているかの色変化データ
を求めて対応テーブルを予め作成しておく。2次元画像
の修正又は変更があり新たな2次元画像が作成された場
合には前記変換テーブルの位置対応データを参照して変
更又は修正された2次元画像の各点の投影面上の位置を
求め、また色変化データから2次元画像の各点がどのよ
うな色に変化するかを求める。このようにして求めた位
置及び色のデータに基づいて立体画像を生成する。
According to the three-dimensional simulation method and apparatus of the present invention, when a two-dimensional image representing a label design or the like is mapped on three-dimensional shape data such as a bottle shape, each point of the two-dimensional image is projected onto the projection plane. A correspondence table is created in advance by obtaining position correspondence data indicating which position above corresponds to and color change data indicating what color each color of the two-dimensional image is represented on the projection plane. Keep it. When the two-dimensional image is modified or changed and a new two-dimensional image is created, the position on the projection plane of each point of the changed or modified two-dimensional image is referred to by referring to the position correspondence data of the conversion table. Then, the color change data is used to determine what color each point of the two-dimensional image changes. A stereoscopic image is generated based on the position and color data thus obtained.

【0010】[0010]

【実施例】以下、本発明の一実施例について図面を参照
して詳細に説明する。図1は、本実施例による3次元シ
ミュレーションシステムの構成例を示すブロック図であ
る。図1に示すように、本実施例の3次元シミュレーシ
ョンシステムは、入力装置1と、ディスプレイ2,記憶
装置3、CPU4、ハードコピー機等の出力装置5とか
ら概略構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of a three-dimensional simulation system according to this embodiment. As shown in FIG. 1, the three-dimensional simulation system of the present embodiment is roughly configured by an input device 1, a display 2, a storage device 3, a CPU 4, and an output device 5 such as a hard copy machine.

【0011】入力装置1は、シミュレーションに用いる
2次元画像と3次元物体の形状データを入力するもので
あり、前者としては例えばフラットベットスキャナー等
の画像入力装置、後者としては3次元CADシステム等
の立体形状データの入力装置からなる。
The input device 1 is for inputting a two-dimensional image and shape data of a three-dimensional object used for simulation. The former is an image input device such as a flat bed scanner, and the latter is a three-dimensional CAD system. An input device for three-dimensional shape data.

【0012】ディスプレイ2は、ラベル等の2次元画像
を表示するとともに、2次元画像を3次元形状データに
マッピングした画像を表示するものである。記憶装置3
は、入力された2次元画像と3次元形状データ等をそれ
ぞれ記憶するとともに、シミュレーション後のデータを
記憶するものである。また、記憶装置3はシミュレーシ
ョン結果をもとに2次元画像と3次元データとの各ピク
セルの位置及び色の対応データを記憶するものである。
The display 2 displays a two-dimensional image such as a label and an image obtained by mapping the two-dimensional image into three-dimensional shape data. Storage device 3
Stores the input two-dimensional image, three-dimensional shape data and the like, and also stores the data after simulation. Further, the storage device 3 stores the correspondence data of the position and color of each pixel of the two-dimensional image and the three-dimensional data based on the simulation result.

【0013】CPU4は、テクスチュアマッピング等の
手法により2次元画像を3次元形状データにマッピング
し、レイ・トレーシング等の手法により3次元のシミュ
レーション画像を得るものである。そして、このシミュ
レーションデータを基に、2次元画像の各ピクセルが投
影面のどの位置に対応しているかを示す位置対応データ
と、2次元画像の各ピクセルの色が3次元形状データに
マッピングされ、投影面に投影されたときにどのような
色に変化したかを対応付けた色変化データとを抽出する
ものである。又、2次元画像に修正・変更等があった場
合に、前記求めた位置及び色変化データに基づいて、修
正・変更のシミュレーションを行うものである。
The CPU 4 obtains a three-dimensional simulation image by mapping a two-dimensional image into three-dimensional shape data by a texture mapping method or the like and a ray tracing method or the like. Then, based on this simulation data, position correspondence data indicating which position on the projection plane each pixel of the two-dimensional image corresponds to, and the color of each pixel of the two-dimensional image are mapped to the three-dimensional shape data, This is to extract color change data in which the color changed when projected onto the projection surface. Further, when the two-dimensional image is corrected / changed, the correction / change simulation is performed based on the obtained position and color change data.

【0014】出力手段5は上記のようにして求めたシミ
ュレーション画像を、カラーハードコピーとして出力す
るものである。
The output means 5 outputs the simulation image obtained as described above as a color hard copy.

【0015】以上のように構成した、本実施例のシミュ
レーション装置の作用について、図2に示すフローチャ
ートに基づいて説明する。まず、2次元画像を作成する
(ステップSP1)。これは、別システムで作成した画
像データを入力装置1を用いて入力するか、あるいは、
通常の2次元コンピュータグラフィックスにより、本シ
ステム内で対話的に作成してもよい。次に、過去のシミ
ュレーション結果に基づいた対象テーブルの有無を判断
(ステップSP2)、過去に対象テーブルを作成してい
ればステップSP4に進む。過去に対応テーブルを作成
しておらず、今回が初めてのシミュレーションの場合
は、対応テーブルの作成を行う(ステップSP3)
The operation of the simulation apparatus of the present embodiment configured as above will be described with reference to the flow chart shown in FIG. First, a two-dimensional image is created (step SP1). This is performed by inputting image data created by another system using the input device 1, or
It may be interactively created in the system by ordinary two-dimensional computer graphics. Next, the presence or absence of the target table is determined based on the past simulation results (step SP2), and if the target table has been created in the past, the process proceeds to step SP4. If the correspondence table has not been created in the past and this is the first simulation, the correspondence table is created (step SP3).

【0016】この対応テーブルについて説明する。先ず
2次元画像作成プログラムで作成したか、或いはスキャ
ナー等から入力した2次元画像に、図3のようにピクセ
ル(画素)単位でx及びy座標を与える。そして、2次
元画像の全てのピクセルに単一のダミー色(Rd
d 、Bd )を与えておき(例えば,(R、G、B)=
(127、127、127))このデータに対して3次
元形状データへのマッピング及びレンダリングを行う。
The correspondence table will be described. First, as shown in FIG. 3, x and y coordinates are given to a two-dimensional image created by a two-dimensional image creation program or input from a scanner or the like in pixel units. Then, a single dummy color (R d , R d ,
G d , B d ) is given (for example, (R, G, B) =
(127, 127, 127)) This data is mapped to three-dimensional shape data and rendered.

【0017】これにより、マッピングの際に座標
(x1 、y1 )で表される2次元画像のピクセルが、3
次元形状データのどの座標位置(x2 、y2 )にマッピ
ングされるのかの対応を求めておく。更に、レンダリン
グにより3次元画像の各ピクセルが図4に示す投影面の
どの座標位置(x3 、y3 )に投影されるかの対応を求
めておく。以上のデータから、2次元画像から投影面へ
の各ピクセルの位置対応(x 1 、y1 )→(x3
3 )を表す位置対応データを2次元画像の全ピクセル
分抽出しておく。
As a result, when mapping the coordinates
(X1, Y1), The pixel of the two-dimensional image is 3
Which coordinate position (x2, Y2) To Mappi
I will ask you for a response. In addition, the render
Each pixel of the 3D image is
Which coordinate position (x3, Y3).
I keep it. From the above data, from 2D image to projection plane
Position of each pixel of (x 1, Y1) → (x3,
y3) Corresponding position data to all pixels of the two-dimensional image
Extract minutes.

【0018】また、同様にレンダリングによって2次元
画像に与えたダミー色(Rd 、Gd、Bd )が、レンダ
リング後に陰影付け等によってどのような色(Ra 、G
a 、Ba )に変化したかという色変化データも求めてお
く。以上の2つような位置対応データと色変化データを
基に、図6に示すような対応テーブルを作成する。この
例では、投影平面の各座標(x3 、y3 )には2次元画
像のどの座標(x1 、y1 )が投影されたものであるか
を各欄の上段に表し、また2次元画像にダミー色(12
7、127、127)を与えた時、投影面の各座標(x
3 、y3 )ではどのような色に表されるかを下段に表し
たものである。
Similarly, what color (R a , G) the dummy colors (R d , G d , B d ) given to the two-dimensional image by rendering are shaded after rendering.
Color change data indicating whether the color has changed to a , B a ) is also obtained. A correspondence table as shown in FIG. 6 is created based on the above-described two position correspondence data and color change data. In this example, each coordinate (x 3 , y 3 ) of the projection plane indicates which coordinate (x 1 , y 1 ) of the two-dimensional image is projected in the upper part of each column, and the two-dimensional Dummy color (12
7, 127, 127), each coordinate (x
3 and y 3 ) show what kind of color they represent.

【0019】尚、対応表を作成するときには必ずしも単
一のダミー色を用いる必要はなく、各ピクセルの色がど
のように変化するめのかの対応がわかれば、個々のピク
セルで異なる色データを当てはめてもよいし、位置対応
データと色変化データはそれぞれ別のテーブルに記憶す
るようにしてもよい。
It is not always necessary to use a single dummy color when creating the correspondence table, and if it is possible to know how the color of each pixel changes, then apply different color data to each pixel. Alternatively, the position correspondence data and the color change data may be stored in separate tables.

【0020】対応テーブルが作成されると、以後2次元
画像に修正・変更があった場合はこの対応テーブルをも
とに3次元形状シミュレーションが行われることになる
(ステップSP4)。
After the correspondence table is created, if the two-dimensional image is modified or changed thereafter, the three-dimensional shape simulation is performed based on this correspondence table (step SP4).

【0021】この対応テーブルに基づいた3次元シミュ
レーションについて説明する。例えば、図4における3
次元形状データ上の(x3 、y3 )の位置の色を決定す
るには、対応テーブルから(x3 、y3 )の2次元画像
上での対応するピクセル(x1 、y1 )を求める。これ
により、3次元画像上でのピクセル(x3 、y3 )に
は、2次元画像のピクセル(x1 、y1 )が投影される
ことがわかる。また、対応テーブルから2次元画像上の
ピクセル(x1 、y1 )にダミー色を(Rd 、Gd 、B
d )を与えたときに、3次元形状データ上では何色にな
るかの色変化データ(Ra 、Ga 、Ba )も対応テーブ
ルから求めることができる。これにより、3次元画像上
でのピクセル(x3 、y3 )では2次元画像上でのダミ
ー色(Rd 、Gd 、Bd )が(Ra 、Ga 、Ba )に変
化することがわかるので、(x3 、y3 )におけるマッ
ピング後の色(R3 、G3 、B3 )は、これらの対応デ
ータから、
A three-dimensional simulation based on this correspondence table will be described. For example, 3 in FIG.
To determine the color at the position of (x 3 , y 3 ) on the three- dimensional shape data, the corresponding pixel (x 1 , y 1 ) on the two-dimensional image of (x 3 , y 3 ) is determined from the correspondence table. Ask. As a result, it can be seen that the pixel (x 1 , y 1 ) of the two-dimensional image is projected on the pixel (x 3 , y 3 ) on the three- dimensional image. Also, from the correspondence table, dummy colors (R d , G d , B) are assigned to the pixels (x 1 , y 1 ) on the two-dimensional image.
When d ) is given, the color change data (R a , G a , B a ) indicating how many colors the three-dimensional shape data will have can be obtained from the correspondence table. As a result, the dummy color (R d , G d , B d ) on the two-dimensional image changes to (R a , G a , B a ) at the pixel (x 3 , y 3 ) on the three-dimensional image. since it can be seen, (x 3, y 3) of the mapped in the color (R 3, G 3, B 3) from their corresponding data,

【0022】 R3 =R2 +(Rd −Ra ) ── (但し、R3 <0ならR3 =0 、 R3 >255なら
3 =255)
[0022] R 3 = R 2 + (R d -R a) ── ( however, R 3 = 255 if R 3 <0 if R 3 = 0, R 3> 255)

【0023】 G3 =G2 +(Gd −Ga ) ── (但し、G3 <0ならG3 =0 、 G3 >255なら
3 =255)
[0023] G 3 = G 2 + (G d -G a) ── ( However, G 3 = 255 if G 3 <0 if G 3 = 0, G 3> 255)

【0024】 B3 =B2 +(Bd −Ba ) ── (但し、B3 <0ならB3 =0 、 B3 >255なら
3 =255) により求めることができる。このようにして、レンダリ
ング後の色(R3 、G 3 、B3 )を求めることができ
る。
B3= B2+ (Bd-Ba) ── (However, B3<0 if B3= 0, B3> 255
 B3= 255). In this way, the render
Color after ringing (R3, G 3, B3) Can be asked
It

【0025】マッピングを施す全てのピクセルに対して
上記の計算を施すことで、2次元画像のマッピングされ
た3次元形状データを得ることができる。また、2次元
画像に修正・変更があった場合、即ち2次元画像のピク
セルの色データ(R2 、G2 、B2 )が(R2 ’、
2 ’、B2 ’)になった場合は、〜の式を変更す
ることにより、簡単にレンダリング後の色データを求め
ることができる。
By performing the above calculation on all the pixels to be mapped, it is possible to obtain the mapped three-dimensional shape data of the two-dimensional image. Further, when the two-dimensional image is modified or changed, that is, the color data (R 2 , G 2 , B 2 ) of the pixel of the two-dimensional image is (R 2 ',
G 2 ', B 2 '), it is possible to easily obtain the color data after rendering by changing the expression of ~.

【0026】尚、2次元画像がマッピングされない3次
元形状データ、即ちボトルのラベルが貼着されない部分
の3次元形状データについては、2次元画像が修正・変
更があってもなんら変化はないので、最初のレンダリン
グにより作成されたシミュレーションデータを記憶して
おき、変化する修正・変更により変化する部分の画像と
合成すればよい。
As for the three-dimensional shape data to which the two-dimensional image is not mapped, that is, the three-dimensional shape data of the portion where the label of the bottle is not attached, there is no change even if the two-dimensional image is corrected or changed. The simulation data created by the first rendering may be stored and may be combined with the image of the portion that changes due to the changing / changing changes.

【0027】以上のような処理を施すことで、3次元シ
ミュレーション後のデータを、複雑なマッピングやレン
ダリング計算を行うことなく、簡単に求めることができ
る。このようにして作成された3次元画像はディスプレ
イ2に表示され、オペレーターにより確認される(ステ
ップSP5)。問題がなければ、必要に応じて詳細なレ
ンダリングを行う(ステップSP6)。これは、通常の
レイトレーシングの手法により陰影や照明光の種類等を
加味したレンダリングを行うものであり、上記手法によ
るレンダリングだけではできない正確なシミュレーショ
ンを行うものである。デザインの決定段階では、短時間
に行えるステップ1からステップ5における処理により
おおまかなシミュレーションを行ってデザインを決定
し、その後ステップ6のレイトレーシング等の手法によ
りデザイン詳細についての最終確認を行うようにすると
よい。
By performing the above processing, the data after the three-dimensional simulation can be easily obtained without performing complicated mapping and rendering calculation. The three-dimensional image created in this way is displayed on the display 2 and confirmed by the operator (step SP5). If there is no problem, detailed rendering is performed as needed (step SP6). This is a rendering in which shadows, types of illumination light, and the like are added by a normal ray tracing method, and an accurate simulation that cannot be performed only by the above-described method is performed. At the design decision stage, a rough simulation is performed by the processing in steps 1 to 5 that can be performed in a short time to decide the design, and then the final confirmation of the design details is performed by a method such as ray tracing in step 6. Good.

【0028】このように、本実施例においては2次元画
像の3次元形状データへのマッピング及びレンダリング
を行った際に、2次元画像の各ピクセルが投影面のどの
ピクセルに対応するかの位置対応データと、2次元画像
の各ピクセルに指定された色がレンダリングによりどの
ような色になるかを表す色対応データを予め求めておく
ことで、2次元画像の修正・変更があった場合であって
も、複雑なマッピングやレンダリング計算を行うことな
く簡単に3次元シミュレーション画像を得ることができ
る。即ち、対応テーブルから位置対応データを読み出
し、前記〜の式に基づいて色計算を行うだけで3次
元シミュレーションを行うことができるのでハードウェ
アへの負担が少なく、計算時間を大幅に短縮することが
できる。
As described above, according to the present embodiment, when the mapping and rendering of the two-dimensional image to the three-dimensional shape data are performed, the position of each pixel of the two-dimensional image corresponds to which pixel on the projection surface. This is the case when the two-dimensional image is modified or changed by previously obtaining the data and the color correspondence data indicating what kind of color the color specified for each pixel of the two-dimensional image will be when rendered. However, it is possible to easily obtain a three-dimensional simulation image without performing complicated mapping and rendering calculation. That is, since the three-dimensional simulation can be performed only by reading the position correspondence data from the correspondence table and performing the color calculation based on the formulas (1) to (3), the load on the hardware is reduced and the calculation time can be greatly shortened. it can.

【0029】尚、本実施例のシステムには、通常のコン
ピュータグラフィックスの手法によるマッピング及びレ
ンダリングの処理を行う機能、これらの処理を行うこと
により位置対応データと色変化データを抽出し対応テー
ブルを作成する機能及びこの対応テーブルを用いた3次
元シミュレーション処理機能を持たせたものであるが、
これらは個別の装置でそれぞれ行ってもかまわない。
The system of the present embodiment has a function of performing mapping and rendering processing by a general computer graphics technique. By performing these processing, position correspondence data and color change data are extracted and a correspondence table is created. Although it has a function to create and a three-dimensional simulation processing function using this correspondence table,
These may be performed by individual devices.

【0030】例えば、マッピング及びレンダリングの処
理と対応テーブルの作成は通常のコンピュータグラフィ
ックス作成システムで行い、ここで作成された3次元画
像と対応テーブルの各データをパーソナルコンピュータ
等に持たせて、対応テーブルを用いた3次元シミュレー
ションを行うようにしてもよい。こうすることで、高価
なコンピュータグラフィックスシステムを長時間占有す
ることなく、本発明による3次元シミュレーションを得
意先等にある安価なパーソナルコンピュータで行うこと
ができる。
For example, the mapping and rendering processing and the creation of the correspondence table are carried out by an ordinary computer graphics creation system, and the three-dimensional image created here and the respective data of the correspondence table are held in a personal computer or the like to make correspondence. You may make it perform the three-dimensional simulation using a table. By doing so, the three-dimensional simulation according to the present invention can be performed by an inexpensive personal computer of a customer or the like without occupying an expensive computer graphics system for a long time.

【0031】この場合でも対応テーブルを用いた修正・
変更は、通常のコンピュータグラフィックスシステムに
よるテクスチュアマッピングやレイ・トレーシングとい
った計算に比べて、ごく簡単な計算を行えばよいので、
パーソナルコンピュータの処理能力でも十分実用的な処
理を行うことが可能である。
Even in this case, correction using the correspondence table
The change can be done by a very simple calculation compared with the calculation such as texture mapping and ray tracing by a normal computer graphics system.
It is possible to perform sufficiently practical processing even with the processing capacity of a personal computer.

【0032】[0032]

【発明の効果】以上説明したように本発明によれば、一
旦シミュレーションを行った後は、2次元画像の修正・
変更があった場合であっても迅速に3次元シミュレーシ
ョンを行うことができるという効果を有する。
As described above, according to the present invention, once the simulation is performed, the correction / correction of the two-dimensional image is performed.
Even if there is a change, there is an effect that a three-dimensional simulation can be performed quickly.

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

【図1】本発明の3次元シミュレーション装置の一実施
例のブロック図
FIG. 1 is a block diagram of an embodiment of a three-dimensional simulation apparatus of the present invention.

【図2】同実施例における作用を説明するためのフロー
FIG. 2 is a flow chart for explaining the operation in the same embodiment.

【図3】2次元画像の説明図FIG. 3 is an explanatory diagram of a two-dimensional image.

【図4】3次元形状データの説明図FIG. 4 is an explanatory diagram of three-dimensional shape data.

【図5】従来技術のマッピングとレンダリングの説明図FIG. 5 is an explanatory diagram of conventional mapping and rendering.

【図6】対応テーブルの説明図FIG. 6 is an explanatory diagram of a correspondence table.

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

1…入力装置、2…ディスプレイ、3…記憶装置、4…
CPU、5…出力装置
1 ... Input device, 2 ... Display, 3 ... Storage device, 4 ...
CPU, 5 ... Output device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】2次元画像を3次元物体データにマッピン
グして投影面上に投影することで3次元のシミュレーシ
ョンを行い、2次元画像の各点が投影面上のどの位置に
対応するかを表す位置対応データ及び2次元画像の各点
の色が投影面上でどのような色であらわされているかを
示す色変化データを求めておき、 この位置対応データ及び色変化データに基づいて入力さ
れた2次元画像の各点の投影面上の位置及び色を求め立
体画像を生成することを特徴とする3次元シミュレーシ
ョン方法。
1. A three-dimensional simulation is performed by mapping a two-dimensional image onto three-dimensional object data and projecting it onto a projection surface to determine which position on the projection surface each point of the two-dimensional image corresponds to. The position corresponding data and the color change data indicating how the color of each point of the two-dimensional image is represented on the projection surface are obtained, and are input based on the position corresponding data and the color change data. A three-dimensional simulation method characterized by obtaining the position and color of each point of the two-dimensional image on the projection surface and generating a three-dimensional image.
【請求項2】2次元画像を3次元物体データにマッピン
グし、このマッピングされた3次元データを投影面上に
投影することで立体画像を生成する3次元シミュレーシ
ョン装置であって、 2次元画像の各点が投影面上のどの位置に対応するかを
表す位置対応データ及び2次元画像の各点の色が投影面
上でどのような色で表されているかを示す色変化データ
を記憶する対応テーブルと、 入力された2次元画像に対して前記位置対応データ及び
色変化データに基づいて2次元画像の各点の投影面上の
位置及び色を求め立体画像を生成する画像生成手段を具
備することを特徴とする3次元シミュレーション装置。
2. A three-dimensional simulation apparatus for generating a three-dimensional image by mapping a two-dimensional image onto three-dimensional object data and projecting the mapped three-dimensional data onto a projection surface. Correspondence storing the position correspondence data indicating which position each point corresponds to on the projection surface and the color change data indicating what color each color of the two-dimensional image represents on the projection surface. A table and image generation means for generating a stereoscopic image by calculating the position and color of each point of the two-dimensional image on the projection surface based on the position correspondence data and the color change data for the input two-dimensional image. A three-dimensional simulation device characterized by the above.
JP1735393A 1993-02-04 1993-02-04 Method and device for three-dimensional simulation Pending JPH06231274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1735393A JPH06231274A (en) 1993-02-04 1993-02-04 Method and device for three-dimensional simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1735393A JPH06231274A (en) 1993-02-04 1993-02-04 Method and device for three-dimensional simulation

Publications (1)

Publication Number Publication Date
JPH06231274A true JPH06231274A (en) 1994-08-19

Family

ID=11941688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1735393A Pending JPH06231274A (en) 1993-02-04 1993-02-04 Method and device for three-dimensional simulation

Country Status (1)

Country Link
JP (1) JPH06231274A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006323450A (en) * 2005-05-17 2006-11-30 Toppan Printing Co Ltd Simulation image generator, simulation image generation method, computation program, and recording medium recorded with program
JP2019016091A (en) * 2017-07-05 2019-01-31 富士ゼロックス株式会社 Image composition device and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006323450A (en) * 2005-05-17 2006-11-30 Toppan Printing Co Ltd Simulation image generator, simulation image generation method, computation program, and recording medium recorded with program
JP2019016091A (en) * 2017-07-05 2019-01-31 富士ゼロックス株式会社 Image composition device and program

Similar Documents

Publication Publication Date Title
JP5299173B2 (en) Image processing apparatus, image processing method, and program
JPH0757117A (en) Forming method of index to texture map and computer control display system
CN112530005B (en) Three-dimensional model linear structure recognition and automatic restoration method
JP2023553507A (en) System and method for obtaining high quality rendered display of synthetic data display of custom specification products
JPH09330423A (en) Three-dimensional shape data transforming device
RU2295772C1 (en) Method for generation of texture in real time scale and device for its realization
US5793372A (en) Methods and apparatus for rapidly rendering photo-realistic surfaces on 3-dimensional wire frames automatically using user defined points
JP2832463B2 (en) 3D model reconstruction method and display method
JP3268666B2 (en) Computer graphics production equipment
JPH08297751A (en) Method and device for three-dimensional model generation
JPH06231274A (en) Method and device for three-dimensional simulation
US5821942A (en) Ray tracing through an ordered array
EP3779878A1 (en) Method and device for combining a texture with an artificial object
JP2000331175A (en) Method and device for generating border line generating data, recording system, computer readable execution medium stored with data and entertainment system for adding outline to object according to data
JP3268665B2 (en) Computer graphics production equipment
JP3261832B2 (en) Image generation device
CA2282240C (en) System and computer-implemented method for modeling the three-dimensional shape of an object by shading of a two-dimensional image of the object
JP2000057372A (en) Image processor, image processing method and storage medium
JPH06176168A (en) Computer graphics preparing device
JPH09114994A (en) Device and method for forming image
JPH0773342A (en) Image generator
JP3071495B2 (en) Object model editing device
JPH08123978A (en) Three-dimensional image processing system
JP3005389B2 (en) Polygon 3D display system
JPH06266328A (en) Display method for three-dimensional position