JP3639256B2 - Polygon image display method, polygon image display device, and recording medium - Google Patents

Polygon image display method, polygon image display device, and recording medium Download PDF

Info

Publication number
JP3639256B2
JP3639256B2 JP2002018308A JP2002018308A JP3639256B2 JP 3639256 B2 JP3639256 B2 JP 3639256B2 JP 2002018308 A JP2002018308 A JP 2002018308A JP 2002018308 A JP2002018308 A JP 2002018308A JP 3639256 B2 JP3639256 B2 JP 3639256B2
Authority
JP
Japan
Prior art keywords
polygon
basic
contour
image
basic polygon
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
JP2002018308A
Other languages
Japanese (ja)
Other versions
JP2002312808A (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.)
Konami Corp
Original Assignee
Konami Corp
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 Konami Corp filed Critical Konami Corp
Priority to JP2002018308A priority Critical patent/JP3639256B2/en
Publication of JP2002312808A publication Critical patent/JP2002312808A/en
Application granted granted Critical
Publication of JP3639256B2 publication Critical patent/JP3639256B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の背景】
本発明は、立体的な画像の表示技術に関し、より詳しくは、ポリゴンを利用して立体的な画像を表示するための技術に関する。
【0002】
【従来の技術】
立体的な画像を表示するための一手法として、ポリゴンを利用するものが知られている。ポリゴンを利用した画像表示技術は、複雑な形状の立体物の表面を細かな多角形(ポリゴン)に分割し、これらポリゴンのそれぞれにテクスチャと呼ばれる模様や柄を張り付けることにより、一般的に実行されている。
【0003】
かかるポリゴンを利用した技術は、動画を作成する必要がある場合に、写真の如き実写的な画像を動かす場合よりも扱うデータ量が少なくて済み、それでいながらリアルな映像を提供できる点で優れている。また、ポリゴンを利用した画像は、立体的な表現を可能にする点で非常に優れている。従って、これらの特性を利用して、遊技者の指示に従って素早く画像を変化させることが必須となるゲーム装置などにおいて、ポリゴンを利用した技術が広く普及するに至っている。このような背景から、ポリゴンを利用した画像表示の技術は、装置への負担を小さくすることと、立体感に富み且つリアルな画像を表示することとを両立可能とするという点を目標としてその研究が進められてきた。
【0004】
ところで、ポリゴンの利用が進むにつれ、画像を表示するにあたってのデータ処理量が小さくて済み、且つリアルな画像を表示できるという利点がクローズアップされる場合がある。例えば、大量のセル画を用いて作成されていた動画を、ポリゴンを利用した動画により表示すれば、装置の負担のみならず、セル画作成に伴なう人的負担も小さく抑えられるようになる。
【0005】
しかしながら、ポリゴンを利用した動画は、その開発の背景ゆえに非常にリアルなものであり、セル画を用いて作成される動画に一般的な輪郭線+ベタ塗りという画像からなる表現は必ずしも得意とはしない。従って、ポリゴンを利用した画像表示技術を用いて、セル画を用いて作成したのと同様の動画を作成するための技術は存在しないというのが現状である。
【0006】
【発明が解決しようとする課題】
本発明は、以上のような現状に鑑みてなされたものであり、ポリゴンを利用した立体画像に輪郭線を付けられるようにすることで、ポリゴンを利用した画像表示技術の応用範囲を広げることをその課題とする。
【0007】
【課題を解決するための手段】
本発明は、以下に説明する2つのアプローチにより、ポリゴンを利用して表示される立体画像に輪郭線を付けることとしている。以下、それぞれについて順に説明する。
【0008】
本発明の第1の方法は、立体物描画用の基本ポリゴンを組み合わせることにより生成したポリゴン画像を、所定のディスプレイ上に表示する装置において実行される方法であって、前記基本ポリゴンの表側に、該基本ポリゴンよりも大きく、該基本ポリゴンと相似形状である裏向きの相似ポリゴンを対で描画する過程を含むポリゴン画像表示方法である。
【0009】
このポリゴン画像表示方法は、ポリゴンによる画像表示技術において用いられている約束事、即ち、画像のちらつき防止などのため裏から見た場合にはそのポリゴンが見えないものとして扱うこととされるという約束事を利用したものである。第1の方法で行なうように基本ポリゴンの画像に加えて上述のような相似ポリゴンの画像を表示するということは、基本ポリゴンの組み合わせにより構成されたある立体物の全体を、これらポリゴンとは裏向きの関係にある相似ポリゴンで包むことを意味する。このような処理を行なうと、奥手にあり表示対象となっていない基本ポリゴンに張り合わされた相似ポリゴンの端部が、立体画像上に現れることとなる。換言すれば、この第1の方法は、相似ポリゴンの基本ポリゴンからはみ出た部分を基本ポリゴンの輪郭線として用いるものである。以上の説明から明らかなように、上記相似ポリゴンは、基本ポリゴンからはみ出すことが必要となるため、基本ポリゴンよりも大きくされている。また上記はみ出し部分の太さを略一定として基本ポリゴンの輪郭線として機能させるため、基本ポリゴンと相似するような形とされている。尚、相似ポリゴンを基本ポリゴンと相似する形状とした場合には、基本ポリゴンに関するデータから容易に相似ポリゴンを生成できるという利点もある。尚、相似ポリゴンを輪郭線として強調するために、相似ポリゴンには、基本ポリゴンに配されるテクスチャと異なるテクスチャを配することができる。
【0010】
この場合における相似ポリゴンは、基本ポリゴンに関する基本ポリゴンデータに基づいて演算することでポリゴン画像を表示するときに作成することも可能であり、また予め基本ポリゴンデータと対で作成しておくことも可能である。相似ポリゴンデータを予め基本ポリゴンデータと対で作成した場合においては、記録手段にこれを記録させておき、当該相似ポリゴンデータに基づいて相似ポリゴンを表示することができる。後者の場合は、相似ポリゴンを表示する場合に、演算を行なう必要がないので、予め定めた所定の画像を表示するのみならず遊技者の操作内容に応じた画像をその都度表示する必要があるゲーム分野への応用に向いている。
【0011】
また、この方法では、前記相似ポリゴンの重心を、当該相似ポリゴンと対になる基本ポリゴンの重心と一致させるようにすることができる。このようにすることで、基本ポリゴンの周囲から帯状にはみ出た相似ポリゴンの各部分における幅が一定となり、かかる相似ポリゴンを輪郭線として用いるに良好である。
【0012】
上記方法では、基本ポリゴンと相似ポリゴンを描画する順序の別は特に問わない。いずれを先に描画しても、また双方を同時に描画しても良い。尚、前記相似ポリゴンを描画してから前記基本ポリゴンを描画することとすれば、このポリゴン画像表示方法により得られる画像は、基本ポリゴンの画像に縁取りを施したものとなる。つまり、複数の相似ポリゴン又は基本ポリゴンが重複する場合には、視点に最も近いポリゴンが優先して表示されるので、相似ポリゴンを先に描画した上で、この相似ポリゴンの上に張り付けるようにして後から基本ポリゴンを表示することで、本来輪郭線として表示される相似ポリゴンのはみ出し部分のうち、両側に基本ポリゴンが存在するものは、当該基本ポリゴンにより隠されることためポリゴン画像上に表示されないようになる。従って、この方法によれば、基本ポリゴンの集合により表示された立体物の現在の視点から見た外縁部にあたる輪郭線のみが立体画像上に表示されることとなり、縁取り効果が得られることとなる。
【0013】
以上説明した方法では、前記基本ポリゴンの各頂点と隣接する他の基本ポリゴンの法線ベクトルを検出するとともにこれら法線ベクトルの和ベクトルと向きを等しくする単位ベクトルを求め、当該頂点を基端とした前記単位ベクトルの先端に輪郭点を取り、これら輪郭点上に前記相似ポリゴンの対応する頂点をそれぞれ移動させる過程を含むようにすることができる。この方法によれば、各相似ポリゴンのはみ出し部分の幅を決定する相似ポリゴンの各頂点を、前記基本ポリゴンの頂点から単位ベクトル分だけ離れた位置に配置できるようになり、相似ポリゴンのはみ出し部分により描かれる輪郭線の幅を一定に保てるようになるため、美しい輪郭線を表示できるようになる。尚、この過程は、相似ポリゴンを描画するデータを作成する段階で予め行なっておくことができる。このようにして相似ポリゴン描画用のデータを予め作成しておけば、かかるデータにより作成された相似ポリゴンと基本ポリゴンとを表示するだけで、表示を行なう場合に何ら特別な演算も必要を行なわずとも、美しい輪郭線を表示できるようになる。
【0014】
この場合において、前記単位ベクトルに予め定めた所定の係数を乗算して変移ベクトルを求め、前記輪郭辺の両端の点を基端とした前記変移ベクトルの先端に輪郭点を取り、これら輪郭点上に前記相似ポリゴンの対応する頂点をそれぞれ移動させるようにすることができる。このようにすれば、相似ポリゴンのはみ出し部分によって描画される各輪郭線を、予め定めた幅で描画できるようになる。これにより、輪郭線の強弱を付けられるようになるので、輪郭線表示のバリエーションが豊かになる。上記係数は、すべての単位ベクトルについて同一とすることもできるし、また各単位ベクトル毎に異なるものとすることもできる。後者の場合においては、基本ポリゴンの各頂点毎に予め異なる値で上記係数を定めておくことができる。
【0015】
以上説明した本発明の第1の方法は、以下の如き装置で実現可能である。立体物描画用の基本ポリゴンに関する基本ポリゴンデータ、及び前記基本ポリゴンよりも大きく、該基本ポリゴンと相似形状である裏向きの相似ポリゴンに関する相似ポリゴンデータが対で記録された記録手段と、該記録手段から読み出した基本ポリゴンデータ、及び相似ポリゴンデータに基づいて前記基本ポリゴンと、各基本ポリゴンと対になる相似ポリゴンとを生成するとともに、所定のディスプレイに、前記基本ポリゴンの画像と、対になる基本ポリゴンの表面に配された前記相似ポリゴンの画像とを含むポリゴン画像を表示する制御手段と、を含んで構成されるポリゴン画像表示装置がその一例となる。
【0016】
また、以上説明した本発明の第1の方法は、記録媒体に記録されたプログラムコードを所定のコンピュータ装置、例えばゲーム専用コンピュータ装置や、家庭用コンピュータ装置に読み込ませることにより実現することもできる。例えば、立体物描画用の基本ポリゴンに関する基本ポリゴンデータ、及び前記基本ポリゴンよりも大きく、該基本ポリゴンと相似形状である裏向きの相似ポリゴンに関する相似ポリゴンデータとが対で記録された記録手段から、前記基本ポリゴンデータ及び前記相似ポリゴンデータを読み出す処理、この読み出したデータに基づいて基本ポリゴンと、各基本ポリゴンと対になる相似ポリゴンとを生成する処理、所定のディスプレイに、前記基本ポリゴンの画像と、対になる基本ポリゴンの表面に配された前記相似ポリゴンの画像とを含むポリゴン画像を表示する処理、をコンピュータ装置に実行させるためのプログラムコードが記録されたコンピュータ読み取り可能な記録媒体がその一例である。尚、本明細書で言うプログラムコードとは、プログラムそれ自体に加えて、ゲームをゲーム機に実行させるために必要なデータや、制御パラメータなどをも含む概念である。
【0017】
本発明の第2の方法は、立体物描画用の基本ポリゴンを組み合わせることにより生成した立体画像を、所定のディスプレイ上に表示する装置において実行される方法であって、各基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出し、この輪郭辺に沿って線分を描く過程を含む、ポリゴン画像表示方法である。
【0018】
この方法では、立体画像を生成するための各基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とを、輪郭線を引くべき輪郭辺として抽出することとしている。かかる抽出を行ない、輪郭辺に沿って線分を書き込みこれを輪郭線として利用することで、必要とされる部分に輪郭線を書き込めるようにしている。尚、『基本ポリゴンが見えない』場合とは、前側に他の基本ポリゴンがあるため他の基本ポリゴンがその後に隠れている場合や、基本ポリゴンの表示されない側の面が視点側に向いている場合を含む。後者は、ポリゴンを用いて立体画像を表示する場合には、画像のちらつき防止のために裏向きのポリゴンは表示しないようになっているのが通常であるため、かかるポリゴンの特性を輪郭線形成に利用するものである。また、この方法では、画面上に基本ポリゴンを先に描き、次いで線分を描くという手順で方法を実行する必要はない。表示の手順を問わず、最終的に、基本ポリゴンの輪郭辺の外側に沿って線分が表示されていれば足りる。線分の描き方は、基本ポリゴンの各辺から内側に所定幅だけ、基本ポリゴンに配するテクスチャと異なるテクスチャを配することにより行なっても良く、基本ポリゴンの各辺から外側に所定幅だけ、基本ポリゴンに配するテクスチャと異なるテクスチャを配することにより行なっても良く、またこの両者を行なっても良い。
【0019】
かかる第2の方法では、隣接する基本ポリゴンが存在しない辺を抽出するのみならず、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺を抽出する必要がある。この抽出は、どのような方法によってもかまわない。例えば、前記各基本ポリゴンの法線ベクトルを識別し、これら法線ベクトルと、前記視点からの視線方向に沿う視線ベクトルとの内積を求め、その内積の正負の別により、前記隣接する基本ポリゴンが見えない辺を抽出することや、前記各ポリゴンの各頂点又は各辺に予め所定順の順序情報を割り当てておき、前記各ポリゴン毎にその順序情報を検出し、視点から見た順序情報の並び方の別により、当該隣接する基本ポリゴンが見えない辺を抽出することにより、隣接する基本ポリゴンが存在するものの、現在の視点から見た場合に当該隣接する基本ポリゴンが見えない辺を抽出するようにすることなどが可能である。後者の例としては、順序情報を追った場合に、その順序が視点から見て右回りか左回りかの別を判断することを挙げることができる。
【0020】
この第2の方法では、前記線分を、前記輪郭辺の外側に沿って描くとともに、表示を行なう際に前記線分と前記ポリゴンとが重複する場合には、前記ポリゴンを優先して表示する、ことができる。このようにすれば、輪郭線となる線分のうち、両側に基本ポリゴンが存在するものは、両側に位置するその基本ポリゴンにより上書きされたと同様の状態となり、ポリゴン画像上に表示されないこととなる。従って、この方法によれば、基本ポリゴンの集合により表示されたある立体物の現在の視点から見た外縁部にある輪郭線のみが立体画像上に表示され、他の輪郭線は表示されないようになる。つまり、この方法は、立体画像を表示するにあたって、縁取り処理を行ない得るものとなる。
【0021】
以上説明した本発明の第2の方法では、輪郭辺に沿って輪郭線を描画することが必要となる。この場合の輪郭線の描画方法は、どのようなものを採用しても良いが、例えば以下の如き方法を採用することができる。即ち、前記輪郭辺の両端の点と隣接する前記各基本ポリゴンの法線ベクトルを検出するとともにこれら法線ベクトルの和ベクトルと向きを等しくする単位ベクトルを求め、前記輪郭辺の両端の点を基端とした前記単位ベクトルの先端に輪郭点を取り、これら輪郭点を結んで得た輪郭外辺と前記輪郭辺との間に、当該輪郭辺を含む基本ポリゴンに配されたテクスチャと異なる画像を配することで、前記輪郭辺に沿って線分を描く、という方法である。この方法によれば、上記輪郭点の位置に従って各輪郭線の幅が決定されることとなるが、この輪郭点は基本ポリゴンの頂点から単位ベクトル分だけ離れた位置に配置されることとなるため、描画される輪郭線の幅を一定に保つことで美しい輪郭線を表示できるようになる。
【0022】
この方法では、前記単位ベクトルに予め定めた所定の係数を乗算して変移ベクトルを求め、前記輪郭辺の両端の点を基端とした前記変移ベクトルの先端に輪郭点を取り、これら輪郭点を結んで得た輪郭外辺と前記輪郭辺との間に、当該輪郭辺を含む基本ポリゴンに配されたテクスチャと異なる画像を配することで、前記輪郭辺に沿って線分を描くようにすることができる。このようにすれば、描画される各輪郭線を、予め定めた幅で描画できるようになる。これにより、輪郭線の強弱を付けられるようになるので、輪郭線表示のバリエーションを豊かにできるようになる。上記係数は、すべての単位ベクトルについて同一とすることもできるし、また各単位ベクトル毎に異なるものとすることもできる。後者の場合においては、基本ポリゴンの各点毎に予め異なる値で上記係数を定めておくことができる。
【0023】
以上説明した本発明の第2の方法は、以下の如き装置で実現可能である。立体物描画用の基本ポリゴンに関する基本ポリゴンデータが記録された記録手段と、該記録手段から読み出した基本ポリゴンデータに基づいて前記基本ポリゴンを生成するとともに、各基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出して、この輪郭辺に沿って描かれる線分を生成し、所定のディスプレイに、前記基本ポリゴンの画像と前記線分の画像とを含むポリゴン画像を表示する制御手段と、を含んで構成されるポリゴン画像表示装置がその一例となる。
【0024】
以上説明した本発明の第2の方法は、記録媒体に記録されたプログラムコードを所定のコンピュータ装置、例えばゲーム専用コンピュータ装置や、家庭用コンピュータ装置に読み込ませることにより実現することもできる。例えば、立体物描画用の基本ポリゴンに関する基本ポリゴンデータを読み出す処理、この読み出したデータに基づいて基本ポリゴンの組み合わせによる立体画像と、各基本ポリゴンと対になる相似ポリゴンの画像とを生成する処理、各基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出する処理、この輪郭辺に沿って描かれる線分を生成する処理と、所定のディスプレイに、前記基本ポリゴンの画像と線分の画像とを表示する処理と、をコンピュータ装置に実行させるためのプログラムコードが記録されたコンピュータ読み取り可能な記録媒体がその一例である。
【0025】
【発明の実施の形態】
以下、本発明の好ましい第1実施形態及び第2実施形態を説明する。
【0026】
第1実施形態:第1実施形態は、相似ポリゴンを用いて輪郭線付きのポリゴン画像を表示する方法に関する。
【0027】
本実施形態のポリゴン画像表示方法は、以下のようなポリゴン画像表示装置にて実行される。このポリゴン画像表示は、ビデオゲーム装置の一部をなすゲーム装置本体2として構成されている。このゲーム装置本体2については、例えば特開平8−212377号公報に記載されたものを用いることができる。このゲーム装置本体2の具体的な構成例は、図1に示すとおりであり、主制御部10、画像処理部20、音響処理部30、ディスク制御部40、通信制御部50、及び上記各機能ブロック10〜50を双方向通信可能に接続するためのメインバスBを具備している。
【0028】
主制御部10は、CPU11と、割り込み制御やDMA(ダイレクトメモリアクセス)転送制御等を行なう周辺デバイスコントローラ12と、ゲームプログラムや演出表現データを一時的に記録するメインメモリ13と、画像処理部20,音響処理部30等の管理を行なうオペレーティングシステム(OS)等が格納されたROM14とを備えている。CPU11は、RISC(reduced instruction setcomputor)CPUであり、ROM14に記録されているOSを実行することによって装置全体の基本的な動作の制御を行なうとともに、メインメモリ13内のゲームプログラムを実行することにより、後述する複数の機能ブロックを実現するものである。
【0029】
画像処理部20は、メインメモリ13内の記録データに対する座標変換等を高速に行なうジオメトリトランスファエンジン(GTE)21と、CPU11からの描画指示に基づいてポリゴンやスプライト(三角形、四角形等の多角形:以下、スプライトもポリゴンの概念に包含されるものとする)等の組み合わせから成る三次元CG画像の描画処理を行なうグラフィックスプロセッシングユニット(GPU)22と、GPU22により描画処理された三次元CG画像を一時的に記録するフレームバッファ23と、必要に応じて圧縮画像データを復号化する画像デコーダ(MDEC)24とを備えている。ディスプレイ装置25は、フレームバッファ23に記録されている三次元CG画像を読み出して表示するものである。GPU22による上記描画処理及びフレームバッファ23への記録を連続的に行なうことにより、動画要素を含む三次元CG画像をディスプレイ装置25に表示できるようになる。
【0030】
音響処理部30は、音響に関わる背景環境データに基づいて、効果音、音声、楽音等を発生するサウンド再生処理プロセッサ(SPU)31と、効果音等のデータその他の音源データを一時的に記録するためのサウンドバッファ32と、SPU31によって発生される効果音等を出力するスピーカ33とを備えている。SPU31は、例えば適応差分符号化(ADPCM)された音源データを再生するADPCM復号機能、サウンドバッファ32に記録されている音源データを再生することによって効果音等を再生する機能、サウンドバッファ32に記録されている音源データを変調させて再生する変調機能等を有している。このような機能を備えることによって、音響処理部30では、サウンドバッファ32に記録された音源データに基づいて効果音等を発生するサンプリング音源として使用することができるようになる。
【0031】
ディスク制御部40は、CD−ROM44に記録されたゲームプログラムや演出表現データ等を再生(以下、再生されたデータを再生データとする)するためのディスクドライブ装置41と、再生データにエラー訂正(ECC)符号が付加されている場合にそれを復号するCD−ROMデコーダ42と、ディスクドライブ装置41からの再生データをメインメモリ13に記録させる前に一時的に記録するバッファ43とを備えている。なお、デコーダ42は、音響処理部30の一部も構成している。このデコーダ42のオーディオ出力は、一旦SPU31に入り、このSPU出力とミックスされ、リバーブユニットを経由して最終のオーディオ出力となる。
【0032】
通信制御部50は、メインバスBを介してCPU11との通信の制御を行なう通信制御デバイス51と、遊技者からの指示を入力するコントローラ52と、ゲームの設定等を記録するメモリカード53とを備えている。コントローラ52は、遊技者の意図を入力するためのインタフェース部品であって、ゲーム開始を指示するスタートキー、ゲームリセットを指示するリセットキー、キャラクタの上下左右の移動を指示するとともに表示される種々のメニューやアイテムにカーソルを一致させる選択キー、及びキャラクタの詳細動作指示と選択メニューの指示を行なう指示キー等を備え、これらの各キーの状態を同期式通信によって通信制御デバイス51に送信する。通信制御デバイス51は、コントローラ52の各キーの状態をCPU11に送信する。これにより、遊技者からの指示がCPU11に伝えられ、CPU11は、実行しているゲームプログラムに基づいて遊技者からの指示に従った画像表示及びゲーム展開処理を行なう。
【0033】
また、CPU11は、シナリオに従って進行しているゲームの設定やゲームの終了時或いは途中の結果等を記録する必要があるときに、そのときの各種データを通信制御デバイス51に送信する。通信制御デバイス51は、当該CPU11からの送信データをメモリカード53に記録する。メモリカード53は、メインバスBから分離されているため、電源を入れた状態で、着脱することができる。これにより、ゲームの設定等を複数のメモリカード53に記録することができるようになっている。
【0034】
なお、ゲーム装置本体2は、メインバスBに接続されたパラレル入出力(I/O)ポート61と、シリアル入出力(I/O)ポート62とを備えている。そして、パラレルI/Oポート61を介して周辺機器との接続を行なうことができるようになっており、また、シリアルI/Oポート62を介して他のビデオゲーム装置等との通信を行なうことができるようになっている。
【0035】
上記構成のゲーム装置本体2において、本発明の記録媒体に該当するCD−ROM44をディスクドライブ装置41に装着した状態で電源投入またはリセット処理を行なうと、CPU11がROM14に記録されているOSを実行する。OSが実行されると、CPU11は、動作確認等の装置全体の初期化を行なうとともに、ディスク制御部40を制御して、CD−ROM44に記録されているゲームプログラムをメインメモリ13に読み出して実行する。このゲームプログラムの実行により、CPU11は、図2に示すような機能ブロックを形成してビデオゲーム装置2を実現する。尚、後述する基本ポリゴンデータ記録部240、440に記録される基本ポリゴンデータ及び、相似ポリゴンデータ記録部250に記録される相似ポリゴンデータは、データ容量がかなり大きいので、これらについてはメインメモリ13上に展開するのではなく、直接CD−ROM44から読み出すような構成とすることも可能である。
【0036】
図2に示されるように、本実施形態のビデオゲーム装置2は、指示情報解析部210、画像決定部220、制御部230、記録手段としての基本ポリゴンデータ記録部240及び相似ポリゴンデータ記録部250を含んでいる。
【0037】
指示情報解析部210は、コントローラ52と接続されており、遊技者の操作によりこのコントローラ52から入力された操作内容を判別する。画像決定部220は、指示情報解析部210と接続されており、指示情報解析部210から送られた操作内容についてのデータと、予めさだめられたゲームシナリオ、ゲームルールなどに基づいて、ディスプレイ装置25に表示すべき画像の決定を行なうようになっている。
【0038】
制御部230は、ポリゴン生成部231と画像生成部232とを含んでなる。
【0039】
基本ポリゴンデータ記録部240には、ディスプレイ装置25に表示すべき人物や風景などをその組み合わせにより描画するための基本ポリゴンに関するデータが記録されている。この基本ポリゴンデータは、それぞれの基本ポリゴンの形や大きさ、他の基本ポリゴンとの位置関係、それぞれの基本ポリゴンに配される色、模様などについてのテクスチャなどについて規定するデータを含んでいる。相似ポリゴンデータ記録部250には、それぞれの基本ポリゴンと対になる相似ポリゴンに関する相似ポリゴンデータが記録されている。相似ポリゴンデータは、基本ポリゴンデータが含むのと同様のデータを含んでいる。ここで、各相似ポリゴンは、対応する基本ポリゴンよりも大きく、対応する基本ポリゴンと相似形状で、且つ対応する基本ポリゴンに配されるテクスチャと異なるテクスチャが配されており、また対応する基本ポリゴンと裏向きの関係にある。即ち、相似ポリゴンは、それを組み合わせてなる立体物が、基本ポリゴンを組み合わせてなる立体物を裏向きで包み込めるようなものとなっている。
【0040】
ポリゴン生成部231は、画像決定部220が決定した表示すべき画像についてのデータに基づいて、基本ポリゴンデータと相似ポリゴンデータとを読出し、これに基づいて基本ポリゴンと相似ポリゴンを生成するものとなっている。また、ポリゴン生成部231には、基本ポリゴンの重心と相似ポリゴンの重心を検出し、これらの位置合わせを行なう位置合わせ部233が含まれている。
【0041】
画像生成部232は、ポリゴン生成部231が生成した基本ポリゴン及び相似ポリゴンを組み合わせ、ディスプレイ装置25に表示するポリゴン画像を生成するようになっている。また、画像生成部231には、調整部234が含まれている。この調整部234は、画像生成部231にて組み立てられた基本ポリゴン及び相似ポリゴンの画像の微調整を行なうことで、輪郭線の美しさを高めるように機能する。
【0042】
次に、このゲーム装置本体2の動作について説明し、併せて本発明によるポリゴン画像の表示方法の一例について説明することとする。
【0043】
このゲーム装置本体2は、所定のシナリオ、ルールなどに従った所定のゲームを実行できるようになっている。そして、かかるゲーム実行に伴なうディスプレイ装置25への画像表示時や、或いはデモ画面の表示時において以下のようにポリゴン画像を形成する。処理の流れは、図3で示したごときである。
【0044】
ポリゴン画像を表示するにあたっては、まず、指示情報解析部220がコントローラ52から入力された操作内容を、入力の有無を含めて判断する(S301)。指示情報解析部210が判断した操作内容に関するデータは、画像決定部220へと送られる。画像決定部220は、かかるデータやゲームシナリオなどに基づいて、ディスプレイ装置25に表示すべき画像を決定する(S302)。そして、その画像を作成するに必要な基本ポリゴンに関するデータをポリゴン生成部231へ送り、またその画像生成に必要な他のデータを画像生成部232へと送る。
【0045】
ポリゴン生成部231は、基本ポリゴンデータ記録部240及び相似ポリゴンデータ記録部250より、基本ポリゴンデータ及び相似ポリゴンデータをそれぞれ読出し、これに基づいて基本ポリゴン及び相似ポリゴンの生成を行なう(S303)。
【0046】
位置合わせ部233は、生成された基本ポリゴン及び相似ポリゴンの重心を検出し、対になる基本ポリゴン及び相似ポリゴンの重心を一致させて両者の位置合わせを行なう(S304)。
【0047】
画像生成部232は、画像決定部220から送られたディスプレイ装置25に表示すべき画像についてのデータと、ポリゴン生成部231から送られた基本ポリゴン及び相似ポリゴンに関してのデータとに基づいて、基本ポリゴンを適宜組み合わせると共に、基本ポリゴンのそれぞれの表側に、当該基本ポリゴンと対応する相似ポリゴンを配し、またこれら基本ポリゴン及び相似ポリゴンのそれぞれに適宜テクスチャを配すことにより、ディスプレイ装置25で最終的に表示すべきポリゴン画像を生成する(S305)。例えば、図4で示した如きワイヤフレームに対応するようにしながら基本ポリゴン、相似ポリゴン及び所定のテクスチャを配することで、ポリゴン画像の生成を行なう。ワイヤフレームが2重に表示されているのは、基本ポリゴンによるものと、相似ポリゴンによるものとの2つのワイヤフレームが図示されているからである。つまり、内側のワイヤフレームは基本ポリゴンにより、外側のワイヤフレームは相似ポリゴンによりそれぞれ構成されている。基本ポリゴン及び相似ポリゴンの配置ないし張り付けにあたっては、まず相似ポリゴンからその配置ないし張り付けを行ない、次いで基本ポリゴンの配置ないし張り付けを行なうこととしている。ポリゴンが重複する場合には最も視点寄りのものが優先的に表示されるようになっているので、この例によって得られるポリゴン表示画像は、縁取り線としての輪郭線が表示されたものとなる。尚、輪郭線表示の原理については後述することとする。
【0048】
ここで、本実施形態によるポリゴン画像の表示方法では、調整部234による相似ポリゴンの微調整によって、その輪郭線を美しいものとすることができる。この処理の過程を概念的に示したのが図5である。図5(イ)〜(ニ)は、図示せぬ相似ポリゴンの頂点の位置を、位置調整をすべき当該相似ポリゴンの頂点に対応する基本ポリゴン上の頂点(この例では、V及びV)の位置に基づいて定めた点に移動させる様子を示している。
【0049】
美しい輪郭線を描くための処理は、図5(イ)で示したように、各基本ポリゴンの法線ベクトル、この図で言えば、ベクトルh、h、h、h、hを検出することから始める。法線ベクトルは、相似ポリゴンの移動させたい頂点に対応する基本ポリゴンの頂点V、Vと接するすべての基本ポリゴンについて検出する。この例では、頂点Vと接する基本ポリゴンの法線ベクトルとしてh、及びh、h、hを検出し、また、頂点Vと接する基本ポリゴンの法線ベクトルとしてh、h、hを検出するので、結局h、h、h、h、hの各法線ベクトルを検出することになる。
【0050】
次に、図5(ロ)で示したように、基本ポリゴンの頂点V、V毎に、それぞれの頂点V、Vと接する基本ポリゴンの法線ベクトルの和を求める。そして、その和ベクトルと向きを等しくする単位ベクトルを、それぞれの頂点V、V毎に求める。この例では、頂点Vについて、ベクトルh+ベクトルh+ベクトルh+ベクトルhを求めその単位ベクトルとしてベクトルeを、頂点Vについて、ベクトルh+ベクトルh+ベクトルhを求め、その単位ベクトルとしてベクトルeを求める。
【0051】
次に、図5(ハ)で示したように、上記単位ベクトルe、eに、予め定めた所定の係数を乗算してそれぞれの頂点V、V毎に変移ベクトルを求める。この係数は、各頂点V、V毎に、頂点Vについてはα、Vについてはβというように予め定めておくことができる。この例では、ベクトルeに係数αを乗じたものとして頂点Vについての変移ベクトルαeを、ベクトルeに係数βを乗じたものとして頂点Vについての変移ベクトルβeを求めることとしている。
【0052】
そして、図5(ニ)で示したように、各頂点V、Vを基端として上記変移ベクトルαe、βeを配し、この変移ベクトルαe、βeの先端の点として、輪郭点V 、V を決定する。この輪郭点V 、V が、頂点V、Vと対応する相似ポリゴン上の頂点を移動させるべき位置を示す点となる。
【0053】
最後に、この輪郭点V 、V 上に、相似ポリゴン上の頂点V、Vと対応する頂点(図示を省略する。)を移動し、相似ポリゴンの微調整を行なう。これにより得られる輪郭線は、隣接する輪郭線同士がその接合部においてずれなく接合されるものとなる。また、例えば、遠景の場合と近景の場合とで幅の異なる輪郭線を表示したり、強調したい部分により太い輪郭線を表示したりできるようになる。
【0054】
尚、図5で示した例では、輪郭点V 、V を、変移ベクトルαe、βeの先端の点として決定したが、頂点V、Vを基端とする単位ベクトルe、eの先端の点を輪郭点V 、V とし、かかる輪郭点V 、V 上に、相似ポリゴン上の頂点V、Vと対応する頂点(図示を省略する。)を移動させることとしても良い。また、この実施形態では、調整部234を画像生成部232内に配することとしてあるが、ポリゴン生成部231や相似ポリゴンデータ記録部250の内部にこの調整部234を配することも可能である。これにより、図5で説明した手法による修正を予め施した相似ポリゴンをポリゴン生成部231で生成することとすれば、画像生成部232では、修正後の相似ポリゴンと基本ポリゴンとを組み合わせた画像を生成する処理を行なえば足りることとなる。尚、修正後の相似ポリゴン画像についての相似ポリゴンデータを予め生成しておき、これを相似ポリゴンデータ記録部250に当初から記録しておくようにすることも可能である。
【0055】
相似ポリゴンの微調整を行なった後、相似ポリゴンにテクスチャを配する。このテクスチャは、その相似ポリゴンと対になる基本ポリゴンに配されるテクスチャと異なるものとする必要があるが、この例では、黒1色のテクスチャを各相似ポリゴンに配することで、相似ポリゴンを輪郭線として際立たせるようにしている。尚、対になる基本ポリゴンに配されるテクスチャと異なるテクスチャを相似ポリゴンに配するのではなく、基本ポリゴンとは異なる表示となるように相似ポリゴンを例えば単色で塗りつぶすという処理を行なっても良い。
【0056】
そして、画像生成部232が作成した上記ポリゴン画像に関するデータがディスプレイ装置25に送られ、これに基づいてディスプレイに所望のポリゴン画像がディスプレイ装置25に表示されることになる(S306)。
【0057】
かかるポリゴン画像の例を図6で示す。この例では、図6の(イ)で示したように、球体Aを基本ポリゴンにて表現している。図面上では省略されているが、この球体Aは、多数の基本ポリゴンの集合にて表現されている。この球体Aの、外側には、相似ポリゴンの集合にて表現された球体Bが表示されている。この球体Bを表示する相似ポリゴンは、球体Aを表示する基本ポリゴンとは裏向きの関係にある。これを現在の視点Xから見た場合には、所定の視点から見て裏向きのポリゴンは表示されないという決め事の下では、球体Aについては視点Xに近い方の半球部分のみが表示されることとなり、球体Bについては視点Xから遠い方の半球部分のみが表示されることとなる。従って、かかる視点Xから上記球体A、球体Bを見た場合の画像は、図6(ロ)に示した如きものとなり、相似ポリゴンで示した球体Bのうち、基本ポリゴンで示した球体Aからはみ出した部分が、基本ポリゴンで示した球体Aの輪郭線であるように見えることになる。
【0058】
第2実施形態:第2実施形態は、基本ポリゴンの各辺の中から輪郭線を引くべき輪郭辺を抽出し、そこに線分を配することで輪郭線付きのポリゴン画像を表示する方法に関する。尚、第2実施形態の説明のうち第1実施形態の場合と同様の部分については図示を省略する。
【0059】
第2実施形態のポリゴン画像表示方法は、第1実施形態で説明したと同様のゲーム装置本体2にて、実行される。ゲーム装置本体2の具体的な構成は、図1に例示したとおりである。かかる構成のゲーム装置本体2において、本発明の記録媒体に該当するCD−ROM44をディスクドライブ装置41に装着した状態で電源投入またはリセット処理を行なうと、CPU11がROM14に記録されているOSを実行する。OSが実行されると、CPU11は、動作確認等の装置全体の初期化を行なうとともに、ディスク制御部40を制御して、CD−ROM44に記録されているゲームプログラムをメインメモリ13に読み出して実行する。このゲームプログラムの実行により、CPU11は、図7に示すような機能ブロックを形成してビデオゲーム装置2を実現する。
【0060】
図7に示されるように、本実施形態のビデオゲーム装置2は、指示情報解析部410、画像決定部420、制御部430、記録手段としての基本ポリゴンデータ記録部440を含んでいる。指示情報解析部410は、画像決定部420は、第1実施形態の指示情報解析部410、画像決定部420と同様の機能を有している。
【0061】
基本ポリゴンデータ記録部440には、第1実施形態の基本ポリゴンデータ記録部440が記録していたのと同様の基本ポリゴンデータが記録されている。
【0062】
制御部430には、基本ポリゴン生成部431、輪郭辺判定部432、線分生成部433が含まれている。基本ポリゴン生成部431は、画像決定部420が決定した表示すべき画像についてのデータに基づいて、基本ポリゴンデータを読出し、これに基づいて基本ポリゴンを生成するものとなっている。
【0063】
輪郭辺判定部432は、画像決定部420が決定した表示すべき画像についてのデータや基本ポリゴン生成部431から送られた基本ポリゴンに関するデータなどに基づいて、各ポリゴンの辺の中から、輪郭線を描くべき輪郭辺を抽出する機能を有している。
【0064】
線分生成部433は、輪郭辺判定部432から送られた輪郭辺についてのデータを受け取り、これに基づいて、当該輪郭辺に沿って配置すべき線分を生成するようになっている。
【0065】
画像生成部434は、基本ポリゴン生成部431が生成した基本ポリゴンについてのデータ、輪郭辺判定部432が抽出した輪郭辺についてのデータ、及び線分生成部433が生成した線分についてのデータを受け取り、これらに基づいて、ディスプレイ装置25に表示するポリゴン画像を生成するようになっている。
【0066】
次に、このゲーム装置本体2の動作について説明し、併せて本発明によるポリゴン画像の表示方法の一例について説明することとする。かかる場合の処理の流れは図8で示した如きである。
【0067】
このゲーム装置本体2は、所定のシナリオ、ルールなどに従った所定のゲームを実行できるようになっている。そして、かかるゲーム実行に伴なうディスプレイ装置25への画像表示時や、或いはデモ画面の表示時において以下のようにポリゴン画像を形成する。
【0068】
ポリゴン画像を表示するにあたっては、まず、指示情報解析部410がコントローラ52から入力された操作内容を、入力の有無を含めて判断する(S501)。指示情報解析部410が判断した操作内容に関するデータは、画像決定部420へと送られる。画像決定部420は、かかるデータやゲームシナリオなどに基づいて、ディスプレイ装置25に表示すべき画像を決定する(S502)。そして、その画像を作成するに必要な基本ポリゴンに関するデータを基本ポリゴン生成部431へ送り、またその画像生成に必要な他のデータを画像生成部434へと送る。
【0069】
基本ポリゴン生成部431は、基本ポリゴンデータ記録部440より、基本ポリゴンデータを読出し、これに基づいて基本ポリゴンの生成を行なう(S503)。
【0070】
次に、画像決定部420から送られたデータと、基本ポリゴン生成部431から送られたデータとに基づいて、輪郭辺判定部432が、所定の輪郭辺を抽出する(S504)。かかる輪郭辺は、各基本ポリゴンの辺のうち、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺(換言すれば、隣接する基本ポリゴンが視点から見て裏向きであるために描画が省略される基本ポリゴンと共有される辺)とを言う。隣接する基本ポリゴンが存在しない辺は、画像決定部420から送られたデータと、基本ポリゴン生成部431から送られたデータとを利用することで、各基本ポリゴンの組み合わせ方を判別することにより容易に選別することができる。図9で示した例においては、2枚の基本ポリゴンC(c1〜c4の4頂点で規定される矩形の基本ポリゴン)、D(d1〜d4の4頂点で規定される矩形の基本ポリゴン)のうち、辺c1c2(頂点c1及びc2で端部を規定される辺を意味する。以下同様。)、と辺c1c3、辺c3c4は隣り合う基本ポリゴンの存在しない辺であり輪郭辺と判断されることになる。また、辺c4c1は、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺であり、これも輪郭辺と判断されることになる。ここで、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とは、上述のように、視点から見て裏向きとなっている隣接した基本ポリゴンと共有される辺を意味するので、隣接する基本ポリゴンの裏表を判断することによりこれを選別することができることとなる。隣接する基本ポリゴンの裏表の判断は、例えば次の2通りの手法により行なうことができる。
【0071】
最初の手法は、各基本ポリゴンの法線ベクトルを識別し、これら法線ベクトルと、前記視点からの視線方向に沿う視線ベクトルとの内積を求め、その内積の正負の別により、隣接する基本ポリゴンが見えない辺を抽出することによる。図9を用いて説明する。図9に示された基本ポリゴンC、Dにつき、それぞれについての法線ベクトルCn、Dnを検出し、これらと視点Xからの視線方向に沿う視線ベクトルXvの内積をそれぞれ演算で求める。演算結果は、基本ポリゴンの法線ベクトルと、視線ベクトルXvのなす角をθとすると、90°<θ<270°のとき負に、−90°<θ<90°のとき正に、θ=±90°のとき0になる。そして、これらはそれぞれ、当該基本ポリゴンが表向きであり表示される場合、基本ポリゴンが裏向きなので表示されない場合、及び基本ポリゴンが横向きなので表示不可能な場合に該当する。このように演算を行なうことにより、辺c2c4は、隣接する基本ポリゴンがあるが、それが見えない辺、即ち輪郭辺に該当すると判断されることになる。
【0072】
次の手法は、前記各ポリゴンの各頂点又は各辺に予め所定順の順序情報を割り当てておき、前記各ポリゴン毎にその順序情報を検出し、視点から見た順序情報の並び方の別により、当該隣接する基本ポリゴンが見えない辺を抽出するという手法である。図9を用いて説明する。この例では、基本ポリゴンの各頂点にc1〜c4の符号を割り当ててある。c1〜c4の数字の部分が順序情報として機能する。そしてかかる数字をc1〜c3まで追っていき、これが視点Xから見て右回りに並んでいるか、或いは左回りに並んでいるかを判断することにより、基本ポリゴンC、Dの裏表を判別することができる。平面に落とした頂点c1〜c3の位置座標をそれぞれ(c1x、c1y)、(c2x、c2y)、(c3x、c3y)とすれば、外積値は、−(c3y−c2y)×(c1x−c3x)+(c3x−c2x)×(c1y−c3y)の式により求められる。この場合、頂点c1〜c3が右回りの場合には外積値>0、頂点c1〜c3左回りの場合外積値<0、頂点c1〜c3が同一線上にある場合には外積値が0となる。外積値が正の場合は基本ポリゴンが表向きの場合に対応し、外積値が負の場合は基本ポリゴンが裏向きで表示されない場合に対応し、外積値が0の場合は基本ポリゴンが横向きで表示不可能な場合に対応する。このように演算を行なえば、辺c2c4は、隣接する基本ポリゴンがあるが、それが見えない辺、即ち輪郭辺に該当すると判断されることになる。
【0073】
以上のようにして輪郭辺を抽出する。図9の例では、辺c1c2、辺c1c3、辺c3c4、辺c2c4のすべてが輪郭辺として抽出されることになる。そしてかかる輪郭辺についてのデータは、輪郭辺判定部432から、線分生成部433へと送られる。線分生成部433は、受け取ったデータに基づいて、当該輪郭辺に沿って配置すべき線分を生成する(S505)。
【0074】
画像生成部434は、画像決定部420から送られたディスプレイ装置25に表示すべき画像についてのデータと、基本ポリゴン生成部431から送られた基本ポリゴンに関するデータと、及び線分生成部433からの線分に関するデータとに基づいて、基本ポリゴンを適宜組み合わせると共に、基本ポリゴンの輪郭辺のそれぞれに線分を配置することにより、ディスプレイ装置25で最終的に表示すべきポリゴン画像を生成する(S506)。
【0075】
そして、画像生成部434が作成した上記ポリゴン画像に関するデータがディスプレイ装置25に送られ、これに基づいてディスプレイに所望のポリゴン画像がディスプレイ装置25に表示されることになる(S507)。かかるポリゴン画像の例を図10(イ)で示す。この例では、Lの字状の立体物をポリゴンで表すと共にその輪郭線を表示している。線分は、輪郭線強調のために黒色で表示することとしている。
【0076】
尚、画像生成部434で画像を作成するために、基本ポリゴンと線分とを組み合わせる場合において、線分を、前記輪郭辺の外側に沿って描くとともに、表示を行なう際に前記線分と前記ポリゴンとが重複する場合には、前記ポリゴンを優先して表示するようにすることができる。このようにすることで、縁取り線以外の輪郭線は、その両側にある基本ポリゴンにより塗りつぶされたと同様の状態となるため、ポリゴン画像の縁取りを行なえるようになる。このようにして表示したポリゴン画像の例を図10(ロ)で示す。この場合には、図10(イ)で示した例と異なり、縁取り線以外の輪郭返上の線分(この図では、Lの横棒の下側にある輪郭辺上の線分)が消えており、結果的に縁取り処理が行なわれている。
【0077】
また、前記輪郭辺の外側に線分を描く場合においては、以下のような方法を用いて(S505)の線分生成を行なうことができる。
【0078】
この線分生成の一例を、図11を用いて説明する。この図11は、h、h、h、h、hを法線ベクトルとする各基本ベクトルの辺のうち、頂点V及びVで規定される輪郭辺V及びVの外側に配する線分を生成するための方法を説明するものである。
【0079】
この処理は、図11(イ)で示したように、各基本ポリゴンの法線ベクトルh、h、h、h、hを検出することから始める。法線ベクトルは、輪郭線を引くべき辺Vの両端部の頂点V、Vと接するすべての基本ポリゴンについて検出する。この例では、頂点Vと接する基本ポリゴンの法線ベクトルとしてh、及びh、h、hを検出し、また、頂点Vと接する基本ポリゴンの法線ベクトルとしてh、h、hを検出するので、結局h、h、h、h、hの各法線ベクトルを検出する。
【0080】
次に、図11(ロ)で示したように、頂点V、Vのそれぞれについて、頂点V、Vと接する基本ポリゴンの法線ベクトルの和を求める。そして、その和ベクトルと向きを等しくする単位ベクトルを、それぞれの頂点V、V毎に求める。この例では、頂点Vについての単位ベクトルとしてベクトルeを、頂点Vについての単位ベクトルとしてベクトルeを、それぞれ求める。
【0081】
次に、図11(ハ)で示したように、上記単位ベクトルe、eに、予め定めた所定の係数を乗算してそれぞれの頂点V、V毎に変移ベクトルを求める。この係数は、各頂点V、V毎に、頂点Vについてはα、Vについてはβというように予め定めておくことができる。この例では、ベクトルeに係数αを乗じたものとして頂点Vについての変移ベクトルαeを、ベクトルeに係数βを乗じたものとして頂点Vについての変移ベクトルβeを求める。
【0082】
そして、図11(ニ)で示したように、各頂点V、Vを基端として上記変移ベクトルαe、βeを配し、この変移ベクトルαe、βeの先端の点として、輪郭点V 、V を決定する。
【0083】
最後に、この輪郭点V 、V 及び、元の頂点V、Vで囲まれる矩形部分を輪郭辺Vに沿って配すべき線分として決定する。このようにして得られる線分は、隣接する線分同士がその接合部においてずれなく接合されるものとなるので、これにより得られる輪郭線は、非常に美しいものとなる。また、遠景の場合と近景の場合とで輪郭線の幅を変化したり、強調したい部分により太い輪郭線を表示したりすることも可能である。
【0084】
尚、図11で示した例では、輪郭点V 、V を、変移ベクトルαe、βeの先端の点として決定したが、頂点V、Vを基端とする単位ベクトルe、eの先端の点を輪郭点V 、V とし、かかる輪郭点V 、V 上と頂点V、Vとで囲まれる矩形部分を輪郭辺Vに沿って配すべき線分として決定することもできる。
【0085】
【発明の効果】
以上の説明から明らかなように、本発明によれば、ポリゴンを利用した立体画像に輪郭線を付けられるようになり、或いは縁取り処理を行なえるようになるため、ポリゴンを利用した画像表示技術の応用範囲を広げるに貢献し得る。この方法は、特に、ポリゴンを用いて漫画的、アニメーション的な画像を表示するに好適である。
【図面の簡単な説明】
【図1】本発明が適用されるゲーム装置本体の例を示すハードウエア構成図。
【図2】本発明の第1実施形態に係るビデオゲーム装置の構成例を示す機能ブロック図。
【図3】第1実施形態によるポリゴン画像表示方法の処理の流れを示す図。
【図4】第1実施形態の方法で、基本ポリゴン及び相似ポリゴンの配置を行なうために用いるワイヤフレームの一例を示す図。
【図5】相似ポリゴンの頂点の位置調整の方法を説明するための図。
【図6】第1実施形態によるポリゴン画像表示方法で表示したポリゴン画像の一例を示す図。
【図7】本発明の第2実施形態に係るビデオゲーム装置の構成例を示す機能ブロック図。
【図8】第2実施形態によるポリゴン画像表示方法の処理の流れを示す図。
【図9】第2実施形態による方法で輪郭辺の抽出手法を概念的に示す図。
【図10】第2実施形態によるポリゴン画像表示方法で表示したポリゴン画像の一例を示す図。
【図11】線分の生成方法の一例を説明するための図。
【符号の説明】
1 ゲーム装置本体
2 ビデオゲーム装置
210、410 指示情報解析部
220、420 画像決定部
230、430 制御部
240、440 基本ポリゴンデータ記録部
250 相似ポリゴンデータ記録部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a stereoscopic image display technique, and more particularly to a technique for displaying a stereoscopic image using a polygon.
[0002]
[Prior art]
As a technique for displaying a three-dimensional image, one using a polygon is known. Image display technology using polygons is generally performed by dividing the surface of a three-dimensional object with a complicated shape into fine polygons (polygons) and pasting patterns and patterns called textures on each of these polygons. Has been.
[0003]
The technology using such polygons is superior in that it requires less data than moving a real image such as a photo when it is necessary to create a movie, and still provides realistic video. ing. An image using a polygon is very excellent in that a three-dimensional expression is possible. Therefore, a technique using polygons has become widespread in game devices and the like in which it is indispensable to change images quickly in accordance with player instructions using these characteristics. Against this background, the image display technology using polygons aims at reducing both the burden on the device and displaying a realistic image with a rich stereoscopic effect. Research has progressed.
[0004]
By the way, as the use of polygons progresses, the advantage that the amount of data processing for displaying an image can be reduced and a real image can be displayed may be highlighted. For example, if a moving image created using a large number of cell images is displayed as a moving image using polygons, not only the burden on the apparatus but also the human burden associated with the creation of the cell image can be reduced. .
[0005]
However, moving images using polygons are very realistic because of the background of their development, and it is not necessarily good at expressing images composed of contour lines + solid images in moving images created using cell images. do not do. Therefore, at present, there is no technology for creating a moving image similar to that created using a cell image using an image display technology using a polygon.
[0006]
[Problems to be solved by the invention]
The present invention has been made in view of the current situation as described above, and is intended to broaden the application range of image display technology using polygons by allowing contour lines to be attached to stereoscopic images using polygons. Let that be the issue.
[0007]
[Means for Solving the Problems]
According to the present invention, an outline is attached to a stereoscopic image displayed using polygons by two approaches described below. Each will be described in turn below.
[0008]
A first method of the present invention is a method executed in an apparatus for displaying a polygon image generated by combining basic polygons for drawing a three-dimensional object on a predetermined display, on the front side of the basic polygons, A polygon image display method including a process of drawing a pair of face-down similar polygons that are larger than the basic polygons and have a similar shape to the basic polygons.
[0009]
This polygon image display method is a convention used in the image display technology using polygons, that is, a convention that the polygon is regarded as invisible when viewed from the back in order to prevent flickering of the image. It is used. The display of the similar polygon image as described above in addition to the basic polygon image as in the first method means that the entire three-dimensional object constituted by the combination of the basic polygons is different from these polygons. It means wrapping with similar polygons that have a relationship of orientation. When such processing is performed, the end portion of the similar polygon that is pasted to the basic polygon that is behind and not to be displayed appears on the stereoscopic image. In other words, the first method uses a portion of the similar polygon that protrudes from the basic polygon as the outline of the basic polygon. As is clear from the above description, the similar polygon is made larger than the basic polygon because it needs to protrude from the basic polygon. Further, since the thickness of the protruding portion is made substantially constant and functions as the outline of the basic polygon, the shape is similar to the basic polygon. Note that when the similar polygon has a shape similar to the basic polygon, there is an advantage that the similar polygon can be easily generated from the data related to the basic polygon. In order to emphasize similar polygons as contour lines, similar polygons can be provided with textures different from those provided for basic polygons.
[0010]
The similar polygon in this case can be created when displaying a polygon image by calculating based on the basic polygon data related to the basic polygon, or it can be created in advance in pairs with the basic polygon data. It is. When the similar polygon data is previously created in pairs with the basic polygon data, it can be recorded by the recording means and the similar polygon can be displayed based on the similar polygon data. In the latter case, it is not necessary to perform computation when displaying similar polygons, so it is necessary to display not only a predetermined image but also an image according to the player's operation contents each time. Suitable for application in the game field.
[0011]
In this method, the centroid of the similar polygon can be made to coincide with the centroid of the basic polygon that is paired with the similar polygon. By doing so, the width of each portion of the similar polygon that protrudes from the periphery of the basic polygon becomes constant, which is favorable for using the similar polygon as an outline.
[0012]
In the above method, the order of drawing the basic polygon and the similar polygon is not particularly limited. Either may be drawn first, or both may be drawn simultaneously. If the basic polygon is drawn after drawing the similar polygon, the image obtained by this polygon image display method is obtained by edging the image of the basic polygon. In other words, when multiple similar polygons or basic polygons overlap, the polygon closest to the viewpoint is displayed with priority, so draw the similar polygon first and paste it on this similar polygon. If the basic polygon is displayed later, the part of the similar polygon that is originally displayed as a contour line that has the basic polygon on both sides is not displayed on the polygon image because it is hidden by the basic polygon. It becomes like this. Therefore, according to this method, only the outline corresponding to the outer edge portion of the three-dimensional object displayed by the set of basic polygons as viewed from the current viewpoint is displayed on the three-dimensional image, and an edge effect can be obtained. .
[0013]
In the method described above, normal vectors of other basic polygons adjacent to each vertex of the basic polygon are detected, a unit vector whose direction is equal to the sum vector of these normal vectors is obtained, and the vertex is used as a base end. It is possible to include a process of taking contour points at the tips of the unit vectors and moving the corresponding vertices of the similar polygon onto the contour points. According to this method, each vertex of the similar polygon that determines the width of the protruding portion of each similar polygon can be arranged at a position separated by a unit vector from the vertex of the basic polygon. Since the width of the drawn contour line can be kept constant, a beautiful contour line can be displayed. This process can be performed in advance at the stage of creating data for drawing a similar polygon. If data for drawing similar polygons is created in this way in advance, only the similar polygons and basic polygons created by such data are displayed, and no special computation is required for display. Both can display beautiful outlines.
[0014]
In this case, a transition vector is obtained by multiplying the unit vector by a predetermined coefficient, a contour point is taken at the tip of the transition vector based on the points at both ends of the contour side, and the contour points The corresponding vertices of the similar polygon can be moved respectively. In this way, each contour line drawn by the protruding portion of the similar polygon can be drawn with a predetermined width. Thereby, since the strength of the contour line can be added, variations of the contour line display are enriched. The coefficient can be the same for all unit vectors, or can be different for each unit vector. In the latter case, the coefficients can be determined in advance with different values for each vertex of the basic polygon.
[0015]
The first method of the present invention described above can be realized by the following apparatus. Recording means for recording basic polygon data related to a basic polygon for drawing a three-dimensional object, and similar polygon data related to a reverse facing polygon that is larger than the basic polygon and has a similar shape to the basic polygon, and the recording means Based on the basic polygon data read from and the similar polygon data, the basic polygon and similar polygons that are paired with each basic polygon are generated, and the basic polygon image that is paired with the image of the basic polygon is displayed on a predetermined display. One example is a polygon image display device that includes a control unit that displays a polygon image including the image of the similar polygon arranged on the surface of the polygon.
[0016]
The first method of the present invention described above can also be realized by causing a predetermined computer device, for example, a game computer device or a home computer device to read the program code recorded on the recording medium. For example, from a recording means in which basic polygon data related to a basic polygon for drawing a three-dimensional object, and similar polygon data related to a reverse facing polygon that is larger than the basic polygon and similar in shape to the basic polygon are recorded in pairs, A process of reading the basic polygon data and the similar polygon data, a process of generating a basic polygon and a similar polygon that is paired with each basic polygon based on the read data, and an image of the basic polygon on a predetermined display An example is a computer-readable recording medium in which a program code for causing a computer device to execute processing for displaying a polygon image including the image of the similar polygon arranged on the surface of a pair of basic polygons is recorded. It is. The program code referred to in the present specification is a concept including not only the program itself but also data necessary for causing the game machine to execute the game and control parameters.
[0017]
The second method of the present invention is a method executed in an apparatus for displaying a stereoscopic image generated by combining basic polygons for drawing a three-dimensional object on a predetermined display. From this, a contour side consisting of a side where there is no adjacent basic polygon and a side shared with the adjacent basic polygon and where the adjacent basic polygon cannot be seen from the current viewpoint is extracted. A polygon image display method including a process of drawing a line segment along the line.
[0018]
In this method, among the sides of each basic polygon for generating a stereoscopic image, there are sides that do not have an adjacent basic polygon, and sides that are shared with the adjacent basic polygon, and the adjacent basic polygons from the current viewpoint. The side where the polygon cannot be seen is extracted as the contour side where the contour line should be drawn. By performing such extraction, writing a line segment along the contour side, and using this as a contour line, the contour line can be written at a required portion. In addition, when “the basic polygon is not visible”, there is another basic polygon on the front side so that another basic polygon is hidden behind it, or the surface where the basic polygon is not displayed faces the viewpoint side. Including cases. In the latter case, when a stereoscopic image is displayed using polygons, it is normal not to display polygons that face down to prevent image flickering. It is used for. In this method, it is not necessary to execute the method in the procedure of drawing the basic polygon first on the screen and then drawing the line segment. Regardless of the display procedure, it suffices that a line segment is finally displayed along the outside of the contour side of the basic polygon. The line segment may be drawn by placing a predetermined width inside each side of the basic polygon, by placing a texture different from the texture placed on the basic polygon, and a predetermined width outside each side of the basic polygon. This may be done by arranging a texture different from the texture arranged for the basic polygon, or both.
[0019]
In the second method, not only the side where the adjacent basic polygon does not exist is extracted, but also the side shared with the adjacent basic polygon and the side where the adjacent basic polygon cannot be seen from the current viewpoint is extracted. There is a need. This extraction may be performed by any method. For example, the normal vector of each basic polygon is identified, the inner product of these normal vectors and the line-of-sight vector along the line-of-sight direction from the viewpoint is obtained, and the adjacent basic polygon is determined according to whether the inner product is positive or negative. Extracting invisible edges, assigning order information in a predetermined order to each vertex or each side of each polygon, detecting the order information for each polygon, and arranging the order information from the viewpoint By extracting the side where the adjacent basic polygon cannot be seen, the side where the adjacent basic polygon exists but the adjacent basic polygon cannot be seen when viewed from the current viewpoint is extracted. It is possible to do. As an example of the latter, when order information is followed, it can be determined whether the order is clockwise or counterclockwise as viewed from the viewpoint.
[0020]
In this second method, the line segment is drawn along the outside of the contour side, and when the line segment and the polygon overlap when displayed, the polygon is preferentially displayed. ,be able to. In this way, if the basic polygon exists on both sides of the line segment that becomes the contour line, the state is the same as if it was overwritten by the basic polygon located on both sides, and it is not displayed on the polygon image. . Therefore, according to this method, only the contour line at the outer edge viewed from the current viewpoint of a certain three-dimensional object displayed by the set of basic polygons is displayed on the three-dimensional image, and the other contour lines are not displayed. Become. In other words, this method can perform border processing when displaying a stereoscopic image.
[0021]
In the second method of the present invention described above, it is necessary to draw a contour line along the contour side. In this case, any contour drawing method may be employed. For example, the following method may be employed. That is, a normal vector of each of the basic polygons adjacent to the points on both ends of the contour side is detected, a unit vector having the same direction as the sum vector of these normal vectors is obtained, and the points on both ends of the contour side are determined. A contour point is taken at the end of the unit vector as an end, and an image different from the texture arranged on the basic polygon including the contour side is formed between the contour side and the contour side obtained by connecting the contour points. This is a method of drawing a line segment along the contour side. According to this method, the width of each contour line is determined according to the position of the contour point, but this contour point is arranged at a position separated from the vertex of the basic polygon by a unit vector. A beautiful outline can be displayed by keeping the width of the drawn outline constant.
[0022]
In this method, a transition vector is obtained by multiplying the unit vector by a predetermined coefficient, a contour point is taken at the tip of the transition vector based on points at both ends of the contour side, and these contour points are obtained. A line segment is drawn along the contour side by arranging an image different from the texture disposed on the basic polygon including the contour side between the contour outer side obtained by tying and the contour side. be able to. In this way, each contour line to be drawn can be drawn with a predetermined width. As a result, the strength of the contour line can be added, so that variations of the contour line display can be enriched. The coefficient can be the same for all unit vectors, or can be different for each unit vector. In the latter case, the coefficients can be determined in advance with different values for each point of the basic polygon.
[0023]
The second method of the present invention described above can be realized by the following apparatus. A recording unit in which basic polygon data related to a basic polygon for drawing a three-dimensional object is recorded, and the basic polygon is generated based on the basic polygon data read from the recording unit, and adjacent to each of the sides of each basic polygon A contour side consisting of a side that does not have a basic polygon and a side that is shared with an adjacent basic polygon that cannot be seen from the current viewpoint is extracted and drawn along this contour side. One example is a polygon image display device that includes a control unit that generates a line segment to be generated and displays a polygon image including the basic polygon image and the line segment image on a predetermined display. .
[0024]
The second method of the present invention described above can also be realized by causing the program code recorded on the recording medium to be read by a predetermined computer device such as a game computer device or a home computer device. For example, a process of reading basic polygon data related to a basic polygon for drawing a three-dimensional object, a process of generating a three-dimensional image based on a combination of basic polygons based on the read data and an image of a similar polygon that is paired with each basic polygon, Out of the sides of each basic polygon, a contour side consisting of a side where there is no adjacent basic polygon and a side shared with the adjacent basic polygon that cannot be seen from the current viewpoint. For causing the computer device to execute a process of extracting, a process of generating a line segment drawn along the contour side, and a process of displaying the image of the basic polygon and the image of the line segment on a predetermined display One example is a computer-readable recording medium on which the program code is recorded.
[0025]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred first and second embodiments of the present invention will be described.
[0026]
First embodiment:The first embodiment relates to a method of displaying a polygon image with a contour line using similar polygons.
[0027]
The polygon image display method of this embodiment is executed by the following polygon image display device. This polygon image display is configured as a game apparatus body 2 that forms part of the video game apparatus. As the game apparatus main body 2, for example, the one described in JP-A-8-212377 can be used. A specific configuration example of the game apparatus main body 2 is as shown in FIG. 1. The main control unit 10, the image processing unit 20, the sound processing unit 30, the disk control unit 40, the communication control unit 50, and the functions described above. A main bus B for connecting the blocks 10 to 50 so as to be capable of bidirectional communication is provided.
[0028]
The main control unit 10 includes a CPU 11, a peripheral device controller 12 that performs interrupt control, DMA (direct memory access) transfer control, and the like, a main memory 13 that temporarily records game programs and presentation expression data, and an image processing unit 20. The ROM 14 stores an operating system (OS) for managing the acoustic processing unit 30 and the like. The CPU 11 is a RISC (reduced instruction setcomputor) CPU, which controls the basic operation of the entire apparatus by executing the OS recorded in the ROM 14 and executes a game program in the main memory 13. A plurality of functional blocks to be described later are realized.
[0029]
The image processing unit 20 is a geometry transfer engine (GTE) 21 that performs high-speed coordinate conversion or the like on the recording data in the main memory 13, and a polygon or sprite (polygon such as a triangle or a quadrangle: based on a drawing instruction from the CPU 11: Hereinafter, a graphics processing unit (GPU) 22 that performs a rendering process of a 3D CG image composed of a combination such as a sprite is also included in the concept of a polygon, and a 3D CG image rendered by the GPU 22 A frame buffer 23 for temporarily recording and an image decoder (MDEC) 24 for decoding compressed image data as necessary are provided. The display device 25 reads and displays the three-dimensional CG image recorded in the frame buffer 23. By continuously performing the above-described drawing processing by the GPU 22 and recording in the frame buffer 23, a three-dimensional CG image including a moving image element can be displayed on the display device 25.
[0030]
The sound processing unit 30 temporarily records a sound reproduction processing processor (SPU) 31 that generates sound effects, voices, musical sounds, and the like, sound effect data, and other sound source data based on background environment data related to sound. And a speaker 33 for outputting sound effects generated by the SPU 31. The SPU 31 has, for example, an ADPCM decoding function for reproducing sound source data subjected to adaptive differential encoding (ADPCM), a function for reproducing sound effects by reproducing sound source data recorded in the sound buffer 32, and a recording in the sound buffer 32. For example, a modulation function for modulating and reproducing reproduced sound source data. By providing such a function, the sound processing unit 30 can be used as a sampling sound source that generates sound effects based on sound source data recorded in the sound buffer 32.
[0031]
The disk control unit 40 reproduces the game program and effect expression data recorded on the CD-ROM 44 (hereinafter, the reproduced data is referred to as reproduction data), and error correction ( A CD-ROM decoder 42 that decodes the ECC (ECC) code when it is added, and a buffer 43 that temporarily records the reproduction data from the disk drive device 41 before recording it in the main memory 13. . The decoder 42 also constitutes a part of the sound processing unit 30. The audio output of the decoder 42 once enters the SPU 31, is mixed with the SPU output, and becomes the final audio output via the reverb unit.
[0032]
The communication control unit 50 includes a communication control device 51 that controls communication with the CPU 11 via the main bus B, a controller 52 that inputs instructions from the player, and a memory card 53 that records game settings and the like. I have. The controller 52 is an interface component for inputting the player's intention, and includes various commands that are displayed as well as a start key for instructing the start of a game, a reset key for instructing a game reset, and a movement of the character up, down, left and right. A selection key for matching the cursor to the menu or item, an instruction key for instructing a detailed operation of the character and an instruction of the selection menu, and the like are provided, and the state of each key is transmitted to the communication control device 51 by synchronous communication. The communication control device 51 transmits the state of each key of the controller 52 to the CPU 11. Thereby, an instruction from the player is transmitted to the CPU 11, and the CPU 11 performs image display and game development processing according to the instruction from the player based on the game program being executed.
[0033]
Further, the CPU 11 transmits various data at that time to the communication control device 51 when it is necessary to record the setting of the game in progress according to the scenario, the end of the game, or an intermediate result. The communication control device 51 records transmission data from the CPU 11 in the memory card 53. Since the memory card 53 is separated from the main bus B, the memory card 53 can be attached and detached while the power is on. As a result, game settings and the like can be recorded on a plurality of memory cards 53.
[0034]
The game apparatus body 2 includes a parallel input / output (I / O) port 61 connected to the main bus B and a serial input / output (I / O) port 62. Then, it is possible to connect to peripheral devices via the parallel I / O port 61, and to communicate with other video game devices and the like via the serial I / O port 62. Can be done.
[0035]
In the game apparatus body 2 configured as described above, when the power-on or reset process is performed with the CD-ROM 44 corresponding to the recording medium of the present invention mounted on the disk drive device 41, the CPU 11 executes the OS recorded in the ROM 14. To do. When the OS is executed, the CPU 11 initializes the entire apparatus, such as operation check, and controls the disk control unit 40 to read and execute the game program recorded on the CD-ROM 44 to the main memory 13. To do. By executing this game program, the CPU 11 forms a functional block as shown in FIG. The basic polygon data recorded in the basic polygon data recording units 240 and 440 described later and the similar polygon data recorded in the similar polygon data recording unit 250 have a considerably large data capacity. It is also possible to adopt a configuration in which the data is read directly from the CD-ROM 44 instead of being expanded to
[0036]
As shown in FIG. 2, the video game apparatus 2 of this embodiment includes an instruction information analysis unit 210, an image determination unit 220, a control unit 230, a basic polygon data recording unit 240 as a recording unit, and a similar polygon data recording unit 250. Is included.
[0037]
The instruction information analysis unit 210 is connected to the controller 52 and determines the operation content input from the controller 52 by the player's operation. The image determination unit 220 is connected to the instruction information analysis unit 210, and the display device 25 is based on the data about the operation content sent from the instruction information analysis unit 210, the game scenario, the game rules, and the like that have been preliminarily stored. The image to be displayed is determined.
[0038]
The control unit 230 includes a polygon generation unit 231 and an image generation unit 232.
[0039]
In the basic polygon data recording unit 240, data related to basic polygons for drawing a person or landscape to be displayed on the display device 25 by a combination thereof is recorded. The basic polygon data includes data that defines the shape and size of each basic polygon, the positional relationship with other basic polygons, the color and the texture of the pattern arranged on each basic polygon, and the like. In the similar polygon data recording unit 250, similar polygon data relating to similar polygons paired with each basic polygon is recorded. The similar polygon data includes data similar to that included in the basic polygon data. Here, each similar polygon is larger than the corresponding basic polygon, is similar in shape to the corresponding basic polygon, and has a different texture from the texture allocated to the corresponding basic polygon. There is a reverse relationship. That is, the similar polygon is such that a solid object formed by combining the polygons can wrap a solid object formed by combining the basic polygons face down.
[0040]
The polygon generation unit 231 reads basic polygon data and similar polygon data based on the data about the image to be displayed determined by the image determination unit 220, and generates the basic polygon and the similar polygon based on this data. ing. In addition, the polygon generation unit 231 includes an alignment unit 233 that detects the center of gravity of the basic polygon and the center of gravity of the similar polygon and aligns them.
[0041]
The image generation unit 232 generates a polygon image to be displayed on the display device 25 by combining the basic polygon and the similar polygon generated by the polygon generation unit 231. The image generation unit 231 includes an adjustment unit 234. The adjustment unit 234 functions to enhance the beauty of the contour line by finely adjusting the images of the basic polygon and the similar polygon assembled by the image generation unit 231.
[0042]
Next, an operation of the game apparatus body 2 will be described, and an example of a polygon image display method according to the present invention will be described.
[0043]
The game apparatus body 2 can execute a predetermined game according to a predetermined scenario, rule, and the like. Then, a polygon image is formed as follows when an image is displayed on the display device 25 accompanying the execution of the game or when a demonstration screen is displayed. The flow of processing is as shown in FIG.
[0044]
In displaying the polygon image, first, the instruction information analysis unit 220 determines the operation content input from the controller 52 including the presence or absence of input (S301). Data regarding the operation content determined by the instruction information analysis unit 210 is sent to the image determination unit 220. The image determination unit 220 determines an image to be displayed on the display device 25 based on the data and the game scenario (S302). Then, data related to the basic polygon necessary for creating the image is sent to the polygon generation unit 231, and other data necessary for the image generation is sent to the image generation unit 232.
[0045]
The polygon generation unit 231 reads the basic polygon data and the similar polygon data from the basic polygon data recording unit 240 and the similar polygon data recording unit 250, respectively, and generates a basic polygon and a similar polygon based on the basic polygon data and the similar polygon data (S303).
[0046]
The alignment unit 233 detects the centroids of the generated basic polygons and similar polygons, aligns the centroids of the paired basic polygons and similar polygons, and aligns the two (S304).
[0047]
Based on the data about the image to be displayed on the display device 25 sent from the image determination unit 220 and the data about the basic polygon and the similar polygon sent from the polygon generation unit 231, the image generation unit 232 Are combined as appropriate, and similar polygons corresponding to the basic polygons are arranged on the respective front sides of the basic polygons, and appropriate textures are arranged on the basic polygons and the similar polygons, respectively, so that the display device 25 finally A polygon image to be displayed is generated (S305). For example, a polygon image is generated by arranging a basic polygon, a similar polygon, and a predetermined texture while corresponding to a wire frame as shown in FIG. The reason why the wire frames are displayed in duplicate is that two wire frames, a basic polygon and a similar polygon, are illustrated. That is, the inner wire frame is composed of basic polygons, and the outer wire frame is composed of similar polygons. When placing or pasting basic polygons and similar polygons, first, they are placed or pasted from similar polygons, and then basic polygons are placed or pasted. When polygons overlap, the one closest to the viewpoint is preferentially displayed. Therefore, the polygon display image obtained in this example is one in which a contour line as a border line is displayed. The principle of outline display will be described later.
[0048]
Here, in the polygon image display method according to the present embodiment, the outline can be made beautiful by fine adjustment of the similar polygon by the adjustment unit 234. FIG. 5 conceptually shows the process. 5 (a) to (d) show the positions of the vertices of a similar polygon (not shown) as the vertices on the basic polygon corresponding to the vertices of the similar polygon whose position is to be adjusted (in this example, V0And V1) Is shown moving to a point determined based on the position.
[0049]
As shown in FIG. 5 (a), the process for drawing a beautiful contour line is a normal vector of each basic polygon. In this figure, the vector h0, H1, H2, H3, H4Start by detecting. The normal vector is the vertex V of the basic polygon corresponding to the vertex of the similar polygon to be moved.0, V1Detects all basic polygons in contact with. In this example, vertex V0H as the normal vector of the basic polygon that touches0And h2, H3, H4And the vertex V1H as the normal vector of the basic polygon that touches0, H1, H3, So h0, H1, H2, H3, H4Each normal vector is detected.
[0050]
Next, as shown in FIG. 5B, the vertex V of the basic polygon0, V1Each vertex V0, V1Finds the sum of normal vectors of basic polygons in contact with. Then, a unit vector whose direction is equal to the sum vector is set to each vertex V0, V1Ask every time. In this example, vertex V0About the vector h0+ Vector h2+ Vector h3+ Vector h4And the vector e as its unit vector0, Vertex V1About the vector h0+ Vector h1+ Vector h3And the vector e as its unit vector1Ask for.
[0051]
Next, as shown in FIG. 5C, the unit vector e0, E1Is multiplied by a predetermined coefficient to determine each vertex V0, V1A transition vector is obtained every time. This coefficient is calculated for each vertex V0, V1For each vertex V0For α, V1Can be determined in advance such as β. In this example, the vector e0As the product of the coefficient α0Transition vector αe for0The vector e1Vertex V as multiplied by coefficient β0Transition vector βe for0To seek.
[0052]
Then, as shown in FIG. 5 (d), each vertex V0, V1And the transition vector αe0, Βe0This transition vector αe0, Βe0As a point at the tip of the contour point V0 ', V1 'To decide. This contour point V0 ' , V1 'Is the vertex V0, V1And a point indicating the position to move the vertex on the corresponding polygon.
[0053]
Finally, this contour point V0 ' , V1 'Above, vertex V on similar polygon0, V1The corresponding vertex (not shown) is moved, and the similar polygon is finely adjusted. Contour lines thus obtained are joined together without deviation between adjacent contour lines. Further, for example, it is possible to display contour lines having different widths in the case of a distant view and in the case of a close view, or to display a thick contour line depending on a portion to be emphasized.
[0054]
In the example shown in FIG. 5, the contour point V0 ', V1 'To the transition vector αe0, Βe0Is determined as the point of the tip of0, V1A unit vector e0, E0The point at the tip of the contour point V0 ', V1 'And the contour point V0 ', V1 'Above, vertex V on similar polygon0, V1And the corresponding vertex (not shown) may be moved. In this embodiment, the adjustment unit 234 is arranged in the image generation unit 232. However, the adjustment unit 234 can be arranged in the polygon generation unit 231 or the similar polygon data recording unit 250. . Accordingly, if the polygon generation unit 231 generates a similar polygon that has been corrected in advance using the method described with reference to FIG. 5, the image generation unit 232 displays an image in which the corrected similar polygon and the basic polygon are combined. If the process to generate is performed, it will suffice. It is also possible to generate similar polygon data for the modified similar polygon image in advance and record it in the similar polygon data recording unit 250 from the beginning.
[0055]
After fine-tuning the similar polygon, a texture is placed on the similar polygon. This texture must be different from the texture that is placed on the basic polygon that is paired with the similar polygon. In this example, a texture of one black color is placed on each similar polygon. It is made to stand out as a contour line. In addition, instead of arranging a texture different from the texture arranged on the paired basic polygons on the similar polygons, a process of filling the similar polygons with, for example, a single color so as to display differently from the basic polygons may be performed.
[0056]
Then, the data related to the polygon image created by the image generation unit 232 is sent to the display device 25, and based on this, the desired polygon image is displayed on the display device 25 (S306).
[0057]
An example of such a polygon image is shown in FIG. In this example, as shown in FIG. 6A, the sphere A is expressed by a basic polygon. Although omitted in the drawing, the sphere A is represented by a set of a large number of basic polygons. On the outside of the sphere A, a sphere B expressed by a set of similar polygons is displayed. The similar polygon that displays the sphere B has a reverse-facing relationship with the basic polygon that displays the sphere A. When this is viewed from the current viewpoint X, only the hemisphere part closer to the viewpoint X is displayed for the sphere A under the rule that the polygons facing away from the predetermined viewpoint are not displayed. In other words, for the sphere B, only the hemispherical part far from the viewpoint X is displayed. Accordingly, an image when the sphere A and the sphere B are viewed from the viewpoint X is as shown in FIG. 6B. From the sphere A indicated by the similar polygon, the sphere A indicated by the basic polygon is used. The protruding portion appears to be the outline of the sphere A indicated by the basic polygon.
[0058]
Second embodiment:The second embodiment relates to a method of displaying a polygon image with a contour line by extracting a contour side from which a contour line is to be drawn from each side of the basic polygon and arranging a line segment there. In addition, illustration is abbreviate | omitted about the part similar to the case of 1st Embodiment among description of 2nd Embodiment.
[0059]
The polygon image display method according to the second embodiment is executed by the game apparatus main body 2 similar to that described in the first embodiment. The specific configuration of the game apparatus body 2 is as illustrated in FIG. In the game apparatus body 2 having such a configuration, when the power-on or reset process is performed with the CD-ROM 44 corresponding to the recording medium of the present invention mounted on the disk drive device 41, the CPU 11 executes the OS recorded in the ROM 14. To do. When the OS is executed, the CPU 11 initializes the entire apparatus, such as operation check, and controls the disk control unit 40 to read and execute the game program recorded on the CD-ROM 44 to the main memory 13. To do. By executing this game program, the CPU 11 forms a functional block as shown in FIG.
[0060]
As shown in FIG. 7, the video game apparatus 2 of the present embodiment includes an instruction information analysis unit 410, an image determination unit 420, a control unit 430, and a basic polygon data recording unit 440 as a recording unit. The instruction information analysis unit 410 and the image determination unit 420 have the same functions as the instruction information analysis unit 410 and the image determination unit 420 of the first embodiment.
[0061]
The basic polygon data recording unit 440 stores basic polygon data similar to that recorded by the basic polygon data recording unit 440 of the first embodiment.
[0062]
The control unit 430 includes a basic polygon generation unit 431, a contour side determination unit 432, and a line segment generation unit 433. The basic polygon generation unit 431 reads basic polygon data based on data about an image to be displayed determined by the image determination unit 420, and generates a basic polygon based on the data.
[0063]
The contour side determination unit 432 selects a contour line from among the sides of each polygon based on the data about the image to be displayed determined by the image determination unit 420, the data about the basic polygon sent from the basic polygon generation unit 431, and the like. Has a function of extracting a contour side to be drawn.
[0064]
The line segment generation unit 433 receives data on the contour side sent from the contour side determination unit 432, and generates a line segment to be arranged along the contour side based on the data.
[0065]
The image generation unit 434 receives the data about the basic polygon generated by the basic polygon generation unit 431, the data about the contour side extracted by the contour side determination unit 432, and the data about the line segment generated by the line segment generation unit 433. Based on these, a polygon image to be displayed on the display device 25 is generated.
[0066]
Next, an operation of the game apparatus body 2 will be described, and an example of a polygon image display method according to the present invention will be described. The flow of processing in such a case is as shown in FIG.
[0067]
The game apparatus body 2 can execute a predetermined game according to a predetermined scenario, rule, and the like. Then, a polygon image is formed as follows when an image is displayed on the display device 25 accompanying the execution of the game or when a demonstration screen is displayed.
[0068]
In displaying the polygon image, first, the instruction information analysis unit 410 determines the operation content input from the controller 52 including the presence / absence of input (S501). Data relating to the operation content determined by the instruction information analysis unit 410 is sent to the image determination unit 420. The image determination unit 420 determines an image to be displayed on the display device 25 based on the data and the game scenario (S502). Then, data related to the basic polygon necessary for creating the image is sent to the basic polygon generation unit 431, and other data necessary for the image generation is sent to the image generation unit 434.
[0069]
The basic polygon generation unit 431 reads basic polygon data from the basic polygon data recording unit 440 and generates a basic polygon based on the basic polygon data (S503).
[0070]
Next, based on the data sent from the image determination unit 420 and the data sent from the basic polygon generation unit 431, the contour side determination unit 432 extracts a predetermined contour side (S504). Such contour sides are sides of each basic polygon that do not have an adjacent basic polygon and sides that are shared with the adjacent basic polygon, and are sides where the adjacent basic polygon cannot be seen from the current viewpoint (in other words, In other words, the side that is shared with the basic polygon that is not drawn because the adjacent basic polygon is facing away from the viewpoint). An edge where there is no adjacent basic polygon can be easily determined by using the data sent from the image determination unit 420 and the data sent from the basic polygon generation unit 431 to determine how to combine the basic polygons. Can be sorted. In the example shown in FIG. 9, two basic polygons C (rectangular basic polygons defined by four vertices c1 to c4) and D (rectangular basic polygons defined by four vertices d1 to d4) are provided. Of these, the side c1c2 (meaning the side whose ends are defined by the vertices c1 and c2; the same applies hereinafter), the side c1c3, and the side c3c4 are sides where no adjacent basic polygons exist and are determined to be contour sides. become. The side c4c1 is a side shared with the adjacent basic polygon and is a side where the adjacent basic polygon cannot be seen from the current viewpoint, and is also determined as a contour side. Here, the side shared with the adjacent basic polygon and the side where the adjacent basic polygon cannot be seen from the current viewpoint is, as described above, the adjacent basic polygon facing away from the viewpoint. This means that the edge shared by the user can be selected by judging the front and back of adjacent basic polygons. The determination of the front and back of adjacent basic polygons can be performed, for example, by the following two methods.
[0071]
The first method is to identify the normal vectors of each basic polygon, find the inner product of these normal vectors and the line-of-sight vector along the line-of-sight direction from the viewpoint, and determine the adjacent basic polygons according to whether the inner product is positive or negative By extracting the side that cannot be seen. This will be described with reference to FIG. The normal vectors Cn and Dn for the basic polygons C and D shown in FIG. 9 are detected, and the inner product of these and the line-of-sight vector Xv along the line-of-sight direction from the viewpoint X is obtained by calculation. Assuming that the angle formed by the normal vector of the basic polygon and the line-of-sight vector Xv is θ, the calculation result is negative when 90 ° <θ <270 °, positive when −90 ° <θ <90 °, and θ = 0 when ± 90 °. These correspond to the case where the basic polygon is displayed face up, the basic polygon is not displayed because it is face down, and the case where the basic polygon cannot be displayed because it is horizontal. By performing the calculation in this way, it is determined that the side c2c4 corresponds to a side where there is an adjacent basic polygon but cannot be seen, that is, a contour side.
[0072]
The following method assigns a predetermined order information in advance to each vertex or each side of each polygon, detects the order information for each of the polygons, depending on how the order information is arranged from the viewpoint, This is a method of extracting a side where the adjacent basic polygon cannot be seen. This will be described with reference to FIG. In this example, codes c1 to c4 are assigned to the vertices of the basic polygon. The numbers c1 to c4 function as order information. Then, by following such numbers from c1 to c3, it is possible to discriminate the front and back sides of the basic polygons C and D by determining whether they are aligned clockwise or counterclockwise as viewed from the viewpoint X. . If the position coordinates of the vertices c1 to c3 dropped on the plane are (c1x, c1y), (c2x, c2y), (c3x, c3y), the outer product value is-(c3y-c2y) * (c1x-c3x) It is calculated | required by the type | formula of + (c3x-c2x) * (c1y-c3y). In this case, the outer product value> 0 when the vertices c1 to c3 are clockwise, the outer product value <0 when the vertices c1 to c3 are counterclockwise, and the outer product value is 0 when the vertices c1 to c3 are on the same line. . When the cross product value is positive, it corresponds to the case where the basic polygon is face up, when the cross product value is negative, it corresponds to the case where the basic polygon is not displayed face down, and when the cross product value is 0, the basic polygon is displayed sideways. Corresponding to the impossible case. If the calculation is performed in this way, it is determined that the side c2c4 corresponds to a side where there is an adjacent basic polygon but cannot be seen, that is, a contour side.
[0073]
The contour side is extracted as described above. In the example of FIG. 9, all of the side c1c2, the side c1c3, the side c3c4, and the side c2c4 are extracted as contour sides. The data about the contour side is sent from the contour side determination unit 432 to the line segment generation unit 433. The line segment generation unit 433 generates a line segment to be arranged along the contour side based on the received data (S505).
[0074]
The image generation unit 434 receives the data about the image to be displayed on the display device 25 sent from the image determination unit 420, the data about the basic polygon sent from the basic polygon generation unit 431, and the data from the line segment generation unit 433. Based on the data related to the line segment, the basic polygons are appropriately combined, and the line segment is arranged on each of the outline sides of the basic polygon, thereby generating a polygon image to be finally displayed on the display device 25 (S506). .
[0075]
Then, the data related to the polygon image created by the image generation unit 434 is sent to the display device 25, and based on this, the desired polygon image is displayed on the display device 25 (S507). An example of such a polygon image is shown in FIG. In this example, an L-shaped three-dimensional object is represented by a polygon and its outline is displayed. The line segment is displayed in black for emphasizing the outline.
[0076]
In addition, in order to create an image by the image generation unit 434, when combining a basic polygon and a line segment, the line segment is drawn along the outside of the contour side, and when the display is performed, the line segment and the line segment are combined. If the polygon overlaps, the polygon can be displayed with priority. By doing so, the contour lines other than the border line are in the same state as when they are filled with the basic polygons on both sides thereof, so that the polygon image can be bordered. An example of the polygon image displayed in this way is shown in FIG. In this case, unlike the example shown in FIG. 10 (a), the line segment on the contour return other than the border line (in this figure, the line segment on the contour side below the L horizontal bar) disappears. As a result, the trimming process is performed.
[0077]
When a line segment is drawn outside the contour side, the line segment generation (S505) can be performed using the following method.
[0078]
An example of this line segment generation will be described with reference to FIG. This FIG. 11 shows h0, H1, H2, H3, H4Vertices V among the sides of each basic vector whose normal vector is0And V1Contour side V defined by0And V1A method for generating a line segment to be placed outside the line will be described.
[0079]
As shown in FIG. 11 (a), this processing is performed by using the normal vector h of each basic polygon.0, H1, H2, H3, H4Start by detecting. The normal vector is the side V where the contour is to be drawn.0V1Vertex V at both ends of0, V1Detects all basic polygons in contact with. In this example, vertex V0H as the normal vector of the basic polygon that touches0And h2, H3, H4And the vertex V1H as the normal vector of the basic polygon that touches0, H1, H3, So h0, H1, H2, H3, H4Each normal vector of is detected.
[0080]
Next, as shown in FIG.0, V1For each of the vertices V0, V1Finds the sum of normal vectors of basic polygons in contact with. Then, a unit vector whose direction is equal to the sum vector is set to each vertex V0, V1Ask every time. In this example, vertex V0Vector e as the unit vector for0, Vertex V1Vector e as the unit vector for1For each.
[0081]
Next, as shown in FIG. 11C, the unit vector e0, E1Is multiplied by a predetermined coefficient to determine each vertex V0, V1A transition vector is obtained every time. This coefficient is calculated for each vertex V0, V1For each vertex V0For α, V1Can be determined in advance such as β. In this example, the vector e0As the product of the coefficient α0Transition vector αe for0The vector e1Vertex V as multiplied by coefficient β0Transition vector βe for0Ask for.
[0082]
Then, as shown in FIG. 11D, each vertex V0, V1And the transition vector αe0, Βe0This transition vector αe0, Βe0As a point at the tip of the contour point V0 ', V1 'To decide.
[0083]
Finally, this contour point V0 ' , V1 'And the original vertex V0, V1The rectangle surrounded by0V1It is determined as a line segment to be arranged along. Since the line segments obtained in this manner are joined without deviation at the joints between adjacent line segments, the resulting contour line is very beautiful. It is also possible to change the width of the contour line between a distant view and a close view, or to display a thick contour line depending on the portion to be emphasized.
[0084]
In the example shown in FIG. 11, the contour point V0 ', V1 'To the transition vector αe0, Βe0Is determined as the point of the tip of0, V1A unit vector e0, E0The point at the tip of the contour point V0 ', V1 'And the contour point V0 ', V1 'Top and vertex V0, V1A rectangular part surrounded by0V1It can also be determined as a line segment to be arranged along.
[0085]
【The invention's effect】
As is clear from the above description, according to the present invention, it becomes possible to add a contour line to a stereoscopic image using a polygon or to perform a bordering process. Can contribute to broaden the application range. This method is particularly suitable for displaying cartoon-like and animation-like images using polygons.
[Brief description of the drawings]
FIG. 1 is a hardware configuration diagram showing an example of a game apparatus main body to which the present invention is applied.
FIG. 2 is a functional block diagram showing a configuration example of a video game apparatus according to the first embodiment of the present invention.
FIG. 3 is a diagram showing a process flow of a polygon image display method according to the first embodiment.
FIG. 4 is a diagram showing an example of a wire frame used for arranging basic polygons and similar polygons by the method of the first embodiment.
FIG. 5 is a diagram for explaining a method of adjusting the position of the vertex of a similar polygon.
FIG. 6 is a diagram showing an example of a polygon image displayed by the polygon image display method according to the first embodiment.
FIG. 7 is a functional block diagram showing a configuration example of a video game apparatus according to a second embodiment of the present invention.
FIG. 8 is a diagram showing a processing flow of a polygon image display method according to a second embodiment.
FIG. 9 is a diagram conceptually showing a contour edge extraction method by the method according to the second embodiment.
FIG. 10 is a diagram showing an example of a polygon image displayed by the polygon image display method according to the second embodiment.
FIG. 11 is a diagram for explaining an example of a line segment generation method;
[Explanation of symbols]
1 Game console
2 Video game device
210, 410 Instruction information analysis unit
220, 420 Image determination unit
230, 430 control unit
240, 440 Basic polygon data recording part
250 Similar polygon data recording part

Claims (10)

立体物描画用の基本ポリゴンを組み合わせることにより生成したポリゴン画像を、所定のディスプレイ上に表示するものであり、ポリゴン画像を生成する制御部を備えてなる装置にて実行される方法であって、
前記制御部が、
立体物描画用の基本ポリゴンに関する基本ポリゴンデータが記録された所定の記録手段から、前記基本ポリゴンデータを読み出し、これに基いて基本ポリゴンを生成する過程、
各基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出し、この輪郭辺に沿って線分を描く過程、
を含んでおり、
且つ、前記線分を、前記輪郭辺の外側に沿って描くとともに、前記ディスプレイに表示を行なう際に、前記線分と前記基本ポリゴンとが重複する場合には、前記制御部が、前記基本ポリゴンを優先して表示する、
ポリゴン画像表示方法。
A polygon image generated by combining basic polygons for drawing a three-dimensional object is displayed on a predetermined display, and is a method executed by an apparatus including a control unit that generates a polygon image,
The control unit is
A process of reading out the basic polygon data from a predetermined recording means in which basic polygon data relating to a basic polygon for drawing a three-dimensional object is recorded, and generating a basic polygon based on the basic polygon data,
Out of the sides of each basic polygon, a contour side consisting of a side where there is no adjacent basic polygon and a side shared with the adjacent basic polygon that cannot be seen from the current viewpoint. The process of extracting and drawing a line segment along this contour side,
Contains
In addition, when the line segment is drawn along the outside of the outline side and displayed on the display, if the line segment and the basic polygon overlap, the control unit is configured to display the basic polygon. Display with priority,
Polygon image display method.
立体物描画用の基本ポリゴンを組み合わせることにより生成したポリゴン画像を、所定のディスプレイ上に表示するものであり、ポリゴン画像を生成する制御部を備えてなる装置にて実行される方法であって、
前記制御部が、
立体物描画用の基本ポリゴンに関する基本ポリゴンデータが記録された所定の記録手段から、前記基本ポリゴンデータを読み出し、これに基いて基本ポリゴンを生成する過程、
各基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出し、この輪郭辺に沿って線分を描く過程、
を含んでおり、
且つ、前記制御部が、前記輪郭辺の両端の点と隣接する前記各基本ポリゴンの法線ベクトルを検出するとともにこれら法線ベクトルの和ベクトルと向きを等しくする単位ベクトルを求め、前記輪郭辺の両端の点を基端とした前記単位ベクトルの先端に輪郭点を取り、これら輪郭点を結んで得た輪郭外辺と前記輪郭辺との間に、当該輪郭辺を含む基本ポリゴンに配されたテクスチャと異なる画像を配することで、前記輪郭辺に沿って線分を描く、
ポリゴン画像表示方法。
A polygon image generated by combining basic polygons for drawing a three-dimensional object is displayed on a predetermined display, and is a method executed by an apparatus including a control unit that generates a polygon image,
The control unit is
A process of reading out the basic polygon data from a predetermined recording means in which basic polygon data relating to a basic polygon for drawing a three-dimensional object is recorded, and generating a basic polygon based on the basic polygon data,
Out of the sides of each basic polygon, a contour side consisting of a side where there is no adjacent basic polygon and a side shared with the adjacent basic polygon that cannot be seen from the current viewpoint. The process of extracting and drawing a line segment along this contour side,
Contains
In addition, the control unit detects a normal vector of each basic polygon adjacent to both ends of the contour side and obtains a unit vector whose direction is equal to the sum vector of the normal vectors, and A contour point is taken at the tip of the unit vector with the points at both ends as bases, and the contour polygon is arranged between the contour outer side obtained by connecting these contour points and the contour side, and arranged on the basic polygon including the contour side Draw a line segment along the contour side by arranging an image different from the texture.
Polygon image display method.
前記制御部は、前記各基本ポリゴンの法線ベクトルを識別し、これら法線ベクトルと、前記視点からの視線方向に沿う視線ベクトルとの内積を求め、その内積の正負の別により、前記隣接する基本ポリゴンが見えない辺を抽出する、
請求項1又は2記載のポリゴン画像表示方法。
The control unit identifies normal vectors of the respective basic polygons, obtains an inner product of these normal vectors and a line-of-sight vector along the line-of-sight direction from the viewpoint, and determines whether the adjacent product is different depending on whether the inner product is positive or negative. Extract the side where the basic polygon is not visible,
The polygon image display method according to claim 1 or 2.
前記制御部は、前記各基本ポリゴンの各頂点又は各辺に予め所定順の順序情報を割り当てておき、前記各基本ポリゴン毎にその順序情報を検出し、前記視点から見た順序情報の並び方の別により、当該隣接する基本ポリゴンが見えない辺を抽出する、
請求項1又は2記載のポリゴン画像表示方法。
The control unit previously assigns a predetermined order information to each vertex or each side of each basic polygon, detects the order information for each basic polygon, and determines how the order information is arranged from the viewpoint. Separately, the side where the adjacent basic polygon cannot be seen is extracted.
The polygon image display method according to claim 1 or 2.
前記制御部は、前記単位ベクトルに予め定めた所定の係数を乗算して変移ベクトルを求め、前記輪郭辺の両端の点を基端とした前記変移ベクトルの先端に輪郭点を取り、これら輪郭点を結んで得た輪郭外辺と前記輪郭辺との間に、当該輪郭辺を含む基本ポリゴンに配されたテクスチャと異なる画像を配することで、前記輪郭辺に沿って線分を描く、請求項2記載のポリゴン画像表示方法。The control unit obtains a transition vector by multiplying the unit vector by a predetermined coefficient, takes a contour point at the tip of the transition vector based on points at both ends of the contour side, and sets the contour points. A line segment is drawn along the contour side by disposing an image different from the texture disposed on the basic polygon including the contour side between the contour outer side obtained by connecting the contour line and the contour side. Item 3. The polygon image display method according to Item 2. 前記係数は、前記基本ポリゴンの各頂点毎に予め異なる値で定められている、
請求項5記載のポリゴン画像表示方法。
The coefficient is determined in advance with a different value for each vertex of the basic polygon.
The polygon image display method according to claim 5.
立体物描画用の基本ポリゴンに関する基本ポリゴンデータが記録された所定の記録手段と、
該記録手段から読み出した基本ポリゴンデータに基づいて前記基本ポリゴンを生成するとともに、各基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出して、この輪郭辺に沿って描かれる線分を生成し、所定のディスプレイに、前記基本ポリゴンの画像と前記線分の画像とを含むポリゴン画像を表示する制御手段と、
を含んで構成され、
前記制御手段は、前記線分を、前記輪郭辺の外側に沿って描くとともに、表示を行なう際に、前記線分と前記基本ポリゴンとが重複する場合には、前記基本ポリゴンを優先して表示するようになっている、
ポリゴン画像表示装置。
Predetermined recording means in which basic polygon data relating to a basic polygon for drawing a three-dimensional object is recorded;
The basic polygon is generated based on the basic polygon data read from the recording means, and among the sides of each basic polygon, there are sides that do not have an adjacent basic polygon and sides that are shared with the adjacent basic polygon. Extracting a contour side consisting of a side where the adjacent basic polygon cannot be seen from the current viewpoint, generating a line segment drawn along the contour side, and displaying the image of the basic polygon on the predetermined display Control means for displaying a polygon image including a line segment image;
Comprising
The control means draws the line segment along the outside of the contour side, and when the line segment and the basic polygon overlap when displaying, the basic polygon is preferentially displayed. Is supposed to
Polygon image display device.
立体物描画用の基本ポリゴンに関する基本ポリゴンデータが記録された所定の記録手段と、
該記録手段から読み出した基本ポリゴンデータに基づいて前記基本ポリゴンを生成するとともに、各基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出して、この輪郭辺に沿って描かれる線分を生成し、所定のディスプレイに、前記基本ポリゴンの画像と前記線分の画像とを含むポリゴン画像を表示する制御手段と、
を含んで構成され、
前記制御手段は、前記輪郭辺の両端の点と隣接する前記各基本ポリゴンの法線ベクトルを検出するとともにこれら法線ベクトルの和ベクトルと向きを等しくする単位ベクトルを求め、前記輪郭辺の両端の点を基端とした前記単位ベクトルの先端に輪郭点を取り、これら輪郭点を結んで得た輪郭外辺と前記輪郭辺との間に、当該輪郭辺を含む基本ポリゴンに配されたテクスチャと異なる画像を配することで、前記輪郭辺に沿って線分を描くようになっている、
ポリゴン画像表示装置。
Predetermined recording means in which basic polygon data relating to a basic polygon for drawing a three-dimensional object is recorded;
The basic polygon is generated based on the basic polygon data read from the recording means, and among the sides of each basic polygon, there are sides that do not have an adjacent basic polygon and sides that are shared with the adjacent basic polygon. Extracting a contour side consisting of a side where the adjacent basic polygon cannot be seen from the current viewpoint, generating a line segment drawn along the contour side, and displaying the image of the basic polygon on the predetermined display Control means for displaying a polygon image including a line segment image;
Comprising
The control means detects a normal vector of each of the basic polygons adjacent to the points at both ends of the contour side, obtains a unit vector having the same direction as the sum vector of the normal vectors, and obtains a unit vector at both ends of the contour side. A contour point is taken at the tip of the unit vector with a point as a base, and a texture disposed on a basic polygon including the contour side between the contour side and the contour side obtained by connecting the contour points; By arranging different images, a line segment is drawn along the contour side.
Polygon image display device.
立体物描画用の基本ポリゴンを組み合わせることにより生成したポリゴン画像を、所定のディスプレイ上に表示するものであり、ポリゴン画像を生成するコンピュータを備えてなる装置の前記コンピュータに、
立体物描画用の基本ポリゴンに関する基本ポリゴンデータを所定の記録手段から読み出す処理、
この読み出したデータに基づいて前記基本ポリゴンの組み合わせによる立体画像を生成する処理、
各前記基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出する処理、
この輪郭辺に沿って描かれる線分を生成する処理、
前記所定のディスプレイに、前記基本ポリゴンの画像と前記線分の画像とを表示する処理、
前記線分を、前記輪郭辺の外側に沿って描くとともに、表示を行なう際に、前記線分と前記基本ポリゴンとが重複する場合には、前記基本ポリゴンを優先して表示する処理、
を、実行させるためのプログラムコードが記録されたコンピュータ読み取り可能な記録媒体。
A polygon image generated by combining basic polygons for drawing a three-dimensional object is displayed on a predetermined display, and the computer of the apparatus comprising a computer for generating a polygon image is provided with the computer.
A process of reading basic polygon data related to a basic polygon for drawing a three-dimensional object from a predetermined recording means;
A process of generating a stereoscopic image based on the combination of the basic polygons based on the read data;
Out of the sides of each of the basic polygons, a contour side consisting of a side where there is no adjacent basic polygon and a side shared with the adjacent basic polygon that cannot be seen from the current viewpoint Processing to extract,
Processing to generate line segments drawn along this contour side,
Processing for displaying the basic polygon image and the line segment image on the predetermined display;
The line segment is drawn along the outside of the contour side, and when the line segment and the basic polygon overlap when displayed, a process of displaying the basic polygon preferentially;
Is a computer-readable recording medium on which program code for executing the program is recorded.
立体物描画用の基本ポリゴンを組み合わせることにより生成したポリゴン画像を、所定のディスプレイ上に表示するものであり、ポリゴン画像を生成するコンピュータを備えてなる装置の前記コンピュータに、
立体物描画用の基本ポリゴンに関する基本ポリゴンデータを所定の記録手段から読み出す処理、
この読み出したデータに基づいて前記基本ポリゴンの組み合わせによる立体画像を生成する処理、
各前記基本ポリゴンの辺の中から、隣接する基本ポリゴンが存在しない辺と、隣接する基本ポリゴンと共有する辺であって、現在の視点から当該隣接する基本ポリゴンが見えない辺とからなる輪郭辺を抽出する処理、
この輪郭辺に沿って描かれる線分を生成する処理、
前記所定のディスプレイに、前記基本ポリゴンの画像と前記線分の画像とを表示する処理、
前記輪郭辺の両端の点と隣接する前記各基本ポリゴンの法線ベクトルを検出するとともにこれら法線ベクトルの和ベクトルと向きを等しくする単位ベクトルを求め、前記輪郭辺の両端の点を基端とした前記単位ベクトルの先端に輪郭点を取り、これら輪郭点を結んで得た輪郭外辺と前記輪郭辺との間に、当該輪郭辺を含む基本ポリゴンに配されたテクスチャと異なる画像を配することで、前記輪郭辺に沿って線分を描く処理、
を、実行させるためのプログラムコードが記録されたコンピュータ読み取り可能な記録媒体。
A polygon image generated by combining basic polygons for drawing a three-dimensional object is displayed on a predetermined display, and the computer of the apparatus comprising a computer for generating a polygon image is provided with the computer.
A process of reading basic polygon data related to a basic polygon for drawing a three-dimensional object from a predetermined recording means;
A process of generating a stereoscopic image based on the combination of the basic polygons based on the read data;
Out of the sides of each of the basic polygons, a contour side consisting of a side where there is no adjacent basic polygon and a side shared with the adjacent basic polygon that cannot be seen from the current viewpoint Processing to extract,
Processing to generate line segments drawn along this contour side,
Processing for displaying the basic polygon image and the line segment image on the predetermined display;
Detecting normal vectors of the respective basic polygons adjacent to the points at both ends of the contour side and obtaining unit vectors having the same direction as the sum vector of these normal vectors, and using the points at both ends of the contour side as base ends An outline point is taken at the tip of the unit vector, and an image different from the texture arranged on the basic polygon including the outline side is arranged between the outline side obtained by connecting the outline points and the outline side. The process of drawing a line segment along the contour side,
Is a computer-readable recording medium on which program code for executing the program is recorded.
JP2002018308A 2002-01-28 2002-01-28 Polygon image display method, polygon image display device, and recording medium Expired - Fee Related JP3639256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002018308A JP3639256B2 (en) 2002-01-28 2002-01-28 Polygon image display method, polygon image display device, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002018308A JP3639256B2 (en) 2002-01-28 2002-01-28 Polygon image display method, polygon image display device, and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP28087199A Division JP3647691B2 (en) 1999-09-30 1999-09-30 Polygon image display method, polygon image creation apparatus, and recording medium

Publications (2)

Publication Number Publication Date
JP2002312808A JP2002312808A (en) 2002-10-25
JP3639256B2 true JP3639256B2 (en) 2005-04-20

Family

ID=19192087

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002018308A Expired - Fee Related JP3639256B2 (en) 2002-01-28 2002-01-28 Polygon image display method, polygon image display device, and recording medium

Country Status (1)

Country Link
JP (1) JP3639256B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4560711B2 (en) * 2004-06-22 2010-10-13 株式会社セガ Image processing

Also Published As

Publication number Publication date
JP2002312808A (en) 2002-10-25

Similar Documents

Publication Publication Date Title
JP5706241B2 (en) Image generation program, image generation apparatus, image generation system, and image generation method
US8602888B2 (en) Video game device and image processing program
US8319777B2 (en) Character display, character displaying method, information recording medium, and program
JP4672072B2 (en) Method and apparatus for providing non-realistic cartoon outline in 3D video graphics system
JP3702269B2 (en) Image processing apparatus, computer control method, and program
WO2005109345A1 (en) Display, displaying method, information recording medium, and program
JP3661167B2 (en) Apparatus and method for performing refraction mapping
JP3647691B2 (en) Polygon image display method, polygon image creation apparatus, and recording medium
JP3777288B2 (en) GAME SYSTEM AND INFORMATION STORAGE MEDIUM
JP2002042156A (en) Game system and information storage medium
US6717575B2 (en) Image drawing method, image drawing apparatus, recording medium, and program
JP4749064B2 (en) Program, information storage medium, and image generation system
JP4167358B2 (en) Image generation system and information storage medium
JP3413383B2 (en) GAME SYSTEM AND INFORMATION STORAGE MEDIUM
JP3639256B2 (en) Polygon image display method, polygon image display device, and recording medium
TW578080B (en) Image processing method
JP3084557B2 (en) Fluid image simple display method, image display device, recording medium
TW540009B (en) Method and apparatus for performing perspective transformation
JP3297410B2 (en) Image generation system and information storage medium
JP4394211B2 (en) Image generation system and information storage medium
JP2001149639A (en) Picture image processing device, picture image formation method, and storage medium
JP3254195B2 (en) Image generation system and information storage medium
MXPA01012052A (en) Method and apparatus for generating images.
JP4391633B2 (en) Image generation system and information storage medium
JP4803909B2 (en) Image generation system, program, and information storage medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041221

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050111

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050113

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

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

Free format text: PAYMENT UNTIL: 20080121

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

Free format text: JAPANESE INTERMEDIATE CODE: R313115

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

Year of fee payment: 3

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

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

Free format text: PAYMENT UNTIL: 20080121

Year of fee payment: 3

R370 Written measure of declining of transfer procedure

Free format text: JAPANESE INTERMEDIATE CODE: R370

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 4

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 4

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100121

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120121

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140121

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees