Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3370251B2 - 3D cityscape arrangement device - Google Patents
[go: Go Back, main page]

JP3370251B2 - 3D cityscape arrangement device - Google Patents

3D cityscape arrangement device

Info

Publication number
JP3370251B2
JP3370251B2 JP01616697A JP1616697A JP3370251B2 JP 3370251 B2 JP3370251 B2 JP 3370251B2 JP 01616697 A JP01616697 A JP 01616697A JP 1616697 A JP1616697 A JP 1616697A JP 3370251 B2 JP3370251 B2 JP 3370251B2
Authority
JP
Japan
Prior art keywords
dimensional
parts
mesh
arranging
mode
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 - Fee Related
Application number
JP01616697A
Other languages
Japanese (ja)
Other versions
JPH10214355A (en
Inventor
和美 柴田
武志 松野
基樹 松浦
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP01616697A priority Critical patent/JP3370251B2/en
Publication of JPH10214355A publication Critical patent/JPH10214355A/en
Application granted granted Critical
Publication of JP3370251B2 publication Critical patent/JP3370251B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、3次元部品を図面
上の仮想都市に配置する3次元街並配置装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a three-dimensional cityscape arrangement device for arranging three-dimensional parts in a virtual city on a drawing.

【0002】[0002]

【従来の技術】従来、3次元CGオーサリングツールと
呼ばれるツールを用いて3次元形状の仮想都市を作成す
る場合、以下の手続を行うのが通常である。 (1) 外部ファイル(VRMLファイル、DXFファ
イルなど)や部品ライブラリから3次元形状を表示装置
内に取り込む。 (2) (1)で取り込んだ3次元形状を、移動、回
転、拡縮などの操作を行い、所定の位置に配置する。 (3) (1)と(2)を繰り返し、順次3次元形状を
配置する。
2. Description of the Related Art Conventionally, when a three-dimensional virtual city is created using a tool called a three-dimensional CG authoring tool, the following procedure is usually performed. (1) Import a three-dimensional shape into the display device from an external file (VRML file, DXF file, etc.) or a parts library. (2) The three-dimensional shape captured in (1) is moved, rotated, expanded, or reduced to be placed at a predetermined position. (3) Repeating (1) and (2), three-dimensional shapes are sequentially arranged.

【0003】[0003]

【発明が解決しようとする課題】従来は上述した(1)
ないし(3)の手順を繰り返し仮想都市に街並、家、イ
ンテリアなどを順次配置していたため、取り込んだ3次
元形状の表示装置内におけるサイズと表示位置を、その
3次元形状自身が持つサイズと位置と異なることが通常
であり、個々の3次元形状単位でのサイズ変更や配置位
置変更が必要となってしまい、作成する3次元仮想都市
が大きくなるに従い、これら操作に非常に手間のかかる
作業が必要となってしまうという問題があった。
Conventionally, the above-mentioned (1)
Since the steps from (3) to (3) are repeated and the streets, houses, interiors, etc. are sequentially arranged in the virtual city, the size and display position of the captured three-dimensional shape in the display device are compared with the size of the three-dimensional shape itself. It is usually different from the position, and it is necessary to change the size and arrangement position for each 3D shape unit, and as the 3D virtual city to be created grows, these operations are extremely troublesome. There was a problem that was needed.

【0004】本発明は、これらの問題を解決するため、
3次元形状を可視化し、表示装置内のメッシュにドラッ
グ&ドロップして当該メッシュ内に納まるように自動的
に拡縮および配置などして表示し、3次元形状を仮想都
市に簡易に配置して迅速な作成を可能にすることを目的
としている。
The present invention solves these problems.
Visualize the 3D shape, drag and drop it on the mesh in the display device, and automatically display it by scaling and arranging it so that it fits in the mesh, and quickly place the 3D shape in the virtual city. The purpose is to enable easy creation.

【0005】[0005]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、表示手段
4は、作成中の図面を表示したり、3次元部品一覧を表
示したりなどするものである。
[Means for Solving the Problems] Means for solving the problems will be described with reference to FIG. In FIG. 1, the display unit 4 displays a drawing being created, a three-dimensional parts list, and the like.

【0006】指示手段5は、3次元部品一覧の中の部品
を指示したり、図面上に表示されるメッシュを指示した
りなどするものである。拡縮手段6は、指示された3次
元部品の定義データとメッシュのサイズに基づき、3次
元部品がメッシュに納まるように3次元部品を拡縮した
りなどするものである。
The instructing means 5 is for instructing the parts in the three-dimensional parts list and for instructing the mesh displayed on the drawing. The scaling unit 6 scales the three-dimensional part so that the three-dimensional part fits in the mesh based on the instructed definition data of the three-dimensional part and the size of the mesh.

【0007】配置手段7は、3次元部品を指示されたメ
ッシュなどにに配置したりするものである。次に、動作
を説明する。
The arranging means 7 is for arranging the three-dimensional parts on a designated mesh or the like. Next, the operation will be described.

【0008】表示手段4が作成中の図面を表示および3
次元部品一覧を表示し、指示手段5がこの表示された3
次元部品一覧の中の部品と図面上に表示されたメッシュ
を指示すると、拡縮手段6が指示された3次元部品の定
義データとメッシュのサイズに基づき、3次元部品がメ
ッシュに納まるように3次元部品を拡縮し、配置手段7
が拡縮後の3次元部品を指示されたメッシュに配置して
表示させるようにしている。
The display means 4 displays the drawing being prepared and 3
The three-dimensional parts list is displayed, and the instructing means 5 displays this 3
When the parts in the three-dimensional parts list and the mesh displayed on the drawing are designated, the scaling means 6 makes the three-dimensional parts fit in the mesh based on the definition data of the designated three-dimensional parts and the mesh size. Parts are expanded / contracted and arranged 7
Arranges and displays the scaled three-dimensional part on the specified mesh.

【0009】これらの際に、配置された複数の部品ある
いは外部ファイルから読み込まれた部品を、1つの部品
として3次元部品一覧に追加するようにしている。ま
た、配置手段7が指示された部品を基底平面上に配置し
て表示させるようにしている。
In these cases, a plurality of arranged parts or parts read from an external file are added to the three-dimensional part list as one part. Further, the arranging means 7 arranges and displays the designated component on the base plane.

【0010】また、配置手段7が指示された部品を既に
配置されている部品上に重なるように配置して表示させ
るようにしている。また、作成中の図面を表示および3
次元部品一覧を表示する表示手段4と、3次元部品一覧
の中の部品と図面上に表示されたメッシュを指示する指
示手段5と、指示された3次元部品の定義データとメッ
シュのサイズに基づき、3次元部品がメッシュに納まる
ように3次元部品を拡縮する拡縮手段6と、拡縮後の3
次元部品を指示されたメッシュに配置して表示する配置
手段7との機能を実行するプログラムを記憶媒体に格納
し、販売などするようにしている。
Further, the arranging means 7 arranges and displays the instructed component so as to overlap the already disposed component. Also, display the drawing being created and 3
Based on the display means 4 for displaying the three-dimensional parts list, the instructing means 5 for instructing the parts in the three-dimensional parts list and the mesh displayed on the drawing, and the definition data of the instructed three-dimensional parts and the size of the mesh. Expansion / contraction means 6 for expanding / contracting the three-dimensional part so that the three-dimensional part fits in the mesh, and 3 after the expansion / contraction.
A program for executing the function of the arranging means 7 for arranging and displaying the three-dimensional parts on the designated mesh is stored in the storage medium for sale.

【0011】従って、3次元形状を可視化し、表示装置
内のメッシュにドラッグ・ドロップしてメッシュ内に納
まるように自動的に拡縮および配置などして表示するこ
とにより、3次元形状を仮想都市に簡易に配置して迅速
に作成することが可能となる。
Therefore, the three-dimensional shape is visualized, and the three-dimensional shape is displayed on the mesh in the display device by automatically scaling and arranging it so that the mesh fits in the mesh and displaying it. It is possible to arrange easily and create quickly.

【0012】[0012]

【発明の実施の形態】次に、図1から図9を用いて本発
明の実施の形態および動作を順次詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Next, embodiments and operations of the present invention will be sequentially described in detail with reference to FIGS.

【0013】図1は、本発明のシステム構成図を示す。
図1において、計算機1は、外部記憶装置11からプロ
グラムおよびデータをメモリ3上に格納して各種処理を
行うものであって、CPU2およびメモリ3などから構
成されるものである。
FIG. 1 shows a system configuration diagram of the present invention.
In FIG. 1, a computer 1 stores a program and data from an external storage device 11 in a memory 3 to perform various processes, and includes a CPU 2 and a memory 3.

【0014】CPU2は、外部記憶装置11からプログ
ラムおよびデータをメモリ3上に格納して各種処理を実
行するものである。メモリ3は、プログラムやデータを
格納するものであって、ここでは、その格納したプログ
ラムの実行によって各種手段(表示手段4、指示手段
5、拡縮手段5、および配置手段6)として機能させる
ためのものである。
The CPU 2 stores programs and data from the external storage device 11 on the memory 3 and executes various processes. The memory 3 stores programs and data. Here, the memory 3 is caused to function as various means (display means 4, instruction means 5, expansion / contraction means 5, and arrangement means 6) by executing the stored programs. It is a thing.

【0015】表示手段4は、作成中の図面を表示装置8
の画面上に表示したり、3次元部品一覧を表示装置8の
画面上に表示したりなどするものである。指示手段5
は、表示装置8の画面上の3次元部品一覧の中の部品と
図面上に表示されたメッシュを指示したりなどするもの
である。
The display means 4 displays the drawing being prepared on the display device 8.
, Or a three-dimensional parts list on the screen of the display device 8. Pointing means 5
Is for designating the parts in the list of three-dimensional parts on the screen of the display device 8 and the mesh displayed on the drawing.

【0016】拡縮手段6は、表示装置8の画面上で指示
された3次元部品の定義データとメッシュのサイズに基
づき、3次元部品がメッシュに納まるように3次元部品
を拡縮したりなどするものである。
The scaling means 6 scales the three-dimensional part so that the three-dimensional part fits in the mesh based on the definition data of the three-dimensional part and the mesh size designated on the screen of the display device 8. Is.

【0017】配置手段7は、表示装置8の画面上で3次
元部品を指示されたメッシュなどにに配置したりするも
のである。表示装置8は、画面上に図面、3次元部品一
覧、メッシュなどを表示するものである。
The arranging means 7 is for arranging the three-dimensional parts on the specified mesh or the like on the screen of the display device 8. The display device 8 displays a drawing, a three-dimensional part list, a mesh, etc. on the screen.

【0018】入力装置9は、各種入力を行うものであ
る。外部記憶装置10は、部品ライブラリを格納するも
のである。外部記憶装置11は、表示手段4、指示手段
5、拡縮手段6、および配置手段7として機能するプロ
グラムやデータを格納するものである。この外部記憶装
置11に格納されたプログラムやデータは、図示外の記
憶媒体(FD、MD、CD−Rなど)に格納して販売な
どするようにしている。
The input device 9 is for performing various inputs. The external storage device 10 stores a parts library. The external storage device 11 stores programs and data that function as the display unit 4, the instruction unit 5, the expansion / contraction unit 6, and the arrangement unit 7. The programs and data stored in the external storage device 11 are stored in a storage medium (FD, MD, CD-R, etc.) not shown for sale.

【0019】次に、図2のフローチャートに示す順序に
従い、図1の構成の動作を詳細に説明する。図2におい
て、S1は、仮想都市の新規作成・メッシュサイズ決定
を行う。これらは、例えば図5の画面に示すように仮想
都市の新規作成を選択して表示させ、その中央に表示さ
れたウィンドウ上でメッシュサイズとして、ここでは
“City Mode”を選択し、後述する図7に示す
ように当該選択した“CityMode(街)”に対応
するメッシュサイズとして“20”と決定する。尚、
“House Mode”を選択すると、メッシュサイ
ズとして“1”と決定する。
Next, the operation of the configuration of FIG. 1 will be described in detail in the order shown in the flowchart of FIG. In FIG. 2, S1 is to create a new virtual city and determine the mesh size. For example, as shown in the screen of FIG. 5, a new virtual city is selected and displayed, and a mesh size is selected on the window displayed in the center of the virtual city. As shown in 7, the mesh size corresponding to the selected "CityMode" is determined to be "20". still,
When "House Mode" is selected, "1" is determined as the mesh size.

【0020】S2は、表示装置の仮想都市をクリアす
る。S1で表示させた図5の仮想都市を作成しようとす
る部分(ウィンドウ)をクリアする。S3は、メッシュ
配列を表示するか判別する。これは、メッシュ配列を表
示するモードが選択されているか判別する。YESの場
合には、S4でメッシュ配列を表示、例えば後述する図
6に示すように画面上にメッシュ配列を3次元的に表示
し(ここでは、メッシュサイズは、S1で決定したメッ
シュサイズをそれぞれ持つものである)、S5に進む。
一方、S3のNOの場合には、S5に進む。
In step S2, the virtual city on the display device is cleared. The portion (window) for creating the virtual city of FIG. 5 displayed in S1 is cleared. A step S3 decides whether or not to display the mesh array. This determines whether the mode for displaying the mesh array is selected. In the case of YES, the mesh array is displayed in S4, for example, the mesh array is three-dimensionally displayed on the screen as shown in FIG. 6 described later (here, the mesh size is the mesh size determined in S1. I have it), and proceed to S5.
On the other hand, if NO in S3, the process proceeds to S5.

【0021】S5は、部品ライブラリから3次元形状を
ドラッグ&ドロップする。これは、後述する図6の左側
の3次元部品一覧上からマウスで配置しようとする3次
元形状をドラッグして画面上の所望の位置まで移動させ
た後、ドロップする。
In step S5, a three-dimensional shape is dragged and dropped from the parts library. This is done by dragging a three-dimensional shape to be arranged with a mouse from a three-dimensional part list on the left side of FIG. 6 described later to move it to a desired position on the screen and then dropping it.

【0022】S6は、メッシュ配列が表示されているか
判別する。YESの場合には、S7でドロップされたメ
ッシュ内におさまるように拡縮して表示する(図3を用
いて後述する)。一方、NOの場合には、ドロップ先の
3次元形状に積み重ねて表示する(図4を用いて後述す
る)。
In step S6, it is determined whether the mesh array is displayed. In the case of YES, the image is enlarged / reduced so as to fit within the mesh dropped in S7 (described later with reference to FIG. 3). On the other hand, in the case of NO, the three-dimensional shapes of the drop destinations are stacked and displayed (described later with reference to FIG. 4).

【0023】S9は、部品ライブラリへ登録するか判別
する。YESの場合(部品ライブライに登録すると指示
された場合)には、部品ライブラリへの登録を行い、S
11に進む。一方、NOの場合(部品ライブラリに登録
すると指示されなかった場合)には、S11に進む。
In step S9, it is determined whether to register the component library. If YES (instructed to register in the parts library), register in the parts library and
Proceed to 11. On the other hand, in the case of NO (when it is not instructed to register in the parts library), the process proceeds to S11.

【0024】S11は、仮想都市の作成を終了する指示
があったか判別する。YESの場合には、終了する。N
Oの場合には、S1、S3、あるいはS5の該当する手
順に戻り、繰り返す。
In step S11, it is determined whether or not there is an instruction to end the creation of the virtual city. If YES, then end. N
In the case of O, the procedure returns to the corresponding step of S1, S3, or S5 and is repeated.

【0025】以上によって、画面上に部品ライブラリか
ら3次元形状一覧を表示してドラッグ&ドロップされた
ことに対応して、ドロップされたメッシュ内に3次元形
状を拡縮して配置して表示したり、ドロップされた位置
に積み重ねて配置して表示したりすることを繰り返し、
仮想都市を簡易かつ迅速に作成することが可能となる。
As described above, in response to displaying a list of three-dimensional shapes from the parts library on the screen and dragging and dropping, a three-dimensional shape is enlarged and reduced and arranged in the dropped mesh. , Stacking and displaying at the dropped position,
It is possible to easily and quickly create a virtual city.

【0026】図3は、本発明の詳細説明フローチャート
(その1)を示す。この図3は、図2のS7のメッシュ
内に3次元形状を拡縮して配置するときの詳細フローチ
ャートである。
FIG. 3 shows a detailed explanation flowchart (1) of the present invention. FIG. 3 is a detailed flowchart when the three-dimensional shape is enlarged and reduced and arranged in the mesh in S7 of FIG.

【0027】図3において、S21は、部品をメッシュ
内にドラッグ&ドロップする。これは、例えば図6の左
側の3次元形状の部品一覧上から部品をドラッグしてメ
ッシュ上の表示しようとする位置に移動してドロップす
る。
In FIG. 3, in S21, a component is dragged and dropped into the mesh. This is done by, for example, dragging a component from the three-dimensional component list on the left side of FIG. 6 to move it to a position to be displayed on the mesh and drop it.

【0028】S22は、部品のVRMLファイルの読み
出しを行う。これは、S21でドラッグ&ドロップした
部品のVRMLファイルを、例えば図9の(c)のVR
MLファイルとして外部記憶装置から読み出す。
In step S22, the VRML file of the component is read. This is because the VRML file of the component dragged and dropped in S21 is, for example, the VR file in (c) of FIG.
It is read from the external storage device as an ML file.

【0029】S23は、VRMLファイル内の3次元形
状のバウンディングボックスを求める。これは、S22
で読み出したVRMLファイル内の3次元形状のバウン
ディングボックスとして、例えば図8の(a)に示す3
角形状が部品の3次元形状とした場合、当該部品である
3角形状について内接する矩形の最小値、最大値を図示
のようにすると、当該部品である3角形状のバウンディ
ングボックスとして図8の(b)に示す下記のように求
める。
In step S23, the bounding box of the three-dimensional shape in the VRML file is obtained. This is S22
As the three-dimensional shape bounding box in the VRML file read in step 3, for example, 3 shown in (a) of FIG.
When the rectangular shape is the three-dimensional shape of the part, if the minimum and maximum values of the inscribed rectangle of the triangular shape that is the part are set as shown in the figure, the bounding box of the triangular shape that is the part is shown in FIG. It is calculated as shown in (b) below.

【0030】・バウンディングボックス X(Xmin、Xmax) Y(Ymin、Ymax) Z(Zmin、Zmax) S24は、配置基準となる中心点とサイズを求める。こ
れは、S23で求めたバウンディングボックスをもと
に、配置基準となる中心点とサイズとして、例えば図8
の(c)に示すように中心点を求める。ここで、図8の
(c)の場合は、XZ平面でメッシュを作成した場合で
あって、中心点の座標は X=Xmin+(Xmax−Xmin)/2=2 Y=Ymin =0 Z=Zmin+(Zmax−Zmin)/2=2 となる(ここで、Xmin=Ymin=1、Xmax=
Ymax=3としたときに右端のような数値となる)。
Bounding box X (Xmin, Xmax) Y (Ymin, Ymax) Z (Zmin, Zmax) S24 finds the center point and size that are the placement reference. This is based on the bounding box obtained in S23 as the center point and size as the arrangement reference, for example, as shown in FIG.
The center point is obtained as shown in (c). Here, in the case of FIG. 8C, the mesh is created on the XZ plane, and the coordinates of the center point are X = Xmin + (Xmax−Xmin) / 2 = 2 Y = Ymin = 0 Z = Zmin + (Zmax-Zmin) / 2 = 2 (where Xmin = Ymin = 1 and Xmax =
When Ymax = 3, the value is at the right end).

【0031】S25は、メッシュの中心を求める。これ
は、S21で部品をドラッグ&ドロップしたメッシュの
中心を求める。S26は、部品のサイズがメッシュサイ
ズに一致するように拡大/縮小する。これは、既述した
図2のS1で決定したメッシュサイズになるように、部
品のサイズを拡縮する。
In step S25, the center of the mesh is obtained. This obtains the center of the mesh to which the part is dragged and dropped in S21. In S26, the size of the part is enlarged / reduced so as to match the mesh size. This enlarges or reduces the size of the component so that the mesh size determined in S1 of FIG.

【0032】S27は、部品の中心点とメッシュの中心
点を合わせる。S28は、メッシュ内に表示する。これ
らS27、S28により、S21でドラッグ&ドロップ
したメッシュ内に丁度内接するように部品が拡縮されて
表示されることとなる(例えば図6の家のようにメッシ
ュ内に拡縮して丁度納まるように表示されることとな
る)。
In step S27, the center point of the part is aligned with the center point of the mesh. S28 is displayed in the mesh. With these steps S27 and S28, the parts are scaled up and down so that they are just inscribed in the mesh dragged and dropped in step S21 (for example, as in the house shown in FIG. Will be displayed).

【0033】以上によって、例えば図6の左端の部品
“家”をドラッグして中央のメッシュのうちの家が表示
されている部分に移動させてドロップすると、S22な
いしS28の手順によって、図9の(c)の部品のVR
MLファイルを読み出し、このVRMLファイル中の部
品の形状データからバウンディングボックスを図8の
(a)、(b)に示すように求め、これから図8の
(c)に示すように部品の中心位置を求めると共にメッ
シュサイズに一致するように部品の3次元形状の拡縮を
行い、ドロップされたメッシュの中心位置と当該部品の
3次元形状の中心位置とを合わせ、メッシュ内に丁度納
まるように部品の拡縮した後の3次元形状を表示する。
これらにより、仮想都市の作成者は、図6の左端の部品
一覧から所望の部品をドラッグして所望のメッシュ上で
ドロップするという簡単な操作のみで、自動的に選択し
た部品の3次元形状を拡縮してメッシュ内に丁度納まる
ようにして配置し表示することが可能となり、迅速に仮
想都市を画面上で容易に作成できる。
As described above, if, for example, the leftmost part "house" in FIG. 6 is dragged and moved to the part of the center mesh where the house is displayed and dropped, the steps in S22 to S28 are followed. VR of part (c)
The ML file is read, the bounding box is obtained from the shape data of the part in this VRML file as shown in FIGS. 8 (a) and 8 (b), and the center position of the part is determined as shown in FIG. 8 (c). Obtain and scale the 3D shape of the part so that it matches the mesh size, match the center position of the dropped mesh with the center position of the 3D shape of the part, and scale the part so that it fits exactly within the mesh. The three-dimensional shape after the display is displayed.
With these, the creator of the virtual city can automatically change the three-dimensional shape of the selected part by a simple operation of dragging the desired part from the parts list on the left end of FIG. 6 and dropping it on the desired mesh. It is possible to expand and reduce and arrange and display it so that it fits exactly in the mesh, and it is possible to quickly and easily create a virtual city on the screen.

【0034】図4は、本発明の詳細説明フローチャート
(その2)を示す。この図4は、図2のS8のドロップ
先の3次元形状に積み重ねて配置して表示するときの詳
細フローチャートである。
FIG. 4 shows a detailed explanation flow chart (No. 2) of the present invention. FIG. 4 is a detailed flowchart for stacking and displaying the three-dimensional shape of the drop destination in S8 of FIG. 2 for display.

【0035】図4において、S31ないしS34は、図
3のS21ないしS24と同一であるので説明を省略す
る。S35は、ドラッグ&ドロップされた3次元形状の
最上面の中心点を求める。これは、メッシュが画面上に
表示されていないので、部品を3次元形状上にドラッグ
&ドロップした3次元形状の最上面の中心点を求める。
In FIG. 4, S31 to S34 are the same as S21 to S24 in FIG. In S35, the center point of the uppermost surface of the dragged and dropped three-dimensional shape is obtained. In this case, since the mesh is not displayed on the screen, the center point of the uppermost surface of the three-dimensional shape obtained by dragging and dropping the part onto the three-dimensional shape is obtained.

【0036】S36は、部品の中心点とメッシュの中心
点を合わせる。S37は、最上面に重ねて表示する。こ
れらS36、S37により、S31でドラッグ&ドロッ
プした3次元形状の最上面の中心点と一致するように部
品の中心点を一致させて表示することとなる。
In step S36, the center point of the part and the center point of the mesh are matched. In S37, the display is overlaid on the top surface. By S36 and S37, the center points of the parts are displayed so as to match the center points of the uppermost surface of the three-dimensional shape dragged and dropped in S31.

【0037】以上によって、画面の左端の部品をドラッ
グして中央に表示されている所望の3次元形状に移動し
てドロップすると、S32ないしS37の手順によっ
て、図9の(c)の部品のVRMLファイルを読み出
し、このVRMLファイル中の部品の形状データからバ
ウンディングボックスを図8の(a)、(b)に示すよ
うに求め、これから図8の(c)に示すように部品の中
心位置を求め、ドロップされたメッシュの中心位置と当
該部品の3次元形状の中心位置とを合わせ、積み重ねて
表示する。これらにより、仮想都市の作成者は、画面の
左端の部品一覧から所望の部品をドラッグして所望の3
次元形状上でドロップするという簡単な操作のみで、自
動的に選択した部品の中心点をドロップした3次元形状
の最上面の中心点に自動的に一致させて積み重ねて配置
し表示することが可能となり、迅速に仮想都市を画面上
で容易に作成できる。
As described above, when the component on the left end of the screen is dragged and moved to the desired three-dimensional shape displayed in the center and dropped, the VRML of the component shown in FIG. 9C is carried out by the steps S32 to S37. The file is read out, the bounding box is obtained from the shape data of the part in this VRML file as shown in FIGS. 8A and 8B, and the center position of the part is obtained from this as shown in FIG. 8C. , The center position of the dropped mesh and the center position of the three-dimensional shape of the part are aligned and displayed in a stack. With these, the creator of the virtual city drags a desired component from the component list on the left end of the screen to select the desired component.
With the simple operation of dropping on the three-dimensional shape, the center point of the automatically selected parts can be automatically aligned with the center point of the top surface of the dropped three-dimensional shape and displayed by stacking. Then, you can quickly and easily create a virtual city on the screen.

【0038】図5は、本発明の画面例(その1)を示
す。図5において、初期設定画面は、モードを設定た
り、背景色を設定(画面は実際の画面とは白黒が反転さ
れている)したりなどするものである。ここでは、モー
ドとして、 ●City Mode ○House Mode ○Interia Mode とし、“City Mode”が設定され、メッシュサ
イズが“20”と設定される(House Modeの
ときはメッシュサイズ“1”、InteriaMode
のときはメッシュサイズは“0.2”と設定される)
(図7参照)。
FIG. 5 shows a screen example (1) of the present invention. In FIG. 5, the initial setting screen is used to set the mode and the background color (black and white are reversed from the actual screen). Here, the mode is set as: ● City Mode ○ House Mode ○ Interior Mode, “City Mode” is set, and the mesh size is set as “20” (in House Mode, mesh size “1”, Interior Mode).
, The mesh size is set to "0.2")
(See Figure 7).

