JP3712451B2 - Image composition method and image composition apparatus - Google Patents
Image composition method and image composition apparatus Download PDFInfo
- Publication number
- JP3712451B2 JP3712451B2 JP30506795A JP30506795A JP3712451B2 JP 3712451 B2 JP3712451 B2 JP 3712451B2 JP 30506795 A JP30506795 A JP 30506795A JP 30506795 A JP30506795 A JP 30506795A JP 3712451 B2 JP3712451 B2 JP 3712451B2
- Authority
- JP
- Japan
- Prior art keywords
- vertex
- vertices
- joint
- image composition
- image
- 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
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Image Generation (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、画像合成方法及び画像合成装置に関し、特に、複数のモデルの関節運動を好適に画像表示する画像合成方法及び画像合成装置に関する。
【0002】
【背景技術及び発明が解決しようとする課題】
従来より、複数のオブジェクト(部品)の組み合わせからなる表示物が記憶装置内に構築されたオブジェクト空間において様々な動作を行う様子を画像出力する画像合成装置が広く親しまれている。
【0003】
ところで、この形式の画像合成装置において、表示物のオブジェクト空間における動きを滑らかに表示することは該画像合成装置の表示画像の質を高める上で必須であり、そのため、必要な画像処理を複雑化することなく表示物の関節部分の画像表示を滑らかなものとする技術が望まれていた。
【0004】
本発明は、このような問題に鑑みてなされたものであり、表示物の関節部分の画像表示を好適なものとすることができる画像合成方法及び画像合成装置を提供することを課題とする。
【0005】
【課題を解決するための手段】
本発明は、オブジェクト空間に配置され、頂点によって特定されるポリゴンが組み合わされてなる複数のオブジェクトのうち、隣り合う第1オブジェクトと第2オブジェクトとが行う関節運動をリアルタイム画像表示する画像合成方法であって、前記第1オブジェクトを、前記第2オブジェクトに近接して第0頂点から第(n−1)頂点までのn個の頂点により特定される第1関節面を含むように形成し、前記第2オブジェクトを、前記第1オブジェクトに近接して第0頂点から第(n−1)頂点までのn個の頂点により特定される第2関節面を含むように形成し、前記第1及び第2オブジェクトを構成するポリゴンの前記関節運動の前後での頂点の位置情報を所与の時間毎に導出する位置情報導出ステップと、第1オブジェクトの第0頂点から第(n−1)頂点を、それぞれ、第2オブジェクトの第0頂点から第(n−1)頂点とするオブジェクト連結ステップと、前記関節運動に際して前記第1オブジェクトと前記第2オブジェクトとに所与の捻れが生じた場合に、該捻れの角度に対応して増減する整数である頂点シフト数m及び下記の式によって導出されるF(i)を用いて、前記第1オブジェクトの第i頂点を前記第2オブジェクトの第F(i)頂点とする頂点循環ステップとを含むことを特徴とする。
【0006】
F(i)=mod(m+i,n)
(ここで、mod(X,Y)は、XをYで割ったときの剰余を表す。)
本発明によれば、位置情報導出ステップによって第1オブジェクト及び第2オブジェクトのポリゴンの頂点の位置情報が導出される。そして、オブジェクト連結ステップは、導出された第1オブジェクトの頂点の位置情報のうち前記第1関節面に含まれる前記第0頂点から第(n−1)頂点を、第2オブジェクトの前記第2関節面に含まれる前記第0頂点から第(n−1)頂点として、両オブジェクトを共通の関節面にて隙間無く連結する。
【0007】
更に、本発明によれば、前記第1オブジェクトと前記第2オブジェクトとの間に捻れが生じた場合に、前記頂点循環ステップによって、前記第1オブジェクトの第i頂点を前記2オブジェクトの第F(i)頂点として、前記第2オブジェクトの関節面に含まれる頂点を捻れに対応して循環させる。
【0008】
例えば、前記第1オブジェクト及び前記第2オブジェクトが第0頂点から第5頂点までの6個の頂点によって特定される正6角形の関節面を持つ場合は、前記オブジェクト連結ステップによって、第1オブジェクトの第i頂点と第2オブジェクトの第i頂点とが一致して画像合成される(i=0,…,5)。そして、第1オブジェクトと第2オブジェクトとの間に120゜の捻れが生じる場合には、例えば、前記頂点シフト数mをm=2とし、前記頂点循環ステップによって、前記第1オブジェクトの第i頂点を前記第2オブジェクトの第F(i)頂点として用いる(i=0,…,5)。
【0009】
この場合、上記F(i)を表す式において、頂点シフト数はm=2であり、頂点数nはn=6であるから、各F(i)は、
F(0)=mod(2+0,6)=2、
F(1)=mod(2+1,6)=3、
F(2)=mod(2+2,6)=4、
F(3)=mod(2+3,6)=5、
F(4)=mod(2+4,6)=0、
F(5)=mod(2+5,6)=1、
となり、
第1オブジェクトの第0頂点は第2オブジェクトの第2頂点と、
第1オブジェクトの第1頂点は第2オブジェクトの第3頂点と、
第1オブジェクトの第2頂点は第2オブジェクトの第4頂点と、
第1オブジェクトの第3頂点は第2オブジェクトの第5頂点と、
第1オブジェクトの第4頂点は第2オブジェクトの第0頂点と、
第1オブジェクトの第5頂点は第2オブジェクトの第1頂点と、
して、それぞれ循環して再定義される。
【0010】
こうすれば、前記第1オブジェクトと前記第2オブジェクトとを裂け目無く滑らかに連結することができ、更に、前記第1オブジェクトと前記第2オブジェクトとの間に捻れが生じた場合にも自然な捻れの補正を行うことができる。
【0011】
【発明の実施の形態】
本発明者は、画像合成装置の開発過程において、表示物の関節を介して隣接する2つのオブジェクト(部品)を、図1Aに示すように、いずれも固定した形状をなすように形成した場合、関節10の動き(以下「関節運動」という)に際して該関節10付近の画像表示が見苦しくなるという問題を認識した。
【0012】
すなわち、関節10を介して隣接する2つのオブジェクト12、14がいずれも固定形状をなす場合には、関節運動の態様に応じて、例えば、図1Bに示すように関節10の外側に裂け目16が生じていずれかのオブジェクトの一端面が露出して画像表示されるという問題がある。
【0013】
あるいは、図1Cに示すように関節部分で隣接する2つのオブジェクト12、14が互いに重なり合うような関節運動の態様においては、該関節10で両オブジェクトの側面が互いに交差する。このため陰面処理の手法によっては表示される側面が頻繁に交代して画像表示にちらつきが生じる等の問題がある。
【0014】
以上のように、いずれの場合も関節部分の画像表示は見苦しく画像合成装置の娯楽性を著しく損ねてしまう。このような問題を解決するために、本発明者は固定形状をなす複数のオブジェクトのみの組み合わせによって表示物を構成していたという従来の技術を見直し、関節部分において側面が伸縮するオブジェクトを画像表示するという発明を創作するに至った。
【0015】
以下、本発明の実施例について図面に基づき詳細に説明する。
【0016】
図2は本実施例にかかる画像合成装置を用いた隣接する2つのオブジェクトの関節運動の画像表示を示す図である。同図に示す2つのオブジェクトA、オブジェクトBは12枚のポリゴンの組み合わせによって6角柱状に形成されていて、それぞれの関節面18が同一となるようにして滑らかに接続されている。そして、関節運動の前後に際してオブジェクトBにおけるオブジェクトAに接する6枚のポリゴン(以下、「伸縮ポリゴン」という)PB0…PB5が、オブジェクトAとオブジェクトBとが互いに接するように伸縮する。尚、伸縮ポリゴンPB3…PB5は図示されておらず、伸縮ポリゴンPB3、PB4、PB5はそれぞれ順に伸縮ポリゴンPB0、PB1、PB2に対向する位置に配されている。
【0017】
同図に示すように、2つのオブジェクトの隣接する端面を互いに一致させて関節面18とすれば、これらのオブジェクトA、Bの関節運動に際して関節部分の外側に裂け目が生じることがなく、いずれのオブジェクトの関節部分の端面も露出して画像表示されない。また、2つのオブジェクトを構成する側面が互いに交差しないため、陰面消去の手法によらず、好適に関節部分の陰面消去処理を行うことができる。尚、前記伸縮ポリゴンPB0…PB5は関節面18とオブジェクトBの他端面20と間に設けられ該関節面18に対応して設けられる区画線22によって区画されている。そして、該区画線22は関節面18と前記他端面20との中間位置に設けられている。こうすれば、関節運動に際してオブジェクトB全体が変形することを防ぐことができる。
【0018】
ところで、以上説明したような画像処理を無制限に行った場合にはオブジェクトAとオブジェクトBとが捻れを伴う関節運動を行う場合に問題が生じる。すなわち、図3Aに示すようにオブジェクトAとオブジェクトBとが捻れた位置関係にある場合にも前記伸縮ポリゴンPB0…PB5はそれぞれの対応する頂点を連結するように伸縮する。そして、この捻れ角が一定以上の場合、例えば図3Bに示すように捻れ角が180度である場合には、伸縮ポリゴンPB0…PB5の中程でオブジェクトBが細くなるというという問題がある。このため、本画像合成装置は、オブジェクトAとオブジェクトBとが一定の捻りを伴う関節運動を行う場合に、伸縮ポリゴンPB0…PB5の頂点のうち関節面に含まれる頂点を再定義する手段を含んでいて、かかる場合にも好適な画像表示を得ることができる。
【0019】
図4はこのような画像表示を得ることのできる本画像合成装置の構成を示す図である。同図に示す画像合成装置は、オブジェクト空間に配置されるそれぞれの表示物に関する情報が記憶される記憶部30を有している。そして、該記憶部30には前述した隣接する2つのオブジェクトの輪郭線の形状情報を記憶するオブジェクト情報記憶部32が特に設けられている。具体的には、オブジェクト情報記憶部32には各オブジェクトを構成する複数のポリゴンの基本配置が各オブジェクトに属する所定の原点を基準とする座標情報として記憶されていて、該座標情報によってオブジェクトの基本形状が指定される。尚、ここで記憶される形状は「基本形状」であって、画像表示時に際しては変形処理等がなされる。
【0020】
この基本形状を記憶するために前記オブジェクト情報記憶部32には各オブジェクトに対応したポリゴン頂点リストとポリゴン属性リストとが記憶される。図5、6はオブジェクトA及びオブジェクトBのポリゴン頂点リストを示す図であり、各オブジェクトを構成するポリゴンの頂点座標と該頂点の名前とが対応して記憶されている。ここで、各オブジェクトの頂点の名前は図7、8に示すようにして定められていて、オブジェクトAは頂点CA0…CA5、A0…A11までの18個の頂点によって指定され、オブジェクトBは頂点CB0…CB5、B0…B11までの18個の頂点によって指定される。ここで、符号の頭文字にCを付した頂点CA0…CA5、CB0…CB5はそれぞれオブジェクトA、オブジェクトBの関節面18の頂点の名前であり、それらの頂点座標は各ポリゴン頂点リストの先頭側に格納されている。また、頂点CA0と頂点CB0の如く符号に付した数字が同じ頂点は互いに位置が一致すべき頂点を表している。
【0021】
また、ポリゴン属性リストには図9A、図9Bに示すように各ポリゴンの名前PA0…PA11、PB0…PB11と各ポリゴンを特定する4つの頂点のループ、及び各ポリゴンの属性情報APA0…APA11、APB0…APB11とが対応して記憶されている。このポリゴンの属性情報APA0…APA11、APB0…APB11は各ポリゴンPA0…PA11、PB0…PB11に張り付けるべきテクスチャに関する情報等が含まれている。
【0022】
このようにしてポリゴンの指定を行えば、各ポリゴンを特定する頂点の位置座標を変更することによって、該ポリゴンの配置を変更することができると共に大きさや形状をも変更することができる。
【0023】
以上のようにして記憶されるオブジェクトA及びオブジェクトBに関する情報は、処理部34(図4参照)によって所定の演算処理が施されて一時記憶される。該処理部34には位置情報導出部36、オブジェクト連結部38、一時記憶部40、画像合成部42、頂点循環部44が設けられている。
【0024】
位置情報導出部36は、前記オブジェクト情報記憶部32に記憶される各オブジェクトの形状情報と、記憶部30に記憶される、オブジェクト空間における各オブジェクトの動きを制御する制御プログラムや表示物の動作情報に基づいて該オブジェクトの回転、平行移動等の3次元演算処理を施してオブジェクト空間における位置座標情報を導き出す。そして、これらの情報は一時記憶部40に記憶される。この際、前記オブジェクト連結部38はオブジェクトBにおけるオブジェクトA側に隣接する端面の頂点CB0…CB5の情報をオブジェクトAにおけるオブジェクトB側に隣接する端面の頂点CA0…CA5の情報に置き換えて前記一時記憶部40に記憶することにより、オブジェクトAとオブジェクトBとを連結する。前記画像合成部42はこうして記憶された一時記憶部40の記憶内容に基づいて画像情報を表示部46に出力する。
【0025】
図10は前記処理部34の処理手順を示すフロー図である。また、図11は同処理における前記一時記憶部40の記憶内容を示す概念図であり、頂点座標が記憶領域に整列して格納される様子を示している。以下、これらの図に基づきオブジェクトAとオブジェクトBとを連結する処理の具体的な手順を説明する。
【0026】
まず、処理部34に設けられる作業領域(レジスタ)にカウント値iを記憶保持する領域を確保し、i=0を格納する(S1)。次に位置情報導出部36は前記オブジェクト情報記憶部32に記憶された前記オブジェクトAのポリゴン頂点リストより頂点座標のうちの一つを読み出す(S2)。また位置情報導出部36は、読み出した座標を用いてオブジェクト空間における関節運動後の位置座標を導出し(S3)、前記一時記憶部40の前記カウント値iに対応する領域(アドレス)へ格納する(S4)。次に処理部34は前記カウント値iの値に基づき、読み出した座標にかかる頂点が最終データであるかを判別する(S5)。尚、本例の場合にはカウント値i=18が最終データを表す。最終データでない場合には前記カウント値iを1だけインクリメントし(S6)、次の頂点の座標を読み出す(S2)。以上の処理を最終データにかかる頂点座標に対して行うまで繰り返し(S5)、オブジェクトAの全ての頂点データの読み出し、演算及び記憶が行われると、前記画像合成部42は前記一時記憶部40を読み出し、その情報に従って画像情報を出力する(S7)。この時点での一時記憶部40は、図11Aに示すように、カウント値i=0〜5に対応する領域にオブジェクトAの関節面18に属する頂点座標が格納され、カウント値i=6〜18に対応する領域にその他の頂点座標が記憶されている。尚、一時記憶部40には情報が読み出された後にも、記憶されている座標情報は引き続き記憶される。
【0027】
その後、処理部34はオブジェクトAに対するオブジェクトBの捻れ角を導出する(S8)。本画像合成装置では演算処理の軽減化を図る観点から厳密な捻れ角の計算を行う代わりに、前記表示部46によって表示される前記伸縮ポリゴンPB0…PB5の捻れの程度が見苦しくならない範囲で、前記記憶部30に記憶されるオブジェクトAに対するオブジェクトBの動作情報に基づいた簡略化した演算により前記捻れ角θを求めている。
【0028】
そして、θ<60゜を満たす場合には捻れが小さいとみなし、捻れに対する処理を省略してオブジェクトBの表示処理に移る(S9)。ここで、60゜は、関節面18の頂点数6に基づいて決定される角度であるが、前記表示部46によって表示される前記伸縮ポリゴンPB0…PB5の表示画像に基づいて、経験的に決定することもできる。
【0029】
次に処理部34は前記カウント値iをi=6として再設定し(S10)、位置情報導出部36はオブジェクトBのポリゴン頂点リストよりカウント値iに対応する頂点の座標を読み出す(S11)。位置情報導出部36は読み出した座標を用いてオブジェクト空間における関節運動後の位置座標を導出し(S12)、カウント値iに対応した一時記憶部40の領域に格納する(S13、図11B参照)。次に、カウント値iの値により最終データであるか判別し(S14)、最終データでなければカウント値iを1だけインクリメントする(S15)。そして、オブジェクトBの次の頂点を読み出し(S11)し、最終データまで同様の処理を繰り返す(S14)。そして、オブジェクトBの全ての頂点データの演算及び一時記憶を行う。すなわち、一時記憶部40に記憶された頂点座標CA0…CA5は、そのままの記憶内容で保持し、オブジェクトBにのみ属する頂点座標B0…B11だけをオブジェクトAにのみ属する頂点座標A0…A11が記憶されていた領域に上書きして変更記憶する。その後、前記画像合成部42は前記一時記憶部40を読み出しその情報に従って画像情報を出力する(S16)。
【0030】
また、上記処理手順において、捻れ角がθ<60゜を満たさない場合(S9)には、前記頂点循環部44による捻れに対する処理が行われる。図12は前記頂点循環部44の処理手順を示すフロー図である。また、図13は同処理における前記一時記憶部40の記憶内容を示す概念図であり、図13AはオブジェクトAの頂点座標が整列して格納されている様子を示し、図13Bはそれらのうち関節面18に含まれる頂点CA0…CA5の座標情報が順に入れ替えられて格納されている様子を示す。以下、これらの図に基づき捻れに対する処理の手順を説明する。
【0031】
まず、捻れ角θを60゜で割った商を頂点シフト数mとして導出する(S21)。その後、関節面18に含まれる頂点CA0…CA5の座標情報を読み出し、一時記憶部40に設けられた作業領域に格納しておく(S22)。次に前記カウント値iをi=0として初期化し(S23)、一時記憶部40の作業領域に格納された前記座標情報のうち、F(i)=mod(m+i,6)によって定められるF(i)によって指定される頂点CA(F(i))に係るものを前記一時記憶部40のカウント値iに対応する領域に格納する(S24)。ここで、mは前述した頂点シフト数を表す。こうした処理をiを1ずつインクリメントしながら(S25)、i=6を満たすまで繰り返す(S26)。
【0032】
このようにすれば、図10のS1〜S6のステップによって図13Aに示すようにして既に前記一時記憶部40に格納されたオブジェクトAの頂点座標のうち、関節面18に係るものを循環して入れ替えることができる。
【0033】
その後、既に説明したオブジェクトBの頂点座標の前記一時記憶部40への格納処理を行えば(図10、S10〜S16)、例えば、前記頂点循環部44による処理を行わなければ頂点のループがCB0(CA0)−CB1(CA1)−B1−B0であったはずの伸縮ポリゴンPB0は、頂点ループがCA3−CA4−B1−B0として再定義されることになり、好適に捻れが補正される。
【0034】
以上説明したように、本画像合成装置はオブジェクトAとオブジェクトBとの関節面18を前記伸縮ポリゴンPB0…PB5を伸縮させて一致させることによって、厳密な関節部分の画像の再現を行うことなく、簡易に両オブジェクトを裂け目無く連結することに成功している。更に、オブジェクトAとオブジェクトBとの間に捻れが生じた場合にも、関節面18に含まれる頂点を循環して入れ替えるという比較的画像処理負担の少ない方法で該捻れに伴う問題を解決することに成功している。したがって、本発明は、表示画質の写実性よりも画像処理の高速性が求められる3次元ゲーム装置のような画像合成装置において、関節部分の簡易な画像処理が可能な点で特に有効である。
【0035】
尚、上記実施例は各種の変形実施が可能である。例えば、3以上のオブジェクトが連結して関節運動を行う場合も前述した処理を繰り返すことにより同様にして各々の端面が一致するように画像表示することができる。
【0036】
また、本画像合成装置において、以上説明した処理に続いてオブジェクトAとオブジェクトBとにスムーズシェーディングを施せば、両オブジェクトの間に捻れが生じた場合も、更に自然な画像を得ることができる。
【0037】
【図面の簡単な説明】
【図1】図1A、図1B、図1Cは、本発明にかかる画像合成装置の開発過程における問題点を示す図である。
【図2】実施例にかかる画像合成装置を用いた隣接する2つのオブジェクトの関節運動の画像表示を示す図である。
【図3】図3A及び図3Bは、本発明にかかる画像合成装置の開発過程における問題点を示す図である。
【図4】実施例にかかる画像合成装置の構成を示す図である。
【図5】オブジェクトAのポリゴン頂点リストを示す図である。
【図6】オブジェクトBのポリゴン頂点リストを示す図である。
【図7】オブジェクトAの各頂点の名前を示す図である。
【図8】オブジェクトBの各頂点の名前を示す図である。
【図9】図9A及び図9Bは、オブジェクトA及びオブジェクトBのポリゴン属性リストを示す図である。
【図10】実施例にかかる画像合成装置の処理手順を示すフロー図である。
【図11】図11A及び図11Bは、実施例にかかる画像合成装置の一時記憶部の記憶内容を示す概念図である。
【図12】実施例にかかる画像合成装置の処理手順を示すフロー図である。
【図13】図13A及び図13Bは、実施例にかかる画像合成装置の一時記憶部の記憶内容を示す概念図である。
【符号の説明】
オブジェクトA(第1オブジェクト)
オブジェクトB(第2オブジェクト)
18、100 関節面
32 オブジェクト情報記憶部(オブジェクト情報記憶部)
36 位置情報導出部(位置情報導出手段)
38 オブジェクト連結部(オブジェクト連結手段)
44 頂点循環部(頂点循環手段)[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image synthesizing method and an image synthesizing apparatus, and more particularly, to an image synthesizing method and an image synthesizing apparatus that appropriately display joint motions of a plurality of models.
[0002]
[Background Art and Problems to be Solved by the Invention]
2. Description of the Related Art Conventionally, image synthesizing apparatuses that output images of display objects composed of combinations of a plurality of objects (parts) performing various operations in an object space constructed in a storage device have been widely popularized.
[0003]
By the way, in this type of image synthesizer, it is indispensable to display the movement of the display object in the object space smoothly in order to improve the quality of the display image of the image synthesizer, which complicates the necessary image processing. Therefore, there has been a demand for a technique for smoothing the image display of the joint portion of the display object without performing the above operation.
[0004]
The present invention has been made in view of such problems, and an object of the present invention is to provide an image composition method and an image composition apparatus that can favorably display an image of a joint portion of a display object.
[0005]
[Means for Solving the Problems]
The present invention is an image composition method for displaying a joint motion performed by a first object and a second object adjacent to each other among a plurality of objects arranged in an object space and combined with polygons specified by vertices in real time. The first object is formed to include a first joint surface specified by n vertices from the 0th vertex to the (n−1) vertex in the vicinity of the second object, A second object is formed in proximity to the first object so as to include a second joint surface identified by n vertices from the 0th vertex to the (n−1) th vertex, and the first and second A position information deriving step for deriving position information of the vertices of the polygons constituting the two objects before and after the joint movement for each given time, and the 0th vertex of the first object And (n-1) apex from the 0th apex of the second object to the (n-1) apex, and the first object and the second object during the joint movement. When a given twist occurs, the vertex shift number m, which is an integer that increases or decreases in accordance with the twist angle, and F (i) derived by the following equation are used, and the i-th vertex of the first object And a vertex circulation step in which F is the F (i) vertex of the second object.
[0006]
F (i) = mod (m + i, n)
(Here, mod (X, Y) represents the remainder when X is divided by Y.)
According to the present invention, the position information deriving step derives the position information of the vertexes of the polygons of the first object and the second object. In the object connection step, the (n−1) -th vertex from the 0-th vertex included in the first joint surface of the derived position information of the vertex of the first object is changed to the second joint of the second object. From the 0th vertex included in the surface to the (n-1) th vertex, both objects are connected with a common joint surface without a gap.
[0007]
Further, according to the present invention, when a twist occurs between the first object and the second object, the vertex circulation step converts the i-th vertex of the first object to the Fth ( i) As vertices, vertices included in the joint surface of the second object are circulated corresponding to the twist.
[0008]
For example, when the first object and the second object have a regular hexagonal joint surface specified by six vertices from the 0th vertex to the 5th vertex, the object connection step causes the first object The i-th vertex and the i-th vertex of the second object coincide with each other to compose an image (i = 0,..., 5). When a 120 ° twist occurs between the first object and the second object, for example, the vertex shift number m is set to m = 2, and the i th vertex of the first object is performed by the vertex circulation step. Is used as the F (i) vertex of the second object (i = 0,..., 5).
[0009]
In this case, in the expression representing F (i), the vertex shift number is m = 2 and the vertex number n is n = 6, so each F (i) is
F (0) = mod (2 + 0,6) = 2,
F (1) = mod (2 + 1,6) = 3,
F (2) = mod (2 + 2,6) = 4,
F (3) = mod (2 + 3,6) = 5,
F (4) = mod (2 + 4,6) = 0,
F (5) = mod (2 + 5,6) = 1,
And
The 0th vertex of the first object is the second vertex of the second object,
The first vertex of the first object is the third vertex of the second object;
The second vertex of the first object is the fourth vertex of the second object;
The third vertex of the first object is the fifth vertex of the second object;
The fourth vertex of the first object is the 0th vertex of the second object,
The fifth vertex of the first object is the first vertex of the second object;
Each is redefined in a circular fashion.
[0010]
In this way, the first object and the second object can be smoothly connected without tearing, and even when a twist occurs between the first object and the second object, a natural twist is achieved. Can be corrected.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
In the process of developing an image composition device, the inventor forms two objects (parts) adjacent to each other through a joint of a display object so as to form a fixed shape as shown in FIG. It was recognized that the image display in the vicinity of the
[0012]
That is, when two
[0013]
Alternatively, as shown in FIG. 1C, in a joint motion mode in which two
[0014]
As described above, in any case, the image display of the joint portion is unsightly and remarkably impairs the entertainment of the image composition device. In order to solve such a problem, the present inventor has reviewed the conventional technique in which a display object is configured by a combination of only a plurality of objects having a fixed shape, and displays an image of an object whose side surface expands and contracts at a joint portion. It came to create the invention of doing.
[0015]
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0016]
FIG. 2 is a diagram illustrating an image display of joint motion of two adjacent objects using the image composition device according to the present embodiment. The two objects A and B shown in the figure are formed in a hexagonal column shape by combining 12 polygons, and are smoothly connected so that the
[0017]
As shown in the figure, when the adjacent end surfaces of two objects are made to coincide with each other to form the
[0018]
By the way, when the image processing as described above is performed indefinitely, a problem occurs when the object A and the object B perform joint motion with twisting. That is, even when the object A and the object B are in a twisted positional relationship as shown in FIG. 3A, the stretchable polygons PB0... PB5 stretch and contract so as to connect the corresponding vertices. When the twist angle is a certain value or more, for example, when the twist angle is 180 degrees as shown in FIG. 3B, there is a problem that the object B becomes thin in the middle of the stretchable polygons PB0. For this reason, this image composition device includes means for redefining the vertices included in the joint surface among the vertices of the stretchable polygons PB0... PB5 when the object A and the object B perform joint motion with a certain twist. In such a case, a suitable image display can be obtained.
[0019]
FIG. 4 is a diagram showing a configuration of the present image synthesizing apparatus capable of obtaining such an image display. The image composition apparatus shown in the figure has a
[0020]
In order to store this basic shape, the object
[0021]
9A and 9B, each polygon name PA0... PA11, PB0... PB11 and four vertex loops specifying each polygon, and each polygon attribute information APA0... APA11, APB0 are included in the polygon attribute list. ... APB11 is stored correspondingly. The polygon attribute information APA0... APA11, APB0... APB11 includes information on textures to be attached to the polygons PA0... PA11, PB0.
[0022]
If the polygons are designated in this way, the arrangement of the polygons can be changed and the size and shape can be changed by changing the position coordinates of the vertices specifying each polygon.
[0023]
Information regarding the object A and the object B stored as described above is subjected to predetermined arithmetic processing by the processing unit 34 (see FIG. 4) and temporarily stored. The
[0024]
The position
[0025]
FIG. 10 is a flowchart showing the processing procedure of the
[0026]
First, an area for storing and holding the count value i is secured in a work area (register) provided in the
[0027]
Thereafter, the
[0028]
If θ <60 ° is satisfied, it is considered that the twist is small, and the process for twisting is omitted, and the process proceeds to the display process of the object B (S9). Here, 60 ° is an angle determined based on the number of
[0029]
Next, the
[0030]
Further, in the above processing procedure, when the twist angle does not satisfy θ <60 ° (S9), processing for twist by the
[0031]
First, a quotient obtained by dividing the twist angle θ by 60 ° is derived as the vertex shift number m (S21). Thereafter, the coordinate information of the vertices CA0... CA5 included in the
[0032]
In this way, the steps relating to the
[0033]
Thereafter, if the processing for storing the vertex coordinates of the object B already described is performed in the temporary storage unit 40 (FIG. 10, S10 to S16), for example, if the processing by the
[0034]
As described above, the present image compositing apparatus makes the
[0035]
The above embodiment can be modified in various ways. For example, even when three or more objects are connected to perform joint motion, it is possible to display an image so that the end faces coincide with each other by repeating the above-described processing.
[0036]
In addition, if the object A and the object B are subjected to smooth shading following the above-described processing in this image composition device, a more natural image can be obtained even when twisting occurs between the two objects.
[0037]
[Brief description of the drawings]
FIG. 1A, FIG. 1B, and FIG. 1C are diagrams showing problems in the development process of an image composition device according to the present invention.
FIG. 2 is a diagram illustrating an image display of joint motion of two adjacent objects using the image composition device according to the embodiment.
FIG. 3A and FIG. 3B are diagrams showing problems in the development process of the image composition device according to the present invention.
FIG. 4 is a diagram illustrating a configuration of an image composition device according to an embodiment.
FIG. 5 is a diagram showing a polygon vertex list of an object A.
6 is a diagram illustrating a polygon vertex list of an object B. FIG.
FIG. 7 is a diagram showing names of vertices of an object A.
FIG. 8 is a diagram showing names of vertices of an object B.
9A and 9B are diagrams showing polygon attribute lists of objects A and B. FIG.
FIG. 10 is a flowchart illustrating a processing procedure of the image composition device according to the embodiment.
FIGS. 11A and 11B are conceptual diagrams illustrating storage contents of a temporary storage unit of the image composition apparatus according to the embodiment.
FIG. 12 is a flowchart illustrating a processing procedure of the image composition device according to the embodiment.
13A and 13B are conceptual diagrams illustrating the contents stored in a temporary storage unit of the image composition apparatus according to the embodiment.
[Explanation of symbols]
Object A (first object)
Object B (second object)
18, 100
36 Location information deriving unit (location information deriving means)
38 Object connection part (object connection means)
44 Vertex circulation part (vertex circulation means)
Claims (2)
前記第1オブジェクトを、前記第2オブジェクトに近接して第0頂点から第(n−1)頂点までのn個の頂点により特定される第1関節面を含むように形成し、
前記第2オブジェクトを、前記第1オブジェクトに近接して第0頂点から第(n−1)頂点までのn個の頂点により特定される第2関節面を含むように形成し、
前記第1及び第2オブジェクトを構成するポリゴンの前記関節運動の前後での頂点の位置情報を導出する位置情報導出ステップと、
第1オブジェクトの第0頂点から第(n−1)頂点を、それぞれ、第2オブジェクトの第0頂点から第(n−1)頂点とするオブジェクト連結ステップと、
前記関節運動に際して前記第1オブジェクトと前記第2オブジェクトとに所与の捻れが生じた場合に、該捻れの角度に対応して増減する整数である頂点シフト数m及び下記の式によって導出されるF(i)を用いて、前記第1オブジェクトの第i頂点を前記第2オブジェクトの第F(i)頂点とする頂点循環ステップと、
を含むことを特徴とする画像合成方法。
F(i)=mod(m+i,n) (但し、mod(X,Y)は、XをYで割ったときの剰余を表す。)An image composition method for displaying a joint motion performed by a first object and a second object adjacent to each other among a plurality of objects formed by combining polygons specified by vertices arranged in an object space,
Forming the first object in proximity to the second object so as to include a first joint surface identified by n vertices from the 0th vertex to the (n-1) th vertex;
Forming the second object so as to include a second joint surface specified by n vertices from the 0th vertex to the (n-1) th vertex in the vicinity of the first object;
Position information deriving step for deriving position information of vertices of the polygons constituting the first and second objects before and after the joint movement;
An object connection step from the 0th vertex of the first object to the (n−1) th vertex, respectively, from the 0th vertex of the second object to the (n−1) th vertex;
When a given twist occurs in the first object and the second object during the joint movement, the vertex shift number m, which is an integer that increases or decreases according to the twist angle, is derived from the following equation: A vertex circulation step using F (i) to set the i th vertex of the first object as the F (i) vertex of the second object;
An image composition method comprising:
F (i) = mod (m + i, n) (where mod (X, Y) represents the remainder when X is divided by Y).
前記第1オブジェクトは、前記第2オブジェクトに近接して第0頂点から第(n−1)頂点までのn個の頂点により特定される第1関節面を含み、
前記第2オブジェクトは、前記第1オブジェクトに近接して第0頂点から第(n−1)頂点までのn個の頂点により特定される第2関節面を含み、
前記第1及び第2オブジェクトを構成するポリゴンの前記関節運動の前後での頂点の位置情報を導出する位置情報導出手段と、
第1オブジェクトの第0頂点から第(n−1)頂点を、それぞれ、第2オブジェクトの第0頂点から第(n−1)頂点とするオブジェクト連結手段と、
前記関節運動に際して前記第1オブジェクトと前記第2オブジェクトとに所与の捻れが生じた場合に、該捻れの角度に対応して増減する整数である頂点シフト数m及び下記の式によって導出されるF(i)を用いて、前記第1オブジェクトの第i頂点を前記第2オブジェクトの第F(i)頂点とする頂点循環手段と、
を含むことを特徴とする画像合成装置。
F(i)=mod(m+i,n) (但し、mod(X,Y)は、XをYで割ったときの剰余を表す。)An image composition device that displays a real-time image of joint movement performed by a first object and a second object adjacent to each other among a plurality of objects that are arranged in an object space and combined with a polygon specified by a vertex,
The first object includes a first joint surface specified by n vertices from the 0th vertex to the (n-1) th vertex in proximity to the second object,
The second object includes a second joint surface specified by n vertices from the 0th vertex to the (n−1) th vertex in proximity to the first object,
Position information deriving means for deriving position information of vertices of the polygons constituting the first and second objects before and after the joint movement;
Object connecting means for setting the (n−1) th vertex from the 0th vertex of the first object to the (n−1) th vertex from the 0th vertex of the second object;
When a given twist occurs in the first object and the second object during the joint movement, the vertex shift number m, which is an integer that increases or decreases according to the twist angle, is derived from the following equation: A vertex circulation means that uses F (i) to make the i th vertex of the first object the F (i) vertex of the second object;
An image composition apparatus comprising:
F (i) = mod (m + i, n) (where mod (X, Y) represents the remainder when X is divided by Y).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30506795A JP3712451B2 (en) | 1995-10-30 | 1995-10-30 | Image composition method and image composition apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30506795A JP3712451B2 (en) | 1995-10-30 | 1995-10-30 | Image composition method and image composition apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH09128566A JPH09128566A (en) | 1997-05-16 |
| JP3712451B2 true JP3712451B2 (en) | 2005-11-02 |
Family
ID=17940728
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP30506795A Expired - Fee Related JP3712451B2 (en) | 1995-10-30 | 1995-10-30 | Image composition method and image composition apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3712451B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003058909A (en) * | 2001-08-10 | 2003-02-28 | Sony Computer Entertainment Inc | Joint motion simulator and simulation method |
| US20080088578A1 (en) * | 2006-10-16 | 2008-04-17 | Immersion Corporation | Flexible object simulator |
-
1995
- 1995-10-30 JP JP30506795A patent/JP3712451B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH09128566A (en) | 1997-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5553208A (en) | Image synthesizing system having a field buffer unit that stores texture coordinates | |
| KR100328659B1 (en) | Image creating method, image creating device, and home game machine | |
| JP2618951B2 (en) | 3D graphics processor | |
| WO1991011799A1 (en) | Animation display unit and external memory used therefor | |
| JPH09319891A (en) | Image processing apparatus and processing method thereof | |
| WO1995009405A1 (en) | Clipping processor, three-dimensional simulator and clipping processing method | |
| JP3037865B2 (en) | 3D sprite drawing device | |
| JP3712451B2 (en) | Image composition method and image composition apparatus | |
| JP2005077522A (en) | Image processor and image processing method | |
| JPH07282292A (en) | Texture mapping method and image processing apparatus | |
| US7015917B2 (en) | Curved surface subdivision apparatus | |
| JP3903557B2 (en) | Data conversion apparatus and image generation apparatus | |
| JP3957363B2 (en) | 3D game device and information storage medium | |
| JP3523728B2 (en) | 3D game device and image composition method | |
| JPH1139502A (en) | Image display device, its method and recording medium | |
| KR0166106B1 (en) | Apparatus and method for image processing | |
| JP2010277304A (en) | Drawing data processing method, drawing system, and drawing data creation program | |
| JP3748451B1 (en) | Program, information storage medium, and image generation system | |
| JP2001067491A (en) | Image display method and apparatus using subdivision polygons | |
| US6618055B1 (en) | Computer readable program product, method of image processing and image processing system | |
| JP3556517B2 (en) | 3D image processing device | |
| JP2004118872A (en) | Image processing system and image processing method | |
| JP3312560B2 (en) | Texture mapping device | |
| JP4257764B2 (en) | Game character motion display method | |
| JP3759365B2 (en) | 3D clip judgment processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050412 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050426 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050627 |
|
| 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: 20050803 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050817 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080826 Year of fee payment: 3 |
|
| 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: 20080826 Year of fee payment: 3 |
|
| 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: 20090826 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090826 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090826 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100826 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100826 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110826 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110826 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120826 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120826 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130826 Year of fee payment: 8 |
|
| 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 |