【0039】部品一覧は、画面上にドラッグ&ドロップ
する部品一覧を表示したものである。画面は、部品一覧
から部品をドラッグ&ドロップして配置し表示する画面
(仮想都市を表示する画面)である。
The parts list is a list of parts to be dragged and dropped on the screen. The screen is a screen for displaying and arranging and displaying the parts by dragging and dropping them from the parts list (screen for displaying the virtual city).

【0040】図6は、本発明の画面例(その2)を示
す。図6において、部品一覧は、画面上にドラッグ&ド
ロップする部品の一覧を表示するものであって、ここで
は、異なる家の部品をそれぞれ(3個)表示したもので
ある。
FIG. 6 shows a screen example (2) of the present invention. In FIG. 6, the parts list displays a list of parts to be dragged and dropped on the screen, and here, parts (3 pieces) of different houses are displayed.

【0041】画面は、メッシュを表示してその中に部品
(家)を2つ表示した後の状態を示す。この家の手前に
は3メッシュ分の道路が既にドラッグ&ドロップされて
配置され表示されている。
The screen shows a state after the mesh is displayed and two parts (houses) are displayed therein. In front of this house, roads for 3 meshes have already been dragged and dropped and arranged.

【0042】図7は、本発明のモード・メッシュサイズ
対応関係テーブル例を示す。これは、図5の初期設定画
面上でモード選択したときのメッシュサイズを予め定義
したものであり、図示の下記の通りとなる。
FIG. 7 shows an example of the mode / mesh size correspondence table of the present invention. This is a predefined mesh size when the mode is selected on the initial setting screen of FIG. 5, and is as shown in the figure below.

【0043】 モード メッシュサイズ ・街(City Mode) 20 ・家(House Mode) 1 ・インテリア(Interior Mode) 0.2 図8は、本発明の説明図(その1)を示す。これは、部
品のサイズ、バウンディングボックス、中心位置につい
て説明したものである。
Mode Mesh Size-City Mode 20-House Mode 1-Interior Mode 0.2 FIG. 8 is an explanatory diagram (1) of the present invention. This describes the size of the part, the bounding box, and the center position.

【0044】図8の(a)は、部品の形状例を示す。こ
こでは、部品がXZ平面(Y=0)にのみあるとした場
合の3次元形状を模式的に表したものであって、 ・X方向の最小値Xmin、最大値Xmax ・Y方向の最小値Ymin、最大値Ymax ・Z方向の最小値Zmin、最大値Zmax とする。
FIG. 8A shows an example of the shape of parts. Here, it is a schematic representation of a three-dimensional shape in the case where a component exists only on the XZ plane (Y = 0), and is: a minimum value Xmin in the X direction, a maximum value Xmax, and a minimum value in the Y direction. Ymin, maximum value Ymax-Minimum value Zmin and maximum value Zmax in the Z direction.

【0045】図8の(b)は、バウンディングボックス
を示す。バウンディングボックスは、図8の(a)のよ
うに部品の3次元形状を表すと図示の下記のように表せ
る。 X(Xmin、Xmax) Y(Ymin、Ymax) Z(Zmin、Zmax) 図8の(c)は、中心点(X、Y、Z)の例を示す。こ
こで、XZ平面でメッシュ作成した場合(Y=0の場
合)には、中心点は図示の下記の通りとなる。
FIG. 8B shows a bounding box. The bounding box can be represented as shown below when the three-dimensional shape of the part is represented as shown in FIG. X (Xmin, Xmax) Y (Ymin, Ymax) Z (Zmin, Zmax) FIG. 8C shows an example of the center point (X, Y, Z). Here, when a mesh is created on the XZ plane (when Y = 0), the center point is as shown in the figure below.

【0046】 X=Xmin+(Xmax−Xmin)/2=2 Y=Ymin =0 Z=Zmin+(Zmax−Zmin)/2=2 ここで、右端の数値は、図8の(a)に示すように、 Xmin=Zmin=1 Xmax=Zmax=3 Y=0 としたときの値である。[0046] X = Xmin + (Xmax-Xmin) / 2 = 2 Y = Ymin = 0 Z = Zmin + (Zmax-Zmin) / 2 = 2 Here, the numerical value at the right end is, as shown in (a) of FIG. Xmin = Zmin = 1 Xmax = Zmax = 3 Y = 0 Is the value when.

【0047】図9は、本発明のVRMLデータの説明図
を示す。図9の(a)は、VRMLデータをツリー構造
で管理する様子を示す。ここで、ルートノードの下位
に、道路データ、家データ1、家データ2などがあり、
ここではグループノード(図9の(b)参照)に対応す
るものである。各道路データには、実際の道路のデータ
(3次元形状のデータ)がある。また、家データ1に
は、屋根、窓、ドアの3つのデータ(3次元形状のデー
タ)から構成される。
FIG. 9 shows an explanatory diagram of VRML data of the present invention. FIG. 9A shows how the VRML data is managed in a tree structure. Here, there are road data, house data 1, house data 2, etc. under the root node,
Here, it corresponds to the group node (see FIG. 9B). Each road data includes actual road data (three-dimensional shape data). Further, the house data 1 is composed of three data (three-dimensional shape data) of a roof, a window, and a door.

【0048】図9の(b)は、グループノードを示す。
グループノードは、図示のように、 ・属性データ:3次元形状の色や貼り付ける画像データ
の情報 ・座標変換データ:メッシュ位置、メッシュサイズに合
致するような座標変換行列(4×4行列)である。この
座標変換データは、VRMLファイルに定義されていな
く、この座標変換行列(4×4行列)により、幾何デー
タはVRMLファイルに定義されている状態のままで管
理することができる。ここで、座標変換行列(4×4行
列)は、右側に記載した通りである(図8の例の場
合)。
FIG. 9B shows a group node.
As shown in the figure, the group nodes are: -Attribute data: information of three-dimensional shape color and image data to be pasted-Coordinate conversion data: Mesh position, coordinate conversion matrix (4x4 matrix) that matches the mesh size is there. The coordinate conversion data is not defined in the VRML file, and the coordinate conversion matrix (4 × 4 matrix) allows the geometric data to be managed in the state defined in the VRML file. Here, the coordinate conversion matrix (4 × 4 matrix) is as described on the right side (in the case of the example in FIG. 8).

【0049】 幾何データである3次元座標リストは、VRMLファイ
ルに定義されている座標点、球の半径または直方体のサ
イズ等から計算した3次元座標リストである。この3次
元座標リストは、VRMLファイルそのままの情報であ
るため、ツリー上部の座標変換データにより、表示装置
上の表示方法が決定されることとなる。
[0049] The three-dimensional coordinate list, which is geometric data, is a three-dimensional coordinate list calculated from the coordinate points defined in the VRML file, the radius of the sphere, the size of the rectangular parallelepiped, and the like. Since this three-dimensional coordinate list is information of the VRML file as it is, the display method on the display device is determined by the coordinate conversion data on the upper part of the tree.

【0050】図9の(c)は、VRMLファイル例を示
す。VRMLファイルは、図示の下記の項目から構成さ
れる。 ・グループノード: ・属性データ: ・幾何データ ここで、幾何データは、 1 0 1 2 0 3 3 0 1 であり、既述した図8の(a)の3角形の3次元形状の
部品の幾何データである。
FIG. 9C shows an example of the VRML file. The VRML file is composed of the following items shown in the figure. -Group node: -Attribute data: -Geometric data Here, the geometric data is 1 0 1 2 0 3 3 0 1 and is the geometry of the triangular three-dimensional part shown in FIG. The data.

【0051】[0051]

【発明の効果】以上説明したように、本発明によれば、
3次元形状を可視化し、表示装置内のメッシュにドラッ
グ・ドロップしてメッシュ内に納まるように自動的に拡
縮および配置したりなどする構成を採用しているため、
3次元形状を仮想都市に簡易に配置して迅速に作成する
ことが可能となる。これにより、 (1) メッシュ配列上の任意のメッシュへ配置しよう
とする部品をドラッグ&ドロップするという簡単な操作
で、部品をメッシュサイズに拡縮しかつ中心位置を合わ
せて自動的に配置して表示できる。 (2) サイズの異なる部品であっても、メッシュサイ
ズに一致するように自動的に拡縮して配置でき、部品ラ
イブラリに登録する部品サイズが任意でよく、各種サイ
ズの部品を登録する必要がない。 (3) 画面上の仮想都市に既に配置された3次元形状
に配置するときに、ドロップした3次元形状の最上面に
積み重ねるて自動的に配置して表示できる。 (4) 複数の部品をまとめて部品ライブラリに1つの
部品として登録し、これをドラッグ&ドロップして簡易
に仮想都市に配置し表示できる。
As described above, according to the present invention,
Since the three-dimensional shape is visualized, and dragged and dropped onto the mesh in the display device, it is automatically scaled and arranged so that it fits inside the mesh.
It is possible to easily place a three-dimensional shape in a virtual city and create it quickly. With this, (1) By a simple operation of dragging and dropping the part to be placed on any mesh on the mesh array, the part is expanded / reduced to the mesh size and the center position is automatically arranged and displayed. it can. (2) Even parts with different sizes can be automatically scaled up and down to match the mesh size, and the size of the parts registered in the parts library can be arbitrary, and it is not necessary to register parts of various sizes. . (3) When arranging in a three-dimensional shape already arranged in the virtual city on the screen, it can be automatically arranged and displayed by stacking on the top surface of the dropped three-dimensional shape. (4) A plurality of parts can be collectively registered as one part in the parts library and can be easily arranged and displayed in the virtual city by dragging and dropping.

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

【図1】本発明のシステム構成図である。FIG. 1 is a system configuration diagram of the present invention.

【図2】本発明の3次元仮想都市作成フローチャートで
ある。
FIG. 2 is a flowchart of creating a three-dimensional virtual city according to the present invention.

【図3】本発明の詳細説明フローチャート(その1)で
ある。
FIG. 3 is a detailed explanation flowchart (1) of the present invention.

【図4】本発明の詳細説明フローチャート(その2)で
ある。
FIG. 4 is a detailed explanation flowchart (2) of the present invention.

【図5】本発明の画面例(その1)である。FIG. 5 is a screen example (1) of the present invention.

【図6】本発明の画面例(その2)である。FIG. 6 is a screen example (2) of the present invention.

【図7】本発明のモード・メッシュサイズ対応関係テー
ブル例である。
FIG. 7 is an example of a mode / mesh size correspondence relationship table of the present invention.

【図8】本発明の説明図である。FIG. 8 is an explanatory diagram of the present invention.

【図9】本発明のVRMLデータの説明図である。FIG. 9 is an explanatory diagram of VRML data of the present invention.

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

1:計算機 2:CPU 3:メモリ 4:表示手段 5:指示手段 6:拡縮手段 7:配置手段 8:表示装置 9:入力装置 10、11:外部記憶装置 1: Calculator 2: CPU 3: Memory 4: Display means 5: instruction means 6: Expansion / contraction means 7: Arrangement means 8: Display device 9: Input device 10, 11: External storage device

フロントページの続き (56)参考文献 ファイティングスタジオ,「A.4. EVOLUTION A列車で行こう4 必勝攻略法」,株式会社双葉社,1995 年 3月10日,p.12,46 YS−11(山川総司),“3次元地図 を作って上空を飛ぶ:空飛ぶ箱庭エディ タ”,「I/O」,株式会社工学社, 1993年 7月 1日,第18巻,第7号, p.94−103 (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 G06T 11/60 - 17/50 G06F 17/50 Continuation of the front page (56) References Fighting Studio, “A.4. EVOLUTION A-Let's go by train 4 Victory strategy”, Futabasha Co., Ltd., March 10, 1995, p. 12,46 YS-11 (Souji Yamakawa), “Making a three-dimensional map and flying over the sky: Flying sand garden editor”, “I / O”, Kogakusha Co., Ltd., July 1, 1993, Volume 18 , No. 7, p. 94-103 (58) Fields surveyed (Int.Cl. 7 , DB name) G06T 1/00 G06T 11/60-17/50 G06F 17/50

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】3次元部品を図面上の仮想都市に配置する
3次元街並配置装置において、複数のモードのそれぞれとメッシュサイズとを対応付け
て管理する対応テーブルと、 上記複数のモードの中から1つのモードを選択するモー
ド選択手段と 、 作成中の図面とともに選択されたモードに対応するサイ
ズのメッシュ配列を表示する図面表示手段と、 3次元部品一覧を表示する一覧表示手段と、3次元部品一覧の中の部品と上記図面上に表示されたメ
ッシュを指示する処理と、指示された3次元部品の定義
データに含まれるサイズデータと選択されたモードに対
応するメッシュサイズとに基づき倍率を決定し、この倍
率を用いて3次元部品が当該メッシュに納まるように当
該3次元部品を拡縮する処理と、 拡縮後の3次元部品を
指示された上記メッシュに配置して表示させる処理とを
繰り返し行う配置手段とを備えたことを特徴とする3次
元街並配置装置。
1. In a three-dimensional cityscape arranging device for arranging a three-dimensional part in a virtual city on a drawing, each of a plurality of modes is associated with a mesh size.
Management table and the mode that selects one mode from the above modes.
Mode selection method and the mode corresponding to the mode selected with the drawing being created.
Drawing display means for displaying a mesh array of pixels, list display means for displaying a list of three-dimensional parts, parts in the three-dimensional part list, and the parts displayed on the drawing.
Process for instructing a rush and definition of the instructed 3D part
Compare the size data included in the data with the selected mode.
Determine the magnification based on the corresponding mesh size and
Use the ratio so that the 3D part fits in the mesh.
A process of scaling the three-dimensional parts, and a process of displaying arranged on the mesh instructed 3D parts after scaling
A three-dimensional cityscape arranging device, which is provided with a repetitive arranging means.
【請求項2】上記配置された複数の部品あるいは外部フ
ァイルから読み込まれた部品を、1つの部品として上記
3次元部品一覧に追加する手段を備えたことを特徴とす
請求項1記載の3次元街並配置装置。
2. The three-dimensional according to claim 1 , further comprising means for adding the plurality of arranged parts or parts read from an external file as one part to the three-dimensional part list. Cityscape placement device.
【請求項3】上記配置手段が指示された部品を基底平面
上に配置することを特徴とする請求項1あるいは請求項
2記載の3次元街並配置装置。
3. The three-dimensional cityscape arranging device according to claim 1 or 2, wherein the arranging unit arranges the designated component on a base plane.
【請求項4】上記配置手段が指示された部品を既に配置
されている部品上に重なるように配置することを特徴と
する請求項1ないし請求項3記載のいずれかの3次元街
並配置装置。
4. The three-dimensional cityscape arranging device according to claim 1, wherein the arranging means arranges the instructed parts so as to overlap the already arranged parts. .
JP01616697A 1997-01-30 1997-01-30 3D cityscape arrangement device Expired - Fee Related JP3370251B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01616697A JP3370251B2 (en) 1997-01-30 1997-01-30 3D cityscape arrangement device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01616697A JP3370251B2 (en) 1997-01-30 1997-01-30 3D cityscape arrangement device

Publications (2)

Publication Number Publication Date
JPH10214355A JPH10214355A (en) 1998-08-11
JP3370251B2 true JP3370251B2 (en) 2003-01-27

Family

ID=11908933

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01616697A Expired - Fee Related JP3370251B2 (en) 1997-01-30 1997-01-30 3D cityscape arrangement device

Country Status (1)

Country Link
JP (1) JP3370251B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005339127A (en) * 2004-05-26 2005-12-08 Olympus Corp Apparatus and method for displaying image information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YS−11(山川総司),"3次元地図を作って上空を飛ぶ:空飛ぶ箱庭エディタ",「I/O」,株式会社工学社,1993年 7月 1日,第18巻,第7号,p.94−103
ファイティングスタジオ,「A.4.EVOLUTION A列車で行こう4 必勝攻略法」,株式会社双葉社,1995年 3月10日,p.12,46

Also Published As

Publication number Publication date
JPH10214355A (en) 1998-08-11

Similar Documents

Publication Publication Date Title
US5058042A (en) Method for employing a hierarchical display list in global rendering
JPH11345347A (en) Smooth shading of object
EP0865000B1 (en) Image processing method and apparatus
JPH0362266A (en) Computer-alded drawing making method
JP3173067B2 (en) Graph creation apparatus and method
Jepson et al. Virtual modeling of urban environments
US5734383A (en) Apparatus and method for generating a three-dimensional model on a graphic display from a two-dimensional image
McCrae Sketch-based path design
WO1996014622A1 (en) Computer system for reconstructing 3d object using transormations between screen and model space
JP2009500715A (en) Landscape design system and method based on live-action image
Hanson et al. Overview of the SRI cartographic modeling environment
JP3370251B2 (en) 3D cityscape arrangement device
US6147689A (en) Displaying 2D patches with foldover
JPH02132573A (en) Boundary expressing solid modeling system
JPH0973559A (en) Morphing editing equipment
JPH09297861A (en) Method and device for creating and displaying perspective for building and storage medium
JP3313679B2 (en) Bird's eye and driving simulation system and recording medium
JP3332499B2 (en) Texture mapping method
US5850223A (en) Editing three-dimensional vertex data with undo facility
JP4606547B2 (en) Method and system for identifying complex model surface elements
JPH07271847A (en) Modeling method and device for landform
JPH07234949A (en) Perspective view creation support method and perspective view creation support system
JP4980863B2 (en) 3D city model creation method, creation program, recording medium recording creation program, and creation management server
JPH08161377A (en) Terrain modification simulation method
JPH07220118A (en) Terrain display device

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: 20021022

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

Free format text: PAYMENT UNTIL: 20081115

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081115

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091115

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101115

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20101115

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111115

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20111115

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121115

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20121115

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20131115

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees