JP5620743B2 - Facial image editing program, recording medium recording the facial image editing program, and facial image editing system - Google Patents

Facial image editing program, recording medium recording the facial image editing program, and facial image editing system Download PDF

Info

Publication number
JP5620743B2
JP5620743B2 JP2010181712A JP2010181712A JP5620743B2 JP 5620743 B2 JP5620743 B2 JP 5620743B2 JP 2010181712 A JP2010181712 A JP 2010181712A JP 2010181712 A JP2010181712 A JP 2010181712A JP 5620743 B2 JP5620743 B2 JP 5620743B2
Authority
JP
Japan
Prior art keywords
movement
face image
marker
operation point
point
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.)
Active
Application number
JP2010181712A
Other languages
Japanese (ja)
Other versions
JP2012043057A (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.)
Capcom Co Ltd
Original Assignee
Capcom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Capcom Co Ltd filed Critical Capcom Co Ltd
Priority to JP2010181712A priority Critical patent/JP5620743B2/en
Publication of JP2012043057A publication Critical patent/JP2012043057A/en
Application granted granted Critical
Publication of JP5620743B2 publication Critical patent/JP5620743B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/403D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)

Description

本発明は、顔の三次元画像に設けられた「ボーン」と呼ばれる複数の操作ポイントを移動させることにより顔の表面形状を構成する複数の格子点(例えば、ポリゴンモデルで表現された顔形状のポリゴンの頂点)を連動移動させて顔形状の編集を行うための顔画像編集用プログラム、その顔画像編集用プログラムを記録した記録媒体及び顔画像編集システムに関するものである。   According to the present invention, a plurality of operation points called “bones” provided in a three-dimensional image of a face are moved to form a plurality of lattice points (for example, a face shape represented by a polygon model) constituting the face surface shape. The present invention relates to a face image editing program for performing face shape editing by interlocking movement of polygon vertices, a recording medium storing the face image editing program, and a face image editing system.

従来、プレイヤが制御する人型のキャラクタの画像を予め複数個用意しておき、プレイヤに所望のキャラクタを選択させ、そのキャラクタをゲーム空間に登場させてゲーム進行を行うゲームソフトにおいて、プレイヤが選択したキャラクタの顔の形状を所望の形状に編集する機能が設けられているゲームソフトが知られている。   Conventionally, in the game software in which a plurality of images of human-type characters controlled by the player are prepared in advance, the player selects a desired character, and the character appears in the game space and the game progresses, the player selects There is known game software provided with a function of editing the shape of the face of the character that has been made into a desired shape.

このようなゲームソフトでは、標準のキャラクタの顔画像(ポリゴンモデリングによるサーフェスモデルの三次元形状画像)の顔の輪郭や目、鼻、耳、口、髪型などの各部位の形状を変形させることによって顔形状の編集ができるようになっている。   In such a game software, by deforming the face contour of the standard character face image (surface model 3D shape image by polygon modeling) and the shape of each part such as eyes, nose, ears, mouth, hairstyle, etc. The face shape can be edited.

そして、顔形状を編集するための基本的な技術としては、従来、予め部位毎に形状の異なる複数種類の標準の顔画像を用意しておき、ユーザが部位毎に所望の標準の顔画像を選択し、各部位の画像のサイズを調整して組み合わせる方法と、顔画像の部位毎に部位内の所定の位置に「ボーン」と呼ばれるマーカを複数個設け、各部位のボーンを移動することによりそのボーンに関連付けられた複数のポリゴンを連動移動させて顔の形状を変化させる方法とが知られている。   As a basic technique for editing a face shape, conventionally, a plurality of types of standard face images having different shapes for each part are prepared in advance, and a user can obtain a desired standard face image for each part. By selecting and combining the image of each part by adjusting the size of the image, by providing a plurality of markers called “bones” at predetermined positions in each part of the face image and moving the bones of each part A method of changing the shape of a face by interlockingly moving a plurality of polygons associated with the bone is known.

前者の方法は、一般にモンフターゲットと呼ばれる方法(以下、この方法の編集を「モンフターゲット編集」という。)で、プレイヤは所望の部位を選択し、選択した部位について所望の形状とサイズを指定する操作をすればよいので、顔形状の編集操作が簡単であるという特徴がある。一方、後者の方法(以下、この方法の編集を「マーカ編集」という。)は、部位毎に各ボーンの移動量を調整することにより顔形状を木目細かく編集できるという特徴がある。   The former method is a method generally called monf target (hereinafter, editing of this method is referred to as “monf target edit”), and the player selects a desired part and sets a desired shape and size for the selected part. Since it is only necessary to specify an operation, the face shape editing operation is easy. On the other hand, the latter method (hereinafter referred to as “marker editing”) is characterized in that the face shape can be finely edited by adjusting the movement amount of each bone for each part.

特開2001−229400号公報JP 2001-229400 A

モンフターゲット編集は、部位毎に形状の異なる複数種類の標準の顔画像を用意しておく必要があるので、顔画像編集用の画像データを作成する作業負担が大きいという欠点がある。また、笑った表情などのようにアニメーションで種々の表情をさせようとすると、キャラクタの標準の顔画像だけでなくキャラクタに笑った表情をさせるアニメーション画像(所定枚数のコマ画像)も用意しなければならないが、部位の組合せによって多数の顔が作られるとすれば、少なくとも組み合わされる代表的な顔毎にアニメーション画像を用意しなければならず、アニメータの作業負担は著しく増大することになる。また、部位毎の形状の異なる複数種類の標準の顔画像と多種多様な表情をさせるためのアニメーション画像のデータによって画像データが膨大になるという欠点もある。   Monf target editing requires the preparation of a plurality of types of standard face images having different shapes for each part, and thus has a drawback in that the work burden of creating image data for face image editing is large. Also, if you want to make various facial expressions through animations such as laughing facial expressions, you must prepare not only a standard facial image of the character but also an animated image (a predetermined number of frame images) that makes the character laugh. However, if a large number of faces are created by combination of parts, an animation image must be prepared for each representative face to be combined, which greatly increases the work load of the animator. In addition, there is a drawback that the image data becomes enormous due to a plurality of types of standard face images having different shapes for each part and animation image data for making various expressions.

一方、マーカ編集は、顔形状の木目細かい編集ができる利点はあるが、ユーザインターフェースとの関係で編集内容が制限され、その利点を十分に生かすことが難しいという不利がある。マーカ編集では一般に顔画像に100個以上のボーンが設定されるが、ボーンを一個ずつ移動して顔の形状を所望の形状に変形させる作業は編集の専門家でも容易ではないから、一般のプレイヤに対する編集用のインターフェースを、全てのボーンを直接操作させるような形式にすることは好ましくない。   On the other hand, marker editing has an advantage that fine editing of the face shape can be performed, but there is a disadvantage that editing contents are limited in relation to the user interface and it is difficult to make full use of the advantage. In marker editing, generally, more than 100 bones are set in a face image. However, it is not easy for an editing expert to move a bone one by one to transform the shape of the face into a desired shape. It is not preferable that the interface for editing is directly operated on all bones.

従って、プレイヤに対しては、ボーンを直接操作させる場合は操作できるボーンやそのボーンの操作範囲をある程度制限したり、部位の形状の変形内容(例えば、「大きくする」、「小さくする」、「移動する」、「回転する」など)に応じた複数のボーンの移動内容を予め設定しておき、ユーザが部位毎に所望の変形内容を選択すると、各部位のボーンを選択された変形内容に応じた移動内容で変化させたりするなどして、操作できるボーンやそのボーンの操作範囲を制限することが必要になる。   Accordingly, when operating the bone directly to the player, the bone that can be operated and the operation range of the bone are limited to some extent, or the deformation content of the part shape (for example, “increase”, “decrease”, “ The movement contents of a plurality of bones corresponding to “moving”, “rotating”, etc.) are set in advance, and when the user selects desired deformation contents for each part, the bones of each part are changed to the selected deformation contents. It is necessary to limit the bone that can be operated and the operation range of the bone by changing the movement according to the movement content.

しかしながら、操作可能なボーンやボーンの操作範囲を制限する場合、過度に制限をすると、プレイヤがカスタマイズできる顔の変形範囲が狭くなり、可能な限り制限を抑えると、例えば、目の大きさが顔の中でのバランスを著しく欠く大きさになるなどといった、多くの選択されることのない部位の形状の選択肢が増えて編集作業が困難になるから、制限内容を適正にすることは容易でない。   However, if the bones that can be manipulated and the range of bone operations are restricted excessively, the range of facial deformation that can be customized by the player will be narrowed. Since the number of choices of the shape of the part that is not selected increases, such as the size in which the balance is extremely lacking, the editing work becomes difficult, so it is not easy to make the restriction content appropriate.

また、従来の編集方法では、プレイヤが任意に編集したキャラクタの顔形状に対して多種多様の表情をさせるためのアニメーション画像を作成することができないという不都合がある。すなわち、ゲームソフトでは、標準の顔画像に対して笑った顔や怒った顔などの種々のアニメーション画像が用意されるが、例えば、プレイヤが目や口の大きさを大きくしたときにその顔画像に標準の顔画像で作成したアニメーション画像を適用すると、目を閉じて眠るアニメーション画像や口を「へ」の字に結んで怒るアニメーション画像で目や口が完全に閉じないという状態が生じ、眠った表情や怒った表情が不自然になる。これは、目を閉じる場合、標準の顔画像で上瞼を上下に移動させる量を目を大きくした上瞼に適用すると、移動量が足りず、上瞼が下瞼に重なる位置まで移動する動作をしないからである。口を閉じる場合についても同様である。   In addition, the conventional editing method has a disadvantage that animation images for making various facial expressions cannot be created for the face shape of the character arbitrarily edited by the player. That is, in the game software, various animation images such as a laughing face and an angry face are prepared for a standard face image. For example, when the player enlarges the size of the eyes and mouth, the face image If you apply an animation image created with a standard face image to an eye, you may have a state where your eyes and mouth are not completely closed with an animated image that closes your eyes and sleeps or an angry animated image that connects your mouth to the letter `` he ''. An unpleasant or angry facial expression becomes unnatural. When closing the eyes, if the amount of moving the upper eyelid up and down in the standard face image is applied to the upper eyelid with larger eyes, the amount of movement is not enough and the upper eyelid moves to the position where it overlaps the lower eyelid It is because it does not do. The same applies when closing the mouth.

これを解消するには、プレイヤが編集した顔画像の編集内容を標準の顔画像に対して作成されたアニメーション画像に反映するようにしなければならないが、従来のマーカ編集でそのような機能を備えたものはない。   In order to solve this, it is necessary to reflect the edited content of the face image edited by the player in the animation image created for the standard face image. However, the conventional marker editing has such a function. There is nothing.

本発明は、上記の事情に鑑みて考え出されたものであって、コンピュータにボーン編集方式による顔形状の編集処理を行わせる顔画像編集用プログラムにおいて、部位毎に当該部位の全体的な移動、回転、拡大/縮小などを行うための複数のマーカ(操作点)を設定し、各マーカ(操作点)を操作することによって各マーカ(操作点)に関連付けられた複数のボーンを連動移動させることにより顔形状の編集を容易に行うことができる顔画像編集用プログラム、その顔画像編集用プログラムを記録した記録媒体及び顔画像編集システムを提供することを目的とする。   The present invention has been conceived in view of the above circumstances, and in a face image editing program that causes a computer to perform face shape editing processing by a bone editing method, the entire movement of the part is performed for each part. Set multiple markers (operation points) to perform rotation, enlargement / reduction, etc., and operate each marker (operation point) to move the bones associated with each marker (operation point) in conjunction with each other It is an object of the present invention to provide a face image editing program capable of easily editing a face shape, a recording medium storing the face image editing program, and a face image editing system.

上記課題を解決するため、本発明では、次の技術的手段を講じている。   In order to solve the above problems, the present invention takes the following technical means.

請求項1に記載の発明は、コンピュータを、記憶部から、顔の表面形状が多数の多角形の集合で表現され、顔の各部位に前記多角形の頂点の位置を制御する1又は2以上の制御点とその制御点を直接的にあるいは間接的に移動させるための1又は2以上の第1の操作点が設定された標準の顔画像を読み出して表示部に表示させる第1の顔画像表示制御手段と、操作部から前記表示部に表示された顔画像の前記第1の操作点に対して当該第1の操作点の移動に関する操作情報が入力されると、その操作情報に基づき当該第1の操作点の移動位置を含む第1の移動情報を算出する第1の移動情報算出手段と、前記表示部に表示された前記標準の顔画像において、前記操作情報が入力された第1の操作点を前記第1の移動情報に含まれる移動位置に移動させる第1の操作点移動手段と、前記第1の操作点を移動させる場合、当該第1の操作点の移動に連動させる制御点として予め設定された1又は2以上の制御点について、前記第1の操作点に対して算出される前記第1の移動情報と各制御点に予め設定されている連動条件とに基づき、各制御点の移動位置を含む第2の移動情報をそれぞれ算出する第2の移動情報算出手段と、前記制御点を移動させる場合、当該制御点の移動に連動させる多角形の頂点として予め設定された1又は2以上の多角形の頂点について、前記制御点に対して算出される前記第2の移動情報と各多角形の頂点に予め設定されている連動条件とに基づき、各多角形の頂点の移動位置を含む第3の移動情報をそれぞれ算出する第3の移動情報算出手段と、前記表示部に表示された前記標準の顔画像において、前記第3の移動情報が算出される1又は2以上の多角形の頂点を当該第3の移動情報に含まれる移動位置に移動させて前記顔画像を変形させる第1の顔画像変形手段と、して機能させることを特徴とする。   According to the first aspect of the present invention, the computer is configured such that the face shape of the face is expressed by a set of a large number of polygons from the storage unit, and the position of the vertex of the polygon is controlled at each part of the face. A first face image in which a standard face image in which one or two or more first operation points for moving the control point and the control point directly or indirectly are set is read and displayed on the display unit When operation information regarding the movement of the first operation point is input to the display control means and the first operation point of the face image displayed on the display unit from the operation unit, the operation information is input based on the operation information. First movement information calculation means for calculating first movement information including a movement position of the first operation point, and the first face information displayed on the display unit, the operation information being input. To the movement position included in the first movement information. When the first operation point moving means to be moved and the first operation point are moved, one or more control points set in advance as control points interlocked with the movement of the first operation point are Based on the first movement information calculated for the first operation point and the interlocking condition set in advance for each control point, second movement information including the movement position of each control point is calculated. When moving the control point with the second movement information calculation means, with respect to one or more polygon vertices preset as polygon vertices linked to the movement of the control point, the control point The third movement information including the movement position of the vertex of each polygon is calculated based on the second movement information calculated in advance and the interlocking condition set in advance at the vertex of each polygon. Movement information calculation means and the display unit In the displayed standard face image, the face image is deformed by moving the vertex of one or more polygons for which the third movement information is calculated to a movement position included in the third movement information. And functioning as first face image deforming means.

請求項2に記載の発明は、請求項1に記載の顔画像編集用プログラムにおいて、前記標準の顔画像に設定された複数の前記第1の操作点には、一方が移動すると、その移動に他方が連動するように互いに関連付けられた第1の操作点が含まれ、前記第1の移動情報算出手段は、前記操作部からの操作情報に基づいて移動させる第1の操作点に連動させる他の第1の操作点についても、当該第1の操作点に対して算出する前記第1の移動情報と当該他の第1の操作点に予め設定されている連動条件とに基づき、当該他の第1の操作点の移動位置を含む第1の移動情報を算出し、前記第1の操作点移動手段は、前記表示部に表示された前記標準の顔画像において、前記第1の移動情報が算出された前記他の第1の操作点を当該第1の移動情報に含まれる移動位置に移動させることを特徴とする。   According to a second aspect of the present invention, in the face image editing program according to the first aspect, when one of the plurality of first operation points set in the standard face image moves, the movement is changed. First operation points associated with each other so that the other is linked are included, and the first movement information calculation means is linked to the first operation point to be moved based on the operation information from the operation unit. The first operation point is also determined based on the first movement information calculated for the first operation point and the interlocking conditions set in advance for the other first operation point. First movement information including a movement position of the first operation point is calculated, and the first operation point moving means includes the first movement information in the standard face image displayed on the display unit. The calculated first other operation point is included in the first movement information. Wherein the moving the moving position.

請求項3に記載の発明は、請求項1又は2に記載の顔画像編集用プログラムにおいて、前記顔画像には、部位毎に、前記第1の操作点を移動させるための1又は2以上の第2の操作点が更に設定されており、前記第1の移動情報算出手段は、前記操作部から前記第2の操作点に対する操作情報が入力されると、当該第2の操作点により移動が制御される1又は2以上の前記第1の操作点について、前記操作情報と各第1の操作点に予め設定されている移動条件とに基づき、前記第1の移動情報をそれぞれ算出し、前記第1の操作点移動手段は、前記表示部に表示された前記標準の顔画像において、前記操作情報が入力された前記第2の操作点により移動が制御される前記第1の操作点を前記第1の移動情報算出手段で算出される前記第1の移動情報に含まれる移動位置に移動させることを特徴とする。   According to a third aspect of the present invention, in the face image editing program according to the first or second aspect, the face image includes one or two or more for moving the first operation point for each part. A second operation point is further set, and when the operation information for the second operation point is input from the operation unit, the first movement information calculation means moves according to the second operation point. For the one or more first operation points to be controlled, the first movement information is calculated based on the operation information and movement conditions set in advance at each first operation point, The first operation point moving means sets the first operation point whose movement is controlled by the second operation point to which the operation information is input in the standard face image displayed on the display unit. The first movement calculated by the first movement information calculation means. Wherein the moving the moving position included in the information.

請求項4に記載の発明は、請求項3に記載の顔形状編集プログラにおいて、前記第2の操作点は、当該第2の操作点が設定された部位を移動させるための部位移動用操作点であり、前記第1の移動情報算出手段は、前記操作部から前記部位移動用操作点に対して当該部位移動用操作点を移動させる操作情報が入力されたときには、当該部位に設定されている1又は2以上の前記第1の操作点について、前記部位移動用操作点の移動方向及び移動量に基づき各第1の操作点を標準の位置から前記部位移動用操作点と同一の方向に同一の移動量だけ移動させた移動位置をそれぞれ算出することを特徴とする。   According to a fourth aspect of the present invention, in the face shape editing program according to the third aspect, the second operation point is a part movement operation point for moving a part where the second operation point is set. When the operation information for moving the part movement operation point with respect to the part movement operation point is input from the operation unit, the first movement information calculation unit is set to the part. For one or more of the first operation points, the first operation points are the same in the same direction as the part movement operation points from the standard position based on the movement direction and movement amount of the part movement operation points. Each of the movement positions moved by the movement amount is calculated.

請求項5に記載の発明は、請求項3に記載の顔形状編集プログラにおいて、前記第2の操作点は、当該第2の操作点が設定された部位の大きさを変更するための部位拡縮用操作点であり、前記第1の移動情報算出手段は、前記操作部から前記部位拡縮用操作点に対して当該部位拡縮用操作点が設定された部位を拡大又は縮小させる倍率の操作情報が入力されたときには、当該部位に設定されている1又は2以上の前記第1の操作点について、各第1の操作点と前記部位拡縮用操作点を結ぶ線上で各第1の操作点の前記部位拡縮用操作点からの標準の距離を前記倍率で変化させた距離にある移動位置をそれぞれ算出することを特徴とする。   According to a fifth aspect of the present invention, in the face shape editing program according to the third aspect, the second operation point is a part enlargement / reduction for changing the size of the part where the second operation point is set. And the first movement information calculation means has operation information of a magnification for enlarging or reducing the region where the region enlargement / reduction operation point is set with respect to the region enlargement / reduction operation point from the operation unit. When input, for one or more of the first operation points set in the part, the first operation point of the first operation point on a line connecting the first operation point and the part expansion / contraction operation point A moving position at a distance obtained by changing a standard distance from the region enlargement / reduction operation point by the magnification is calculated.

請求項6に記載の発明は、請求項3に記載の顔形状編集プログラにおいて、前記第2の操作点は、当該第2の操作点が設定された部位を回転させる部位回転用操作点であり、前記第1の移動位置算出手段は、前記操作部から前記部位回転用操作点に対して当該部位回転用操作点を回転させる操作情報が入力されたときには、当該部位に設定されている1又は2以上の前記第1の操作点について、前記部位回転用操作点の回転方向及び回転量と各第1の操作点に予め設定された移動条件に基づき、移動位置をそれぞれ算出することを特徴とする。   According to a sixth aspect of the present invention, in the face shape editing program according to the third aspect, the second operation point is a part rotation operation point for rotating the part where the second operation point is set. When the operation information for rotating the part rotation operation point with respect to the part rotation operation point is input from the operation unit, the first movement position calculation unit is set to the part 1 or The moving position is calculated for each of the two or more first operating points based on the rotation direction and the rotation amount of the part rotation operating point and the moving condition set in advance at each first operating point. To do.

請求項7に記載の発明は、請求項3乃至6のいずれかに記載の顔画像編集用プログラムにおいて、前記記憶部には、更に前記標準の顔画像の所定の部位を変化させた複数コマ分の顔画像を含み、前記標準の顔に所定の表情をさせるアニメーション編集用の顔画像が記憶されており、前記コンピュータを、前記標準の顔画像に対して前記制御点及びその制御点により位置が制御される前記多角形の頂点を移動させて顔の表面形状を変形させる編集が行われると、編集後の顔画像を前記アニメーション編集用の顔画像に変更する画像変更手段と、して更に機能させることを特徴とする。   According to a seventh aspect of the present invention, in the face image editing program according to any one of the third to sixth aspects, the storage unit further includes a plurality of frames obtained by changing a predetermined part of the standard face image. A face image for animation editing that causes the standard face to have a predetermined expression is stored, and the computer is positioned by the control point and the control point with respect to the standard face image. An image changing means for changing the face image after editing to the face image for animation editing when the editing is performed by moving the vertex of the polygon to be controlled to deform the surface shape of the face. It is characterized by making it.

請求項8に記載の発明は、請求項7に記載の顔画像編集用プログラムにおいて、前記アニメーション編集用の各コマの顔画像には、前記第1の操作点と同一の機能を果たす第3の操作点と前記制御点と同一の機能を果たす第2の制御点が設定されており、前記コンピュータを、前記記憶部から、前記アニメーション編集用の顔画像のうち前記操作部で指定されたコマの顔画像を読み出して前記表示部に表示させる第2の顔画像表示制御手段と、前記操作部から前記表示部に表示された顔画像の前記第3の操作点に対して当該第3の操作点の移動に関する操作情報が入力されると、その操作情報に基づき当該第3の操作点の移動位置を含む第4の移動情報を算出する第4の移動情報算出手段と、前記表示部に表示された前記顔画像において、前記操作情報が入力された第3の操作点を前記第3の移動情報に含まれる移動位置に移動させる第2の操作点移動手段と、前記第3の操作点を移動させる場合、当該第3の操作点の移動に連動させる制御点として予め設定された1又は2以上の前記第2の制御点について、前記第3の操作点に対して算出される前記第4の移動情報と各第2の制御点に予め設定されている連動条件とに基づき、各第2の制御点の移動位置を含む第5の移動情報をそれぞれ算出する第5の移動情報算出手段と、前記第2の制御点を移動させる場合、当該第2の制御点の移動に連動させる多角形の頂点として予め設定された1又は2以上の多角形の頂点について、前記第2の制御点に対して算出される前記第5の移動情報と各多角形の頂点に予め設定されている連動条件とに基づき、各多角形の頂点の移動位置を含む第6の移動情報をそれぞれ算出する第6の移動情報算出手段と、前記表示部に表示された顔画像において、前記第6の移動情報が算出される1又は2以上の多角形の頂点を当該第6の移動情報に含まれる移動位置に移動させて前記顔画像を変形させる第2の顔画像変形手段と、して更に機能させることを特徴とする。   According to an eighth aspect of the present invention, in the face image editing program according to the seventh aspect, the face image of each frame for animation editing performs the same function as the first operation point. A second control point that performs the same function as the operation point and the control point is set, and the computer is connected to the frame specified by the operation unit from the storage unit. Second face image display control means for reading a face image and displaying it on the display unit; and the third operation point with respect to the third operation point of the face image displayed on the display unit from the operation unit. When the operation information related to the movement is input, fourth movement information calculation means for calculating fourth movement information including the movement position of the third operation point based on the operation information is displayed on the display unit. In the face image When moving the third operation point, the second operation point moving means for moving the third operation point to which the operation information is input to the movement position included in the third movement information, For one or more second control points preset as control points to be linked to the movement of the operation point, the fourth movement information calculated for the third operation point and each second A fifth movement information calculating means for calculating fifth movement information including a movement position of each second control point based on an interlocking condition set in advance for the control point; and In the case of moving, the fifth calculated for the second control point with respect to one or more polygon vertices preset as polygon vertices linked to the movement of the second control point. Pre-set linkage to the movement information of each polygon and the vertex of each polygon And a sixth movement information calculating means for calculating sixth movement information including the movement position of the vertex of each polygon based on the condition, and the sixth movement information in the face image displayed on the display unit. And further functioning as second face image deformation means for deforming the face image by moving the vertexes of one or more polygons for which is calculated to a movement position included in the sixth movement information. It is characterized by.

請求項9に記載の発明は、請求項8に記載の顔画像編集用プログラムにおいて、前記アニメーション編集用の各コマの顔画像には、部位毎に、前記第2の操作点と同一の機能を果たす1又は2以上の第4の操作点が設定されており、前記第4の操作点の数は、前記顔画像編集用の顔画像に設定されている前記第2の操作点の数よりも少なく設定されていることを特徴とする。   The invention according to claim 9 is the face image editing program according to claim 8, wherein the face image of each frame for animation editing has the same function as the second operation point for each part. One or two or more fourth operation points are set, and the number of the fourth operation points is larger than the number of the second operation points set in the face image for face image editing. It is characterized by being set less.

請求項10に記載の発明は、請求項1乃至9のいずれかに記載の顔画像編集用プログラムを記録したコンピュータ読み取り可能な記録媒体である。   A tenth aspect of the present invention is a computer-readable recording medium on which the face image editing program according to any one of the first to ninth aspects is recorded.

請求項11に記載の発明は、請求項1乃至9のいずれかに記載の顔画像編集用プログラムを記録したプログラム記憶部と、前記プログラム記憶部に記憶された顔画像編集用プログラムを実行するコンピュータと、を備えた顔画像編集システムである。   The invention according to claim 11 is a program storage unit that records the face image editing program according to any one of claims 1 to 9 and a computer that executes the face image editing program stored in the program storage unit. And a face image editing system.

本発明によれば、作業者が顔画像の編集を行うとき、表示部に顔の表面形状が多数の多角形の集合で表現される標準の顔画像(例えば、ポリゴンモデルで表現される顔画像)が表示され、その顔の目、鼻、口などの各部位には、各部位に設定されている1又は2以上の制御点(例えば、「ボーン」と呼ばれるポリゴンの頂点の位置を制御する制御点)を移動させるための1又は2以上の第1の操作点が表示される。顔画像編集を行う作業者が操作部を操作して第1の操作点を指定し、その第1の操作点を移動させる操作を行うと、その操作情報に基づいて、当該第1の操作点の移動方向と移動位置を含む第1の移動情報が算出される。   According to the present invention, when an operator edits a face image, a standard face image (for example, a face image represented by a polygon model) in which the surface shape of the face is represented by a set of many polygons on the display unit. ) Is displayed, and for each part such as eyes, nose, mouth of the face, one or two or more control points (for example, “bone”) set in each part are controlled. One or two or more first operation points for moving the control point) are displayed. When the operator who edits the face image operates the operation unit to designate the first operation point and performs an operation of moving the first operation point, the first operation point is based on the operation information. First movement information including the movement direction and the movement position is calculated.

また、操作部で指定された第1の操作点の移動に連動させる1又は2以上の制御点について、当該第1の操作点に対して算出される第1の移動情報と各制御点に予め設定されている連動条件とに基づいて、各制御点の移動位置を含む第2の移動情報が算出される。また、制御点の移動に連動させる多角形の頂点として予め設定された1又は2以上の多角形の頂点について、制御点に対して算出される第2の移動情報と各多角形の頂点に予め設定されている連動条件とに基づき、各多角形の頂点の移動位置を含む第3の移動情報が算出される。   In addition, with respect to one or more control points that are linked to the movement of the first operation point designated by the operation unit, the first movement information calculated for the first operation point and each control point are set in advance. Based on the set interlocking conditions, second movement information including the movement position of each control point is calculated. Further, for one or more polygon vertices preset as polygon vertices linked to the movement of the control points, the second movement information calculated for the control points and the vertices of each polygon Based on the set interlocking condition, third movement information including the movement position of the vertex of each polygon is calculated.

そして、表示部に表示された標準の顔画像において、操作部で指定された第1の操作点が第1の移動情報に含まれる移動位置に移動されるとともに、第3の移動情報が算出された1又は2以上の多角形の頂点が当該第3の移動情報に含まれる移動位置に移動され、これにより標準の顔画像が変化する。   Then, in the standard face image displayed on the display unit, the first operation point designated by the operation unit is moved to the movement position included in the first movement information, and the third movement information is calculated. Further, the vertex of one or more polygons is moved to the movement position included in the third movement information, thereby changing the standard face image.

上記のように、本発明によれば、作業者は第1の操作点を移動させることによって1又は2以上の制御点を連動させることができるので、従来の制御点を移動させる方法に比べて、顔画像の編集作業の効率を向上させることができ、編集時間を短縮することができる。   As described above, according to the present invention, the operator can link one or more control points by moving the first operation point, so that compared with the conventional method of moving the control points. The efficiency of the face image editing work can be improved, and the editing time can be shortened.

また、第1の操作点には他の第1の操作点と連動関係にあるものが設けられているので、例えば、目に設けられた第1の操作点と眉毛に設けられた第1の操作点とが連動関係に設定されていると、作業者は目の第1の操作点を移動させて当該目の形状を変形させた場合、眉毛の第1の操作点が目の第1の操作点に連動して眉毛の形状も変化する。これにより、目と眉毛の形状をバランス良く変化させることができる。   In addition, since the first operation point is linked to the other first operation points, for example, the first operation point provided on the eye and the first operation point provided on the eyebrows When the operation point is set in an interlocking relationship, when the operator moves the first operation point of the eye to change the shape of the eye, the first operation point of the eyebrows is changed to the first eye point of the eye. The shape of the eyebrows changes in conjunction with the operating point. Thereby, the shape of eyes and eyebrows can be changed with good balance.

また、各部位の形状を全体的に拡大又は縮小させたり、移動させたり、回転させたりするために、各部位に設定されている1又は2以上の第1の操作点を移動させるための第2の操作点が表示される。作業者が操作部を操作して第2の操作点を指定し、その第2の操作点に対する所定の操作を行うと、その第2の操作点が設定された部位に設定されている1又は2以上の第1の操作点について、当該第1の操作点に設定されている移動条件と操作部から入力される操作情報に基づいて、第1の移動情報が算出されるとともに、当該第1の操作点に連動させる複数の制御点について、その第1の移動情報と当該制御点に設定されている移動条件に基づいて、第2の移動情報が算出される。また、制御点の移動に連動させる多角形の頂点について、制御点に対して算出される第2の移動情報と各多角形の頂点に予め設定されている連動条件とに基づき、第3の移動情報が算出される。   Further, in order to enlarge, reduce, move, or rotate the shape of each part as a whole, the first operation point for moving one or more first operation points set in each part is provided. 2 operation points are displayed. When an operator operates the operation unit to designate a second operation point and performs a predetermined operation on the second operation point, the second operation point is set to the set part 1 or For the two or more first operation points, the first movement information is calculated based on the movement conditions set at the first operation point and the operation information input from the operation unit, and the first operation point is calculated. The second movement information is calculated based on the first movement information and the movement condition set for the control point for a plurality of control points linked to the operation point. In addition, with respect to the vertex of the polygon that is interlocked with the movement of the control point, the third movement is performed based on the second movement information calculated for the control point and the interlocking condition that is preset for each vertex of the polygon. Information is calculated.

そして、表示部に表示された標準の顔画像において、操作部で指定された第2の操作点に連動する第1の操作点が第1の移動情報に含まれる移動位置に移動されるとともに、第3の移動情報が算出された1又は2以上の多角形の頂点が当該第3の移動情報に含まれる移動位置に移動され、これにより標準の顔画像が変化する。   Then, in the standard face image displayed on the display unit, the first operation point linked to the second operation point specified by the operation unit is moved to the movement position included in the first movement information, The vertex of one or two or more polygons for which the third movement information is calculated is moved to the movement position included in the third movement information, thereby changing the standard face image.

例えば、目に第2の操作点として部位移動用操作点が表示されている場合、作業者が部位移動用操作点を指定し、その部位移動用操作点を移動させると、目に設定されている複数の第1の操作点について、部位移動用操作点の移動方向及び移動量に基づき各第1の操作点を標準の位置から部位移動用操作点と同一の方向に同一の移動量だけ移動させた移動位置が算出される。また、第1の操作点に連動する制御点やその制御点に連動する多角形の頂点についてもそれぞれ移動位置が算出される。   For example, when a part movement operation point is displayed as the second operation point in the eye, if the operator designates the part movement operation point and moves the part movement operation point, the part movement operation point is set to the eye. For each of the plurality of first operating points, the first operating point is moved from the standard position by the same moving amount in the same direction as the operating point for moving the part based on the moving direction and moving amount of the moving part for moving the part. The moved position is calculated. In addition, the movement position is calculated for each of the control points linked to the first operation point and the vertices of the polygon linked to the control points.

そして、表示部に表示された標準の顔画像において、第1,第2の操作点が移動するとともにこれに連動して多角形の頂点が移動し、目の位置が変化する。従って、作業者は部位移動用操作点を操作するだけで、アンバランスを招くことなく目を簡単に所望の形に編集することができる。   Then, in the standard face image displayed on the display unit, the first and second operation points move, and the polygonal vertex moves in conjunction with the movement, and the position of the eyes changes. Therefore, the operator can easily edit the eye into a desired shape without causing unbalance by simply operating the operation point for moving the part.

また、目に第2の操作点として部位拡縮用操作点が表示されている場合、作業者が部位拡縮用操作点を指定して拡大または縮小の倍率を入力すると、目に設定されている複数の第1の操作点について、各第1の操作点と部位拡縮用操作点を結ぶ線上で各第1の操作点の部位拡縮用操作点からの標準の距離を入力された倍率で変化させた距離にある移動位置がそれぞれ算出される。また、第1の操作点に連動する制御点やその制御点に連動する多角形の頂点についてもそれぞれ移動位置が算出される。   In addition, when an operation point for part enlargement / reduction is displayed as the second operation point in the eye, when the operator designates the operation point for part enlargement / reduction and inputs an enlargement / reduction ratio, a plurality of points set for the eye For the first operation point, the standard distance from the operation point for part enlargement / reduction of each first operation point on the line connecting each first operation point and the operation point for part enlargement / reduction is changed by the input magnification. Each moving position at a distance is calculated. In addition, the movement position is calculated for each of the control points linked to the first operation point and the vertices of the polygon linked to the control points.

そして、表示部に表示された標準の顔画像において、第1の操作点が移動するとともにこれに連動して多角形の頂点が移動し、目全体が拡大または縮小する。従って、作業者は、部位拡縮用操作点を操作するだけで簡単に目を大きい目や小さい目に編集することができる。   Then, in the standard face image displayed on the display unit, the first operation point is moved, and the vertex of the polygon is moved in conjunction therewith, so that the entire eye is enlarged or reduced. Therefore, the operator can easily edit the eyes with large eyes and small eyes only by operating the operation points for part enlargement / reduction.

また、目に第2の操作点として部位回転操作点が表示されている場合、作業者が部位回転用操作点を指定し、その部位回転用操作点を回転させると、目に設定されている複数の第1の操作点について、部位回転用操作点の回転方向及び回転量と各第1の操作点に予め設定された移動条件に基づき、移動方向と移動位置がそれぞれ算出される。また、第1の操作点に連動する制御点やその制御点に連動する多角形の頂点についてもそれぞれ移動位置が算出される。   Further, when a part rotation operation point is displayed as the second operation point in the eye, when the operator designates the part rotation operation point and rotates the part rotation operation point, it is set to the eye. For the plurality of first operation points, the movement direction and the movement position are calculated based on the rotation direction and rotation amount of the part rotation operation point and the movement condition set in advance for each first operation point. In addition, the movement position is calculated for each of the control points linked to the first operation point and the vertices of the polygon linked to the control points.

そして、表示部に表示された標準の顔画像において、第1の操作点が移動するとともにこれに連動して多角形の頂点が移動し、目全体が回転する。従って、作業者は部位回転用操作点を操作するだけで簡単に目を吊り上った形や垂れ下がった形に編集することができる。   Then, in the standard face image displayed on the display unit, the first operation point moves and the polygonal vertex moves in conjunction with the movement of the first operation point, thereby rotating the entire eye. Therefore, the operator can easily edit the shape so that the eyes are lifted or hung down simply by operating the operation point for rotating the part.

また、記憶部に、顔画像編集用の標準の顔画像に加えて、その標準の顔画像の所定の部位を変化させて標準の顔に所定の表情をさせる複数コマ分の顔画像を含むアニメーション編集用の顔画像が含まれ、標準の顔画像に対して編集が行われた場合、自動的に編集後の顔画像がアニメーション編集用の顔画像に変更される。従って、アニメーション編集用の顔画像を再生すると、編集後の顔画像に対して所定の表情をさせることができるので、作業者は、アニメーション編集用の顔画像に対して標準の顔画像に対する編集と同様の編集を改めてする必要がなく、アニメーションの編集作業を低減し、編集効率を向上させることができる。   In addition to the standard face image for editing the face image, the storage unit includes an animation including a face image for a plurality of frames for changing a predetermined part of the standard face image and causing the standard face to have a predetermined expression. When a face image for editing is included and a standard face image is edited, the face image after editing is automatically changed to a face image for animation editing. Therefore, when a face image for animation editing is reproduced, a predetermined expression can be given to the face image after editing, so that an operator can edit a standard face image for a face image for animation editing. It is not necessary to perform similar editing again, and the animation editing work can be reduced and the editing efficiency can be improved.

また、顔画像編集で編集した顔画像に対するアニメーションの動きが不自然な場合や違和感がある場合に、アニメーション編集の複数コマの顔画像のうちのその部分のコマの顔画像を編集する場合でも、アニメーション編集用の顔画像に顔画像編集の第1の操作点及び第2の操作点と同様の機能を果たす第3の操作点及び第4の操作点が設けられているので、アニメーション編集を容易に行うことができる。   In addition, even when editing the face image of that part of the multiple face images of animation editing, if the movement of the animation to the face image edited by face image editing is unnatural or uncomfortable, The face image for animation editing is provided with the third operation point and the fourth operation point that perform the same functions as the first operation point and the second operation point for face image editing, so that animation editing is easy. Can be done.

本発明に係る顔画像編集用プログラムが実行される顔画像編集装置の基本構成を示すブロック図である。It is a block diagram which shows the basic composition of the face image editing apparatus with which the program for face image editing which concerns on this invention is performed. 作業者が所望のゲームキャラクタの標準の顔画像を選択し、その顔画像に対する編集処理を指令したときに表示装置に表示される顔画像の一例を示す図である。It is a figure which shows an example of the face image displayed on a display apparatus, when an operator selects the standard face image of a desired game character and instruct | indicates the edit process with respect to the face image. ボーンに関連付けられたポリゴン頂点に設定される連動用のパラメータを説明するための図で、(a)はポリゴン頂点に連動用のパラメータとして設定される移動方向の角度と移動割合を示す図であり、(b)はボーンの移動に連動して4個のポリゴン頂点を移動させた状態の一例を示す図である。It is a figure for demonstrating the parameter for the interlock | linkage set to the polygon vertex linked | related with the bone, (a) is a figure which shows the angle and the movement ratio of the moving direction set as a parameter for a link to a polygon vertex. (B) is a figure which shows an example of the state which moved four polygon vertices in connection with the movement of a bone. 目と眉毛の部位に設けられた部位変形用マーカの一例を示し、(a)は目の部位変形用マーカを移動させる前の目及び眉毛の状態を示す図、(b)は同部位変形用マーカを移動させた後の目及び眉毛の状態を示す図である。An example of the part deformation | transformation marker provided in the site | part of eyes and eyebrows is shown, (a) is a figure which shows the state of the eye and eyebrows before moving the eye part deformation | transformation marker, (b) is for the same part deformation | transformation It is a figure which shows the state of the eye and eyebrows after moving a marker. 顔画像に設けられている部位変形用マーカ、部位変形用マーカに関連付けられたボーン及びボーンに関連付けられたポリゴン頂点の相互のデータ構造関係の一例を示す図である。It is a figure which shows an example of the data structure relationship between the part deformation | transformation marker provided in the face image, the bone | frame linked | related with the part deformation | transformation marker, and the polygon vertex linked | related with the bone. 目の部位に設けられた部位移動用マーカの一例を示し、(a)は目の部位移動用マーカによって目を移動させる前の状態を示す図、(b)は同部位移動用マーカMによって目全体を鼻筋側に移動させた状態を示す図である。An example of the part movement marker provided in the eye part is shown, (a) is a diagram showing a state before the eye is moved by the eye part movement marker, and (b) is the eye by the part movement marker M. It is a figure which shows the state which moved the whole to the nose muscle side. 目の部位移動用マーカに関連付けられた6つの部位変形用マーカに連動用のパラメータとして設定される移動方向と移動割合を説明するための図である。It is a figure for demonstrating the moving direction and moving ratio which are set as a parameter for a link | linkage to the six site | part deformation | transformation markers linked | related with the eye region movement marker. 部位拡縮マーカを指定して部位のサイズを拡大又は縮小するときの入力インターフェースとして表示画面に表示される倍率線の一例を示す図である。It is a figure which shows an example of the magnification line displayed on a display screen as an input interface when designating a site | part expansion / contraction marker and enlarging or reducing the size of a site | part. 目の部位に設けられた部位拡縮用マーカの一例を示し、(a)は目の部位拡縮用マーカによって目を拡大する前の状態を示す図、(b)は同部位拡縮用マーカによって目を拡大した状態を示す図である。An example of the part enlargement / reduction marker provided in the eye part is shown, (a) is a diagram showing a state before the eyes are enlarged by the eye part enlargement / reduction marker, and (b) is an eye view of the part enlargement / reduction marker. It is a figure which shows the state expanded. 目の部位拡縮用マーカに関連付けられた6つの部位変形用マーカに連動用のパラメータとして設定される移動方向と移動割合を説明するための図である。It is a figure for demonstrating the moving direction and moving ratio which are set as a parameter for a link | linkage to the six site | part deformation | transformation markers linked | related with the eye region expansion / contraction marker. 目の部位に設けられた部位回転用マーカの一例を示し、(a)は目の部位回転マーカによって目を回転する前の状態を示す図、(b)は同部位回転用マーカによって目を回転した状態を示す図である。An example of the part rotation marker provided in the eye part is shown, (a) is a diagram showing the state before the eye is rotated by the eye part rotation marker, (b) is the eye rotated by the part rotation marker It is a figure which shows the state which carried out. 目の部位回転用マーカに関連付けられた6つの部位変形用マーカに連動用のパラメータとして設定される移動方向と移動割合を説明するための図である。It is a figure for demonstrating the moving direction and moving ratio which are set as a parameter for a link | linkage to the six part deformation | transformation markers linked | related with the eye part rotation marker. 目と眉毛の部位に設けられたアニメーション編集用の部位変形用マーカの一例を示す図である。It is a figure which shows an example of the part deformation | transformation marker for animation edit provided in the site | part of eyes and eyebrows. 顔画像編集における顔の表面形状の編集の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the face surface shape edit in face image editing.

以下、本発明の好ましい実施の形態として、ゲームに登場させる人型のキャラクタ(以下、「ゲームキャラクタ」という。)の顔の表面形状を編集する場合を例に図面を参照して具体的に説明する。   Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the drawings, taking as an example the case of editing the face shape of a humanoid character (hereinafter referred to as “game character”) to appear in a game. To do.

図1は、本発明に係る顔画像編集用プログラムが実行される顔画像編集装置の基本構成を示すブロック図である。   FIG. 1 is a block diagram showing a basic configuration of a face image editing apparatus in which a face image editing program according to the present invention is executed.

顔画像編集装置1は、CPU(Central Processing Unit)2、ROM(Read Only Memory)3、RAM(Random Access Memory)4、外部記憶装置5、入力装置6及び表示装置7を含むコンピュータシステムによって構成される。ROM3にはオペレーションプログラムと、本発明に係る顔画像編集用プログラムが記憶されている。顔画像編集用プログラムには、標準の顔の表面形状を所望の形状に編集するための標準顔編集用プログラムとゲームキャラクタのアニメーション用の顔の表情を所望の表情に編集するためのアニメーション編集用プログラムが含まれる。   The face image editing apparatus 1 is configured by a computer system including a CPU (Central Processing Unit) 2, a ROM (Read Only Memory) 3, a RAM (Random Access Memory) 4, an external storage device 5, an input device 6, and a display device 7. The The ROM 3 stores an operation program and a face image editing program according to the present invention. The face image editing program includes a standard face editing program for editing a standard face surface shape into a desired shape, and an animation editing program for editing facial expressions for game character animation into desired expressions. A program is included.

外部記憶装置5には,CPU2が標準顔編集用プログラムを実行することによって行われる編集処理の対象となるゲームキャラクタの標準の顔の表面形状を表すデータ(以下、このデータを「標準顔画像データ」という。)と、CPU2がアニメーション編集用プログラムを実行することによって行われる編集処理の対象となるアニメーションデータ(ゲームキャラクタの標準の顔画像の目や口などの部位を変化させて「笑う」、「怒る」、「泣く」などの各種の特定の表情をさせる複数コマ分の表面形状の画像で構成されるデータ)とが記憶されている。外部記憶装置5には編集後の顔画像データとアニメーションデータをそれぞれ所定数分だけ保存する記憶領域が設けられており、顔画像データ又はアニメーションデータに対して編集処理が行われると、その編集後の顔画像データ及びアニメーションデータが外部記憶装置5に保存される。   In the external storage device 5, data representing the standard face shape of the game character to be edited by the CPU 2 executing the standard face editing program (hereinafter referred to as “standard face image data”). ”) And animation data to be subjected to editing processing performed by the CPU 2 executing the animation editing program (“ laughing ”by changing the parts such as eyes and mouth of the standard face image of the game character) Data composed of images of surface shapes for a plurality of frames that cause various specific facial expressions such as “get angry” and “cry”. The external storage device 5 is provided with a storage area for storing a predetermined number of face image data and animation data after editing. When face image data or animation data is edited, Are stored in the external storage device 5.

なお、標準顔画像データは、表示装置7に表示される顔画像そのもののデータではなく、顔の表面形状をポリゴンモデリングによるサーフェスモデルで表現し、XYZ座標系にそのサーフェスモデルを置いて各ポリゴン(多角形。図2では三角形で示される部分)の頂点(以下、「ポリゴン頂点」という。)の位置座標を求めた、多数のポリゴン頂点の位置データの集合で構成されている。本実施形態では、後述するように、顔画像の編集機能として、顔の各部位に複数のボーンを設定し、各ボーンの移動に複数のポリゴン頂点を連動して移動させる構成と、各部位に作業者がボーン及びポリゴン頂点を移動させるための操作点として複数のマーカを設定し、各マーカに対する操作内容に応じて1又は2以上のボーンを移動させる構成を設けているので、標準顔画像データには複数のボーンと複数のマーカの各位置データも含まれている。   The standard face image data is not data of the face image itself displayed on the display device 7, but the surface shape of the face is expressed by a surface model by polygon modeling, and the surface model is placed in the XYZ coordinate system to display each polygon ( A polygon (a portion indicated by a triangle in FIG. 2) is composed of a set of position data of a large number of polygon vertices obtained from position coordinates of vertices (hereinafter referred to as “polygon vertices”). In the present embodiment, as described later, as a face image editing function, a plurality of bones are set for each part of the face, and a plurality of polygon vertices are moved in conjunction with the movement of each bone. Since the operator sets a plurality of markers as operation points for moving the bones and polygon vertices and moves one or more bones according to the operation contents for each marker, standard face image data is provided. Includes the position data of a plurality of bones and a plurality of markers.

従って、表示装置7にゲームキャラクタの標準の顔画像を表示するときには、標準顔画像データと、各ポリゴンに張り付ける無地のテクスチャとに基づいて、顔の表面形状を表す三次元形状画像を生成する処理が行われ、その処理結果である三次元形状画像が表示装置7に表示される。   Therefore, when displaying the standard face image of the game character on the display device 7, a three-dimensional shape image representing the surface shape of the face is generated based on the standard face image data and the plain texture attached to each polygon. Processing is performed, and a three-dimensional shape image as a result of the processing is displayed on the display device 7.

アニメーションデータも同様で、各コマの顔画像は多数のポリゴン頂点と複数のボーンと複数のマーカの各位置データの集合となっている。アニメーション画像は顔画像の特定の部位の動きを表現する画像であるから、各コマの顔画像のデータは、特定の部位を構成するポリゴン頂点とその部位に設けられたボーン及びマーカの位置が最初のコマの顔画像における位置に対して移動したデータとなっている。従って、表示装置7にアニメーション画像を表示するときには、所定の周期(例えば、1/30秒)で各コマの顔画像データと各ポリゴンに張り付ける無地のテクスチャとに基づいて顔の三次元形状画像を生成する処理(アニメーションデータの再生処理)が行われ、その処理結果である各コマの三次元形状画像が表示装置7に順次表示される。   The same applies to animation data. The face image of each frame is a set of position data of a large number of polygon vertices, a plurality of bones, and a plurality of markers. Since the animation image is an image representing the movement of a specific part of the face image, the face image data of each frame is the first of the polygon vertices constituting the specific part and the positions of bones and markers provided in the part. The data is moved with respect to the position in the face image of the frame. Therefore, when displaying an animation image on the display device 7, the face three-dimensional shape image is based on the face image data of each frame and the plain texture pasted on each polygon in a predetermined cycle (for example, 1/30 second). Is generated (animation data reproduction processing), and the three-dimensional shape image of each frame, which is the processing result, is sequentially displayed on the display device 7.

予め用意されているアニメーション画像は標準の顔画像を基に作成されているので、標準の顔を編集により変形した場合、アニメーション画像の最初のコマの顔画像のデータを変形後の顔画像のデータに変更すれば、アニメーションデータの再生処理により変形後の顔画像に対して目や口などの部位を予め設定されている動きと同様の動きをさせることができる。   Since the animation image prepared in advance is created based on the standard face image, when the standard face is modified by editing, the face image data of the first frame of the animation image is converted to the face image data after deformation. By changing to, it is possible to make the movements similar to the movements set in advance for the parts such as the eyes and the mouth of the deformed face image by the reproduction process of the animation data.

従って、本実施形態では、標準の顔画像を変形させる編集をした場合、自動的にアニメーションデータの最初のコマの顔画像のデータを変形後の顔画像のデータに変更したり、動きのある部位のマーカやボーンのコマ毎の移動量を標準の顔画像の編集内容に応じて変更したりするだけで標準の顔画像の編集内容をアニメーション画像に反映できるようにしている。   Therefore, in the present embodiment, when editing is performed to deform a standard face image, the face image data of the first frame of the animation data is automatically changed to the face image data after the deformation, or a moving part. The editing contents of the standard face image can be reflected in the animation image only by changing the movement amount of each marker or bone in accordance with the editing contents of the standard face image.

その一方、標準の顔画像の編集内容を反映したアニメーション画像が常に適切であるとは限らず、不自然な動きになる場合もある。そのような場合には不自然な動きとなる部分のコマの顔画像の編集が必要になる。アニメーション編集用プログラムは、アニメーションデータに対してこのような編集をするためのもので、主としてアニメーションのクリエータ用に設けられている。   On the other hand, an animation image reflecting the edited content of a standard face image is not always appropriate, and sometimes an unnatural movement is caused. In such a case, it is necessary to edit the face image of the frame that is unnatural. The animation editing program is for editing such animation data, and is provided mainly for animation creators.

入力装置6は、作業者がCPU2に実行させる処理に必要な情報を入力するための装置で、例えば、キーボードやマウスなどで構成される。表示装置7は、CPU2が実行している処理に関する情報を表示するための装置であり、CRTや液晶ディスプレイなどで構成される。なお、入力装置6及び表示装置7をタッチパネルで構成してもよい。   The input device 6 is a device for inputting information necessary for processing performed by the operator to the CPU 2, and includes, for example, a keyboard and a mouse. The display device 7 is a device for displaying information related to processing executed by the CPU 2, and is configured by a CRT, a liquid crystal display, or the like. In addition, you may comprise the input device 6 and the display apparatus 7 with a touch panel.

CPU2は、作業者の操作によって入力装置6からゲームキャラクタの顔の編集処理が指令されると、ROM3から標準顔編集用プログラムをRAM4に読み出すとともに、外部記憶装置5からゲームキャラクタの標準顔画像データをRAM4に読み出す。また、CPU2は、RAM4に読み出した標準顔画像データとポリゴンに張り付けるテクスチャとに基づいて顔の表面形状を表す三次元形状画像を生成し、その三次元形状画像を表示装置7に表示させる。その後、CPU2は、作業者の操作によって入力装置6から入力される操作情報に基づき標準顔編集用プログラムに従って顔の表面形状を変形させる処理を行い、その処理結果を表示装置7に出力し、表示装置7に表示されるゲームキャラクタの顔の表面形状を変化させる。そして、CPU2は、作業者の操作によって入力装置6からゲームキャラクタの顔の編集処理終了が指令されると、RAM4に記憶されている編集処理の処理結果を外部記憶装置5に保存する。   When the editing operation of the face of the game character is instructed from the input device 6 by the operator's operation, the CPU 2 reads the standard face editing program from the ROM 3 into the RAM 4 and reads out the standard face image data of the game character from the external storage device 5. Is read into the RAM 4. Further, the CPU 2 generates a three-dimensional shape image representing the surface shape of the face based on the standard face image data read out to the RAM 4 and the texture attached to the polygon, and causes the display device 7 to display the three-dimensional shape image. Thereafter, the CPU 2 performs a process of deforming the face surface shape according to the standard face editing program based on the operation information input from the input device 6 by the operator's operation, and outputs the processing result to the display device 7 for display. The surface shape of the face of the game character displayed on the device 7 is changed. Then, the CPU 2 stores the processing result of the editing process stored in the RAM 4 in the external storage device 5 when an instruction to end the editing process of the face of the game character is given from the input device 6 by the operator's operation.

CPU2は、作業者の操作によって入力装置6からアニメーション用の顔の編集処理が指令されると、ROM3からアニメーション編集用プログラムをRAM4に読み出すとともに、外部記憶装置5からアニメーションデータをRAM4に読み出す。また、CPU2は、RAM4に読み出したアニメーションデータのうち、作業者の操作によって入力装置6から入力されるコマの顔の表面形状のデータとポリゴンに張り付けるテクスチャとに基づいて当該コマの顔の表面形状を表す三次元形状画像を生成し、その三次元形状画像を表示装置7に表示させる。その後、CPU2は、作業者の操作によって入力装置6から入力される操作情報に基づきアニメーション編集用プログラムに従って顔の表面形状を変形させる処理を行い、その処理結果を表示装置7に出力し、表示装置7に表示されるゲームキャラクタの顔の表面形状を変化させる。そして、CPU2は、作業者の操作によって入力装置6からゲームキャラクタのアニメーション編集用の顔の編集処理終了が指令されると、RAM4に記憶されている編集処理の処理結果を外部記憶装置5に保存する。   When an input of the animation device is instructed from the input device 6 by the operator's operation, the CPU 2 reads the animation editing program from the ROM 3 to the RAM 4 and reads the animation data from the external storage device 5 to the RAM 4. In addition, the CPU 2 determines the surface of the face of the frame based on the surface shape data of the face of the frame input from the input device 6 by the operator's operation and the texture attached to the polygon from the animation data read out to the RAM 4. A three-dimensional shape image representing the shape is generated, and the three-dimensional shape image is displayed on the display device 7. Thereafter, the CPU 2 performs a process of deforming the surface shape of the face according to the animation editing program based on the operation information input from the input device 6 by the operator's operation, and outputs the processing result to the display device 7. 7 changes the surface shape of the face of the game character displayed on the screen. The CPU 2 saves the processing result of the editing process stored in the RAM 4 in the external storage device 5 when the input operation is instructed by the operator to end the editing process of the face for animation editing of the game character. To do.

次に、本発明に係る顔画像編集用プログラムによって実行されるゲームキャラクタの顔画像編集方法について説明する。   Next, a game character face image editing method executed by the face image editing program according to the present invention will be described.

本発明に係る顔形状編集には、ゲームキャラクタの標準モデルの顔の表面形状を編集するモード(顔画像編集モード)と、アニメーション画像の指定されたコマの顔の表面形状を編集するモード(アニメーション編集モード)とがある。顔画像編集モードは、外部記憶装置5に記憶されたゲームキャラクタの標準顔画像データを用いて行う編集モードであり、アニメーション編集モードは、外部記憶装置5に記憶されたアニメーションデータを用いて行う編集モードである。   The face shape editing according to the present invention includes a mode for editing the face shape of the standard model of the game character (face image editing mode) and a mode for editing the face shape of the face of the designated frame of the animation image (animation). Edit mode). The face image editing mode is an editing mode performed using the standard face image data of the game character stored in the external storage device 5, and the animation editing mode is an editing performed using animation data stored in the external storage device 5. Mode.

上述したように、本実施形態では、顔画像編集モードで標準の顔画像の編集を行うと、その編集内容が標準の顔画像で作成されたアニメーションデータに自動的に反映されるので、アニメーションデータを再生した場合には編集後の顔画像に対するアニメーション画像を表示装置7に表示させることができる。従って、編集後の顔画像に対するアニメーション画像に特に問題がない場合にはアニメーションデータに対して顔画像編集モードで行った編集作業と同様の編集作業をする必要はなく、例えば、部位のサイズを変更したことによって動きに不自然さが生じたり、動いたときの部位の形状に違和感が生じたりした場合にその部分のコマについて改めて編集が行われる。この場合の各コマの顔画像に対する編集作業は基本的に顔画像編集モードで行う編集作業と同様である。   As described above, in this embodiment, when a standard face image is edited in the face image editing mode, the edited content is automatically reflected in the animation data created with the standard face image. Can be displayed on the display device 7 as an animation image for the edited face image. Therefore, if there is no particular problem with the animation image for the edited face image, it is not necessary to perform the same editing operation as that performed in the face image editing mode on the animation data. For example, the size of the part is changed. Thus, when the movement is unnatural or the shape of the moving part is uncomfortable, the frame of that part is edited again. The editing operation for the face image of each frame in this case is basically the same as the editing operation performed in the face image editing mode.

図2は、作業者が入力装置6を操作して外部記憶装置5に記憶されている複数種類のゲームキャラクタの標準の顔画像から所望の顔画像を選択し、当該顔画像に対して編集処理を指令したときに表示装置7に表示される顔画像の一例を示す図である。   FIG. 2 shows that an operator operates the input device 6 to select a desired face image from standard face images of a plurality of types of game characters stored in the external storage device 5, and edits the face image. It is a figure which shows an example of the face image displayed on the display apparatus 7 when commanding.

まず、顔画像編集モードにおける編集処理の内容について説明する。   First, the contents of the editing process in the face image editing mode will be described.

図2に示すように、顔画像編集用のゲームキャラクタの顔画像は、ポリゴンモデリングによるサーフェスモデルの三次元形状画像で表現されている。顔の表面形状の変更はポリゴン頂点を移動させることによって行われる。このため、顔の表面形状の編集空間には同図の左下に示されるように、XYZの直交座標系が設定されている。XYZ座標系は、ゲームキャラクタの顔を正面から見て左右方向をX軸、上下方向をY軸、前後方向をZ軸とする座標系である。なお、X軸、Y軸、Z軸はそれぞれ右方向、上方向、後方向が+方向となっている。表示装置7の表示画面7aに正面視の顔画像が表示されている場合は、表示画面7aの横方向がX軸、縦方向がY軸、画面に垂直な方向がZ軸となる。   As shown in FIG. 2, the face image of the game character for face image editing is represented by a three-dimensional shape image of a surface model by polygon modeling. The face surface shape is changed by moving the polygon vertex. For this reason, an XYZ orthogonal coordinate system is set in the editing space of the face shape of the face as shown in the lower left of the figure. The XYZ coordinate system is a coordinate system in which the left and right direction is the X axis, the vertical direction is the Y axis, and the front and rear direction is the Z axis when the game character's face is viewed from the front. The X axis, the Y axis, and the Z axis are the + direction in the right direction, the upward direction, and the backward direction, respectively. When a face image in front view is displayed on the display screen 7a of the display device 7, the horizontal direction of the display screen 7a is the X axis, the vertical direction is the Y axis, and the direction perpendicular to the screen is the Z axis.

顔の表面形状を構成する多数のポリゴン頂点にはそれぞれ識別用のポリゴン番号とXYZ座標系の座標が設定されている。なお、以下の説明では、ポリゴン頂点の符号を「P」とし、ポリゴン番号jによって複数のポリゴン頂点Pを識別する場合には「P(j)」の表記をする。また、XYZ座標系における位置座標は(X,Y,Z)で表わすが、各座標には何の位置座標であるかを示す添え字を付して表記する。従って、ポリゴン頂点Pの位置座標は「(Xp,Yp,Zp)」(添え字「p」はポリゴン頂点Pを示す)と表記し、複数のポリゴン頂点Pの位置座標をポリゴン番号jで識別する場合は「(Xpj,Ypj,Zpj)」(添え字「j」はポリゴン番号を示す)と表記する。この表記方法は、後述するボーンやマーカの位置座標についても同様である。 A polygon number for identification and coordinates in the XYZ coordinate system are set for a large number of polygon vertices constituting the surface shape of the face. In the following description, the symbol of the polygon vertex is “P”, and when a plurality of polygon vertices P are identified by the polygon number j, “P (j)” is described. The position coordinates in the XYZ coordinate system are represented by (X, Y, Z), and each coordinate is described with a suffix indicating what position coordinate it is. Therefore, the position coordinates of the polygon vertex P are expressed as “(X p , Y p , Z p )” (subscript “p” indicates the polygon vertex P), and the position coordinates of the plurality of polygon vertices P are represented by the polygon number j. Is identified by “(X pj , Y pj , Z pj )” (subscript “j” indicates a polygon number). This notation method is the same for the position coordinates of bones and markers described later.

顔画像編集では膨大なポリゴン頂点Pを個々に移動させて顔画像の表面形状を所望の形状に変形させることは困難であるので、図4(a)に示すように、顔画像内に多数の「ボーン」と呼ばれるポリゴン頂点Pの位置を制御する制御点が設けられている。図4(a)は、図2に示す顔画像の左側の目の部分を拡大した図であるが、同図では、ボーンの符号を「B」とし、ボーン番号iのボーンBを「B(i)」と表記している。各ボーンB(i)(i=1,2,…8)は、ボーンB(i)の移動に連動して当該ボーンB(i)に関連付けられた1又は2以上のポリゴン頂点P(j)を移動させる機能を果すものである。各ボーンB(i)にもそれぞれXYZ座標系の位置座標(Xbi,Ybi,Zbi)が設定されている。なお、各位置座標の添え字の「b」はボーンBの位置座標であることを示し、「i」はボーン番号を示している。 In face image editing, it is difficult to individually move a large number of polygon vertices P and transform the surface shape of the face image into a desired shape. Therefore, as shown in FIG. A control point called “bone” for controlling the position of the polygon vertex P is provided. FIG. 4A is an enlarged view of the left eye part of the face image shown in FIG. 2. In FIG. 4B, the bone code is “B” and the bone B with the bone number i is “B ( i) ". Each bone B (i) (i = 1, 2,..., 8) is linked to one or more polygon vertices P (j) associated with the bone B (i) in conjunction with the movement of the bone B (i). It performs the function of moving. Position coordinates (X bi , Y bi , Z bi ) of the XYZ coordinate system are also set for each bone B (i). Note that the subscript “b” of each position coordinate indicates the position coordinate of the bone B, and “i” indicates the bone number.

ボーンB(i)に関連付けられたポリゴン頂点P(j)には、図3(a)に示すように、ボーンB(i)が移動したときに当該ボーンB(i)の移動方向Nbiを基準とした移動方向θpjbi(角度)と、当該ボーンB(i)の移動量Dbiに対するポリゴン頂点P(j)の移動量の倍率Kpjbiが連動用のパラメータとして設定されている。 As shown in FIG. 3A, the polygon vertex P (j) associated with the bone B (i) has a moving direction N bi of the bone B (i) when the bone B (i) moves. The reference moving direction θ pjbi (angle) and the magnification K pjbi of the moving amount of the polygon vertex P (j) with respect to the moving amount D bi of the bone B (i) are set as parameters for interlocking.

なお、符号「Nbi」,「Dbi」の添え字「b」と「i」はそれぞれ「ボーン」と「ボーン番号」を示し、「bi」でボーン番号iのボーンBに関するものであることを示している。また、符号「θpjbi」,「Kpjbi」の添え字「p」、「j」、「b」、「i」はそれぞれ「ポリゴン頂点」、「ポリゴン番号」、「ボーン」、「ボーン番号」を示し、ボーン番号iのボーンB(i)に関連付けられたポリゴン番号jのポリゴン頂点P(j)に関するパラメータであることを示している。この添え字の表記方法は、後述する部位変形用のマーカの移動方向や移動量の倍率(以下、「移動倍率」という。)についても同様である。 The subscripts “b” and “i” of the symbols “N bi ” and “D bi ” indicate “bone” and “bone number”, respectively, and “bi” relates to the bone B having the bone number i. Is shown. The subscripts “p”, “j”, “b”, and “i” of the symbols “θ pjbi ” and “K pjbi ” are “polygon vertex”, “polygon number”, “bone”, and “bone number”, respectively. , Indicating that the parameter is related to the polygon vertex P (j) of the polygon number j associated with the bone B (i) of the bone number i. This notation method for subscripts is the same for the movement direction and the magnification of the movement amount (hereinafter referred to as “movement magnification”) of the part deformation marker described later.

従って、図3(b)に示すように、4つのポリゴン頂点P(j),P(j+1),P(j+2),P(j+3)がそれらに囲まれたボーンB(i)に関連付けられている場合、例えば、ボーンB(i)をNbi方向(図3(b)で右方向)に距離Dbiだけ移動させると、ポリゴン頂点P(j)は、Nbi方向に対して、例えば、左側に角度θpjbiだけ開いた方向に距離Dpjbi=Dbi×Kpjbiだけ移動する。他のポリゴン頂点P(j+1),P(j+2),P(j+3)についても同様で、例えば、ポリゴン頂点P(j+1)は、Nbi方向に対して左側に角度θp(j+1)biだけ開いた方向に距離Dp(j+1)bi=Dbi(i)×Kp(j+1)biだけ移動し、ポリゴン頂点P(j+2)は、Nbi方向に対して右側に角度θp(j+2)biだけ開いた方向に距離Dp(j+2)bi=Dbi×Kp(j+2)biだけ移動し、ポリゴン頂点P(j+3)は、Nbi方向に対して右側に角度θp(j+3)biだけ開いた方向に距離Dp(j+3)bi=Dbi×Kp(j+3)biだけ移動する。図3(b)において、P(j)’、P(j+1)’、P(j+2)’、P(j+3)’はポリゴン頂点P(j)、P(j+1)、P(j+2)、P(j+3)の移動した位置である。 Therefore, as shown in FIG. 3B, four polygon vertices P (j), P (j + 1), P (j + 2), and P (j + 3) are surrounded by bone B ( i), for example, if the bone B (i) is moved in the N bi direction (right direction in FIG. 3B) by the distance D bi , the polygon vertex P (j) becomes the N bi direction. On the other hand, for example, the distance D pjbi = D bi × K pjbi is moved in the direction opened by the angle θ pjbi on the left side. The same applies to the other polygon vertices P (j + 1), P (j + 2), and P (j + 3). For example, the polygon vertex P (j + 1) has an angle to the left with respect to the N bi direction. A distance D p (j + 1) bi = D bi (i) × K p (j + 1) bi is moved in the direction opened by θ p (j + 1) bi , and the polygon vertex P (j + 2) is , Move to the right side with respect to the N bi direction by an angle θ p (j + 2) bi and move by a distance D p (j + 2) bi = D bi × K p (j + 2) bi P (j + 3) is a distance D p (j + 3) bi = D bi × K p (j + 3) in a direction opened by an angle θ p (j + 3) bi on the right side with respect to the N bi direction. Move by bi . In FIG. 3B, P (j) ′, P (j + 1) ′, P (j + 2) ′, and P (j + 3) ′ are polygon vertices P (j) and P (j + 1). , P (j + 2), P (j + 3) are moved positions.

なお、ボーンB(i)の移動に伴う4つのポリゴン頂点P(j),P(j+1),P(j+2),P(j+3)の移動方向θpjbi,θp(j+1)bi,θp(j+2)bi,θp(j+3)biと移動倍率Kpjbi,Kp(j+1)bi,Kp(j+2)bi,Kp(j+3)biは、ボーンB(i)が含まれる部位全体の形状の変化が不自然とならないように、標準顔画像データを作成するプログラマーによって予め設定されている。また、ポリゴン頂点P(j),P(j+1),P(j+2),P(j+3)の移動位置の演算ではX,Y,Zの各座標軸の成分に分けて演算が行われる。従って、ポリゴン頂点P(j)の移動前の位置座標を(Xpj,Ypj,Zpj)、移動後の位置座標を(Xpj’,Ypj’,Zpj’)とすると、Dpjbi=Dbi×Kpjbi=√{(Xpj’−Xpj2+(Ypj’−Ypj2+(Zpj’−Zpj2}となる。他のポリゴン頂点P(j+1),P(j+2),P(j+3)についても同様である。 The moving directions θ pjbi and θ p (j of the four polygon vertices P (j), P (j + 1), P (j + 2), and P (j + 3) accompanying the movement of the bone B (i). +1) bi, θ p (j + 2) bi, θ p (j + 3) bi and the mobile magnification K pjbi, K p (j + 1) bi, K p (j + 2) bi, K p (j +3) bi is set in advance by a programmer who creates standard face image data so as not to unnaturally change the shape of the entire region including the bone B (i). Further, in the calculation of the movement positions of the polygon vertices P (j), P (j + 1), P (j + 2), and P (j + 3), the calculation is performed separately for the X, Y, and Z coordinate axis components. Done. Accordingly, assuming that the position coordinates of the polygon vertex P (j) before the movement are (X pj , Y pj , Z pj ) and the position coordinates after the movement are (X pj ′, Y pj ′, Z pj ′), D pjbi = D bi × K pjbi = √ {(X pj '-X pj ) 2 + (Y pj ' -Y pj ) 2 + (Z pj '-Z pj ) 2 }. The same applies to the other polygon vertices P (j + 1), P (j + 2), and P (j + 3).

各ボーンB(i)は、上記の座標データ(Xbi,Ybi,Zbi)とともに、関連付けられたポリゴン頂点P(j)のポリゴン番号j及びそのポリゴン頂点P(j)の連動用のパラメータ(θpjbi,Kpjbi)のデータを有している。従って、外部記憶装置5やRAM4のボーンBのデータ記憶領域には、各ボーンB(i)の位置座標(Xbi,Ybi,Zbi),(Xbi’,Ybi’,Zbi’)と、関連付けられたポリゴン頂点P(j)のポリゴン番号j及びそのポリゴン頂点P(j)の連動用のパラメータ(θpjbi,Kpjbi)のデータが格納されている。 Each bone B (i) includes the coordinate data (X bi , Y bi , Z bi ), the polygon number j of the associated polygon vertex P (j), and the parameters for linking the polygon vertex P (j). (Θ pjbi , K pjbi ) data. Accordingly, in the data storage area of the bone B of the external storage device 5 or the RAM 4, the position coordinates (X bi , Y bi , Z bi ), (X bi ′, Y bi ′, Z bi ′) of each bone B (i) are stored. ) And the polygon number j of the associated polygon vertex P (j) and the parameters (θ pjbi , K pjbi ) for linking the polygon vertex P (j) are stored.

上述した顔画像内に多数のボーンBを設定した顔画像のデータ構造は、従来のボーン編集による顔画像編集方法の基本となるデータ構造と同じである。従来は各ボーンBが複数個のポリゴン頂点Pを纏めて移動させる操作点として設定されていたが、本発明に係る顔画像編集では、ボーンBの上位に複数種類のマーカを設け、各マーカを1又は2以上のボーンBを移動させる操作点として機能させる構成としている。   The data structure of the face image in which a number of bones B are set in the face image described above is the same as the basic data structure of the face image editing method by conventional bone editing. Conventionally, each bone B is set as an operation point for moving a plurality of polygon vertices P together. However, in face image editing according to the present invention, a plurality of types of markers are provided above the bone B, and It is configured to function as an operating point for moving one or more bones B.

従って、本発明に係る顔画像編集では、作業者が入力装置6からマーカ(本発明に係る第1,第2の操作点に相当)に対してボーンBの移動に関する所定の操作情報を入力すると、当該操作情報に基づいてマーカに関連付けられた1又は2以上のボーンB(本発明に係る「制御点」に相当)を自動的に移動させるとともに、各ボーンBに関連付けられた複数のポリゴン頂点P(本発明に係る「多角形の頂点」に相当)の位置を自動的に制御する構成を基本構成としている。   Therefore, in the face image editing according to the present invention, when the operator inputs predetermined operation information regarding the movement of the bone B to the marker (corresponding to the first and second operation points according to the present invention) from the input device 6. And automatically moving one or more bones B (corresponding to “control points” according to the present invention) associated with the marker based on the operation information, and a plurality of polygon vertices associated with each bone B The basic configuration is a configuration that automatically controls the position of P (corresponding to “polygonal vertex” according to the present invention).

なお、マーカは隣接する部位に設けられた他のマーカに関連付けられ、他のマーカが移動すると、その移動に連動して移動するものもある。これは、例えば、目に設けられたマーカが移動することによって目の形状が変化する場合、その目の上にある眉毛の形状も目の形状変化に応じて変化させなければ、目と眉毛の形状がアンバランスになり、眉毛のマーカを単独で移動して眉毛の形状を目の形状変化に合わせることは容易でないから、眉毛に設けられるマーカを目に設けられるマーカに関連付け、目のマーカが移動するのに応じて眉毛のマーカを連動して移動させるものである。   The marker is associated with another marker provided in an adjacent part, and when the other marker moves, there is a marker that moves in conjunction with the movement. This is because, for example, when the shape of an eye changes due to the movement of a marker provided on the eye, the shape of the eyebrow over the eye does not change according to the change in the shape of the eye. Since the shape becomes unbalanced and it is not easy to move the eyebrow marker alone to match the shape of the eyebrow with the eye shape change, the eye marker is associated with the marker provided on the eye, The eyebrow marker is moved in conjunction with the movement.

同様の事情は、例えば、口の下唇に設けられるマーカと顎に設けられるマーカや、口の上唇に設けられるマーカと鼻に設けられるマーカなどについても言える。従って、本発明に係る顔画像編集では、隣接する部位で一方の部位の形状が変化すると、それに伴い他の部位の形状も連動して変化するような複数の部位については、各部位の部位変形用のマーカ同士を互いに連携させ、一方の部位の部位変形用のマーカの移動に連動して他方の部位の部位変形用のマーカを移動させる構成も有している。   The same situation applies to, for example, a marker provided on the lower lip of the mouth and a marker provided on the chin, a marker provided on the upper lip of the mouth and a marker provided on the nose, and the like. Therefore, in the face image editing according to the present invention, when the shape of one part changes in an adjacent part, the shape of the other part also changes in conjunction with the change, and the part of each part is deformed. There is also a configuration in which the markers for movement are linked to each other and the marker for deformation of the part of the other part is moved in conjunction with the movement of the marker for deformation of the part of one part.

本実施形態では、部位毎に顔画像編集用の4種類のマーカが設定されている。以下の説明では、4種類のマーカの符号を「H」,「M」,「E」,「R」とし、例えば、マーカHについて、マーカ番号iのマーカHを「H(i)」と表記する。マーカM,E,Rについても同様で、マーカ番号iのマーカM,E,Rを「M(i)」,「E(i)」,「R(i)」と表記する。4種類のマーカH,M,E,Rは、その種類が識別できるように、形や大きさの異なるマークで表示される。例えば、マーカHは円形、マーカMはマーカHとは異なる大きさと色の円形、マーカEは四角形、マーカRは三角形などである。   In this embodiment, four types of markers for face image editing are set for each part. In the following description, the signs of the four types of markers are “H”, “M”, “E”, and “R”. For example, for marker H, marker H with marker number i is represented as “H (i)”. To do. The same applies to the markers M, E, and R, and the markers M, E, and R of the marker number i are expressed as “M (i)”, “E (i)”, and “R (i)”. The four types of markers H, M, E, and R are displayed with marks having different shapes and sizes so that the types can be identified. For example, the marker H is a circle, the marker M is a circle of a different size and color from the marker H, the marker E is a quadrangle, the marker R is a triangle, and the like.

4種類のマーカH,M,E,Rのうち、マーカHは、部位の形状を部分的に変形させるために部位内の1又は2以上のボーンBの一部を任意の方向に移動させる編集操作をするためのマーカ(本発明に係る「第1の操作点」に相当。以下、「部位変形用マーカ」という。)である。部位変形用マーカHは、当該部位変形用マーカHに関連付けられた1又は2以上のボーンBを当該部位変形用マーカHの移動に連動して移動させることにより部位の一部の形状を変化させる機能を果す。部位変形用マーカH(i)にもXYZ座標系の位置座標(Xhi,Yhi,Zhi)が設定されている。なお、各座標の添え字の「h」は部位変形用マーカHを示し、「i」は部位変形用マーカHのマーカ番号を示している。 Among the four types of markers H, M, E, and R, the marker H is an edit that moves a part of one or two or more bones B in an arbitrary direction in order to partially deform the shape of the part. This is a marker for operation (corresponding to a “first operation point” according to the present invention, hereinafter referred to as “part deformation marker”). The part deformation marker H changes the shape of a part of the part by moving one or more bones B associated with the part deformation marker H in conjunction with the movement of the part deformation marker H. Perform functions. Position coordinates (X hi , Y hi , Z hi ) of the XYZ coordinate system are also set for the part deformation marker H (i). Note that the suffix “h” of each coordinate indicates the part deformation marker H, and “i” indicates the marker number of the part deformation marker H.

図4は、目と眉毛の部位に設けられた部位変形用マーカHの一例を示し、(a)は目の部位変形用マーカHを移動させる前の目と眉毛の状態を示す図、(b)は同部位変形用マーカHを移動させた後の目と眉毛の状態を示す図である。なお、図面の煩雑さを避けるために、図4ではポリゴンは省略し、ボーンBと部位変形用マーカHのみを描いている。   FIG. 4 shows an example of a part deformation marker H provided at the eye and eyebrows, and FIG. 4A is a diagram showing the state of the eye and eyebrows before the eye part deformation marker H is moved. (A) is a figure which shows the state of the eye and eyebrows after moving the same part deformation | transformation marker H. FIG. In order to avoid complexity of the drawing, the polygon is omitted in FIG. 4 and only the bone B and the part deformation marker H are drawn.

図4の例では、目には目頭と、目尻と、上瞼の2箇所と、下瞼の2箇所の計6箇所に円形の部位変形用マーカH(1),H(2),H(3),H(4),H(5),H(6)が設けられている。部位変形用マーカH(2),H(3)は、上瞼の部位変形用マーカH(1)と部位変形用マーカH(4)の間をほぼ3等分する位置に設けられ、部位変形用マーカH(5),H(6)は、下瞼の部位変形用マーカH(1)と部位変形用マーカH(4)の間をほぼ3等分する位置に設けられている。6個の部位変形用マーカH(i)(i=1,2,…,6)は、それぞれ図3に示した6個のボーンB(i)(i=1,2,…,6)の位置と同じ位置に設けられている。   In the example of FIG. 4, the circular part deforming markers H (1), H (2), H ( 3), H (4), H (5), and H (6) are provided. The part deforming markers H (2) and H (3) are provided at positions that divide the upper deformed part deforming marker H (1) and the part deforming marker H (4) into approximately three equal parts. The markers H (5) and H (6) are provided at positions that divide the lower eyelid part deformation marker H (1) and the part deformation marker H (4) into approximately three equal parts. The six part deforming markers H (i) (i = 1, 2,..., 6) are respectively the six bones B (i) (i = 1, 2,..., 6) shown in FIG. It is provided at the same position as the position.

また、各ボーンB(i)(i=1,2,…,6)は同じ位置に設けられた部位変形用マーカH(i)だけに関連付けられており、各ボーンB(i)には部位変形用マーカH(i)の移動に応じて同じ位置に移動するように連動用のパラメータが設定されている。すなわち、ボーン番号jのボーンB(j)に設定された部位変形用マーカH(i)に対する移動方向をθbjhi、移動倍率をKbjhiとすると、ボーンB(i)には連動用のパラメータとして移動方向θbihi=0°と倍率Kbihi=1.0が設定されている。なお、「θbjhi」、「Kbjhi」の添え字「b」、「i」、「h」、「i」はそれぞれ「ボーン」、「ボーン番号」、「部位変形用マーカ」、「マーカ番号」を示している。 Further, each bone B (i) (i = 1, 2,..., 6) is associated only with the part deformation marker H (i) provided at the same position, and each bone B (i) has a part. The interlocking parameters are set so as to move to the same position in accordance with the movement of the deformation marker H (i). That is, assuming that the movement direction with respect to the part deformation marker H (i) set to the bone B (j) of the bone number j is θ bjhi and the movement magnification is K bjhi , the bone B (i) has parameters for interlocking. The moving direction θ bihi = 0 ° and the magnification K bihi = 1.0 are set. The subscripts “b”, “i”, “h”, and “i” of “θ bjhi ” and “K bjhi ” are “bone”, “bone number”, “part deformation marker”, and “marker number”, respectively. Is shown.

眉毛には2個の部位変形用マーカH(7),H(8)が設けられている。眉毛には眉頭の部分にボーンH(7)が設けられ、目の部位変形用マーカH(3)に対して略上方の位置にボーンH(8)が設けられているが、部位変形用マーカH(7)はボーンB(7)と同じ位置に設けられ、部位変形用マーカH(8)はボーンB(8)と同じ位置に設けられている。また、ボーンB(7)は部位変形用マーカH(7)にだけ関連付けられ、ボーンB(8)は部位変形用マーカH(8)にだけ関連付けられている。従って、ボーンB(7),B(8)には連動用のパラメータとして「0°」の移動方向θb7h7,θb8h8と「1.0」の移動倍率Kb7h7,Kb8h8が設定されている。 Two part deformation markers H (7) and H (8) are provided on the eyebrows. The eyebrows are provided with a bone H (7) at the portion of the eyebrow head and a bone H (8) at a position substantially above the eye part deformation marker H (3). H (7) is provided at the same position as bone B (7), and the part deformation marker H (8) is provided at the same position as bone B (8). The bone B (7) is associated only with the part deformation marker H (7), and the bone B (8) is associated only with the part deformation marker H (8). Therefore, the movement directions θ b7h7 and θ b8h8 of “0 °” and the movement magnifications K b7h7 and K b8h8 of “1.0” are set as parameters for interlocking in the bones B (7) and B (8). .

外部記憶装置5やRAM4のボーンB(i)(i=1,2,…8)が関連付けられた部位変形用マーカH(i)(i=1,2,…8)のデータ記憶領域には、各部位変形用マーカH(i)の移動前と移動後の位置座標(Xhi,Yhi,Zhi),(Xhi’,Yhi’,Zhi’)と、関連付けられたボーンB(i)のボーン番号i及びそのボーンB(i)の連動用のパラメータ(θbihi,Kbihi)のデータが格納されている。 In the data storage area of the part deformation marker H (i) (i = 1, 2,... 8) associated with the bone B (i) (i = 1, 2,... 8) of the external storage device 5 or RAM 4. , Position coordinates (X hi , Y hi , Z hi ), (X hi ', Y hi ', Z hi ') before and after the movement of each part deformation marker H (i) and the associated bone B The data of the bone number i of (i) and the parameters (θ bihi , K bihi ) for linking the bone B (i) are stored.

なお、ボーンB(j)に部位変形用マーカH(i)に対する連動用のパラメータとして設定される移動方向θbjhiと移動倍率Kbjhiの内容は、それぞれ図3に示した移動方向θpjbiと倍率Kpjbiと同じであるので、ここでは詳細な説明は省略する。 The contents of the moving direction theta Bjhi the mobile magnification K Bjhi set in bone B (j) as a parameter for interlocking for site variant marker H (i) is the moving direction theta Pjbi shown in FIGS 3 and magnification Since it is the same as K pjbi , detailed description is omitted here.

図4に示す目及び眉毛の例は、部位変形用マーカH(i)(i=1,2,…8)を移動させると、ボーンB(i)だけが部位変形用マーカH(i)と共に移動するので、部位変形用マーカH(i)を移動させる操作は実質的に従来のボーンB(i)を直接的に移動させる操作と変わらないが、例えば、目に設ける部位変形用マーカHの数を減らし、一部の部位変形用マーカHには複数のボーンBを関連付け、当該部位変形用マーカHに移動に応じて複数のボーンBを同時に移動させるようにしてもよい。   In the example of the eyes and eyebrows shown in FIG. 4, when the part deformation marker H (i) (i = 1, 2,..., 8) is moved, only the bone B (i) is combined with the part deformation marker H (i). Since it moves, the operation for moving the part deformation marker H (i) is substantially the same as the operation for directly moving the conventional bone B (i). It is also possible to reduce the number, associate a plurality of bones B with some of the part deformation markers H, and simultaneously move the plurality of bones B according to the movement of the part deformation markers H.

例えば、上瞼の2個の部位変形用マーカH(2),H(3)を上瞼の略中央に設けた部位変形用マーカH(9)(図4(a)の点線で示すマーカH(9)参照)に置き換えるとともに、下瞼の2個の部位変形用マーカH(4),H(5)を下瞼の略中央に設けた部位変形用マーカH(10) (図4(a)の点線で示すマーカH(10)参照)に置き換え、ボーンB(2),B(3)を部位変形用マーカH(9)に関連付け、ボーンB(5),B(6)を部位変形用マーカH(10)に関連付けるようにしてもよい。この場合は、ボーンB(2),B(3)には連動する部位変形用マーカH(9)に対する連動用のパラメータとしてそれぞれ移動方向θb2h9、移動倍率Kb2h9と移動方向θb3h9、移動倍率Kb3h9が設定され、ボーンB(5),B(6)には連動する部位変形用マーカH(10)に対する連動用のパラメータとしてそれぞれ移動方向θb5h10、倍率Kb5h10と移動方向θb6h10、倍率Kb6h10が設定される。なお、移動方向θb2h9,θb3h9,θb5h10,θb6h10はいずれも「0°」でない適切な値が設定され、移動倍率Kb2h9,Kb3h9,Kb5h10,Kb6h10はいずれも「1.0」でない適切な値が設定される。 For example, a part deformation marker H (9) provided with two part deformation markers H (2), H (3) on the upper eyelid at the approximate center of the upper eyelid (marker H indicated by a dotted line in FIG. 4A) (Refer to (9)) and two part deformation markers H (4), H (5) of the lower eyelid are provided at the approximate center of the lower eyelid H (10) (FIG. 4 (a )), Replace bones B (2) and B (3) with the part deformation marker H (9), and convert bones B (5) and B (6) to part deformation. It may be related to the marker H (10) for use. In this case, the bones B (2) and B (3) have the movement direction θ b2h9 , the movement magnification K b2h9 , the movement direction θ b3h9 , and the movement magnification, respectively, as parameters for linking the associated part deformation marker H (9). K b3h9 is set, and the bones B (5) and B (6) have the movement direction θ b5h10 , the magnification K b5h10 , the movement direction θ b6h10 , and the magnification, respectively, as interlocking parameters for the associated part deformation marker H (10). K b6h10 is set. The moving directions θ b2h9 , θ b3h9 , θ b5h10 , θ b6h10 are all set to appropriate values other than “0 °”, and the moving magnifications K b2h9 , K b3h9 , K b5h10 , K b6h10 are all “1.0”. An appropriate value that is not "" is set.

そして、この場合は、ボーンB(1)とボーンB(4)はそれぞれ部位変形用マーカH(1)と部位変形用マーカH(4)にだけ関連付けられるので、部位変形用マーカH(1)又は部位変形用マーカH(4)を移動させると、目頭のボーンB(1)又は目尻のボーンB(4)だけが移動するが、部位変形用マーカH(9)を移動させると、上瞼に設けられたボーンB(2)及びボーンB(3)が連動して移動し、部位変形用マーカH(10)を移動させると、下瞼に設けられたボーンB(5)及びボーンB(6)が連動して移動することになる。   In this case, since bone B (1) and bone B (4) are associated only with the part deformation marker H (1) and the part deformation marker H (4), respectively, the part deformation marker H (1). Or, when the part deformation marker H (4) is moved, only the bone B (1) of the eye or the bone B (4) of the corner of the eye moves, but if the part deformation marker H (9) is moved, the upper eyelid When the bone B (2) and bone B (3) provided in FIG. 2 move in conjunction with each other and the part deformation marker H (10) is moved, the bone B (5) and bone B ( 6) will move in conjunction.

図4に戻り、部位変形用マーカH(1)〜H(6)によって目の形状を変形する編集では、目の上の眉毛も目の形状変化に伴って形状が変化しなければ、変形後の顔が不自然になる。部位変形用マーカH(1)〜H(6)による目の編集と部位変形用マーカH(7),H(8)による眉毛の編集を独立して行わせると、目と眉毛を不自然さのないように変形することは容易でないので、本実施形態では、例えば、眉毛に設定される2個の部位変形用マーカH(7),H(8)をそれぞれ目の部位変形用マーカH(2),H(3)に関連付け、目の部位変形用マーカH(2),H(3)が移動すると、その移動に連動して眉毛の部位変形用マーカH(7),H(8)を移動させるようにしている。   Returning to FIG. 4, when editing the shape of the eye with the part deformation markers H (1) to H (6), if the shape of the eyebrows on the eye does not change as the eye changes, The face becomes unnatural. When editing the eye with the part deformation markers H (1) to H (6) and editing the eyebrows with the part deformation markers H (7) and H (8) independently, the eyes and the eyebrows are unnatural. Therefore, in this embodiment, for example, two part deformation markers H (7) and H (8) set on the eyebrows are respectively replaced with the eye part deformation markers H ( 2) When the eye part deformation markers H (2) and H (3) move in association with H (3), the eyebrow part deformation markers H (7) and H (8) are linked to the movement. To move.

従って、部位変形用マーカH(7)には部位変形用マーカH(2)に対する連動用のパラメータとして移動方向θh7h2と移動倍率Kh7h2が設定され、部位変形用マーカH(8)には部位変形用マーカH(3)に対する連動用のパラメータとして移動方向θh8h3と移動倍率Kh8h3とが設定されている。なお、「θh7h2」、「Kh7h2」の添え字「h」、「7」、「h」、「2」はそれぞれ「眉毛に設けられた部位変形用マーカ」、「眉毛に設けられた部位変形用マーカのマーカ番号」、「目に設けられた部位変形用マーカ」、「目に設けられた部位変形用マーカのマーカ番号」を示している。「θh8h3」、「Kh8h3」の添え字「h」、「8」、「h」、「3」も「θh7h2」、「Kh7h2」の添え字「h」、「7」、「h」、「2」と同様の意味を有している。 Accordingly, the movement direction θ h7h2 and the movement magnification K h7h2 are set in the part deformation marker H (7) as parameters for interlocking with the part deformation marker H (2), and the part deformation marker H (8) has a part. The movement direction θ h8h3 and the movement magnification K h8h3 are set as parameters for interlocking with the deformation marker H (3). The subscripts “h”, “7”, “h”, and “2” of “θ h7h2 ” and “K h7h2 ” are “part deforming markers provided on the eyebrows” and “parts provided on the eyebrows, respectively. “Marker number of deformation marker”, “Partial deformation marker provided in eye”, and “Marker number of partial deformation marker provided in eye” are shown. h8h3", "K h8h3" subscript "h", "8", "h", "3" is also h7h2", subscript of "K h7h2", "h", "7", "h ”And“ 2 ”.

外部記憶装置5やRAM4の部位変形用マーカH(2),H(3)のデータ記憶領域には、各部位変形用マーカH(2),H(3)の移動前の位置座標(Xh2,Yh2,Zh2),(Xh3,Yh3,Zh3)と、移動後の位置座標(Xh2’,Yh2’,Zh2’),(Xh3’,Yh3’,Zh3’)と、それぞれに関連付けられた部位変形用マーカH(7),H(8)のマーカ番号7,8及び部位変形用マーカH(7),H(8)の連動用のパラメータ(θh7h2,Kh7h2),(θh8h3,Kh8h3)が格納されている。 In the data storage area of the part deformation markers H (2) and H (3) of the external storage device 5 and the RAM 4, the position coordinates (X h2 ) before the movement of each part deformation marker H (2) and H (3) are stored. , Y h2 , Z h2 ), (X h3 , Y h3 , Z h3 ) and position coordinates after movement (X h2 ′, Y h2 ′, Z h2 ′), (X h3 ′, Y h3 ′, Z h3 '), And the associated part modification markers H (7) and H (8), the marker numbers 7 and 8 and the parameters for interlocking the part modification markers H (7) and H (8) (θ h7h2 , K h7h2 ), (θ h8h3 , K h8h3 ) are stored.

部位変形用マーカH(7)に部位変形用マーカH(2)に対する連動用のパラメータとして設定される移動方向θh7h2と移動倍率Kh7h2や部位変形用マーカH(8)に部位変形用マーカH(2)に対する連動用のパラメータとして設定される移動方向θh8h3と移動倍率Kh8h3の内容も、それぞれ図3に示した移動方向θpjbiと倍率Kpjbiと同じであるので、ここでは詳細な説明は省略する。 Moving direction theta H7h2 the mobile magnification K H7h2 or site modifications marker H (8) in a portion deformed marker H is set as a parameter for the interlocking for site variant marker H (7) in a portion deformed marker H (2) The contents of the movement direction θ h8h3 and the movement magnification K h8h3 set as parameters for linking to (2) are also the same as the movement direction θ pjbi and magnification K pjbi shown in FIG. Is omitted.

なお、部位変形用マーカH(7)を目の部位変形用マーカH(1),H(2)の両方に関連付け、部位変形用マーカH(8)を目の部位変形用マーカH(3),H(4)の両方に関連付けるようにしてもよい。   The part deformation marker H (7) is associated with both the eye part deformation markers H (1) and H (2), and the part deformation marker H (8) is associated with the eye part deformation marker H (3). , H (4) may be associated with each other.

図5は、顔画像に設けられている部位変形用マーカH、部位変形用マーカHに関連付けられたボーンB及びボーンBに関連付けられたポリゴン頂点Pの相互のデータ構造関係の一例を示す図である。同図は、図4に示す目と眉毛に設けられた部位変形用マーカH(1)〜H(8)のうち、部位変形用マーカH(3)と、その部位変形用マーカH(3)に関連付けられたボーンB(3)及び部位変形用マーカH(8)と、そのボーンB(3)及び部位変形用マーカH(8)にそれぞれ関連付けられたポリゴン頂点Pの相互のデータ構造関係を示している。   FIG. 5 is a diagram illustrating an example of a data structure relationship between a part deformation marker H provided in a face image, a bone B associated with the part deformation marker H, and a polygon vertex P associated with the bone B. is there. This figure shows the part deformation marker H (3) and the part deformation marker H (3) among the part deformation markers H (1) to H (8) provided on the eyes and eyebrows shown in FIG. The data structure relationship between the bone B (3) and the part deformation marker H (8) associated with the polygon vertex P associated with the bone B (3) and the part deformation marker H (8), respectively. Show.

図5に示すように、部位変形用マーカH(3)に関連付けられたボーンB(3)及び部位変形用マーカH(8)は、部位変形用マーカH(3)の下にツリー構造で配置され、ボーンB(3)に関連付けられた複数のポリゴン頂点P(t),P(t+1),…,P(t+n)(t,t+1,…t+nはポリゴン番号)はボーンB(3)の下にツリー構造で配置されている。また、部位変形用マーカH(8)にはボーンB(8)が関連付けられているので、部位変形用マーカH(3)の下にボーンB(8)がツリー構造で配置され、その下にボーンB(8)に関連付けられた複数のポリゴン頂点P(s),P(s+1),…,P(s+m)(s,s+1,…s+mはポリゴン番号)がツリー構造で配置されている。   As shown in FIG. 5, the bone B (3) and the part deformation marker H (8) associated with the part deformation marker H (3) are arranged in a tree structure below the part deformation marker H (3). A plurality of polygon vertices P (t), P (t + 1),..., P (t + n) (t, t + 1,... T + n are polygon numbers) associated with the bone B (3) are bone B ( It is arranged in a tree structure under 3). Also, since bone B (8) is associated with the part deformation marker H (8), the bone B (8) is arranged in a tree structure below the part deformation marker H (3) and below it. A plurality of polygon vertices P (s), P (s + 1),..., P (s + m) (s, s + 1,... S + m are polygon numbers) associated with the bone B (8) are arranged in a tree structure. ing.

部位変形用マーカH(3),H(8)、ボーンB(3),B(8)、ポリゴン頂点P(s),P(s+1),…,P(s+m)及びポリゴン頂点P(t),P(t+1),…,P(t+n)はそれぞれ現在位置を示す位置座標を有している。作業者が入力装置6を操作して表示装置7に表示された部位変形用マーカH(3)の位置を移動させると、部位変形用マーカH(3)の位置座標が変化し、その変化に連動して部位変形用マーカH(8)とボーンB(3),B(8)の位置座標が変化する。   Part deformation markers H (3), H (8), bones B (3), B (8), polygon vertices P (s), P (s + 1), ..., P (s + m) and polygon vertices P (t), P (t + 1),..., P (t + n) each have position coordinates indicating the current position. When the operator operates the input device 6 to move the position of the part deformation marker H (3) displayed on the display device 7, the position coordinate of the part deformation marker H (3) changes, and the change is caused. In conjunction with this, the position coordinates of the part deformation marker H (8) and the bones B (3), B (8) change.

例えば、部位変形用マーカH(3)の現在の位置座標を(Xh3,Yh3,Zh3)とし、部位変形用マーカH(8)の現在の位置座標を(Xh8,Yh8,Zh8)とすると、ボーンB(3)は部位変形用マーカH(3)と同じ位置にあり、ボーンB(8)は部位変形用マーカH(8)と同じ位置にあるから、ボーンB(3),B(8)の現在の座標データはそれぞれ(Xh3,Yh3,Zh3)、(Xh8,Yh8,Zh8)となっている。 For example, the current position coordinate of the part deformation marker H (3) is (X h3 , Y h3 , Z h3 ), and the current position coordinate of the part deformation marker H (8) is (X h8 , Y h8 , Z h8 ), bone B (3) is at the same position as the part deformation marker H (3), and bone B (8) is at the same position as the part deformation marker H (8). ) And B (8) are (X h3 , Y h3 , Z h3 ) and (X h8 , Y h8 , Z h8 ), respectively.

作業者が入力装置6を操作して部位変形用マーカH(3)を現在位置からY軸の下方向に移動させると、CPU2は入力装置6から入力される操作情報(例えば、入力装置6がマウスの場合、マウスの移動量の情報)に基づいて表示画面7a上における移動量Dh3を算出し、部位変形用マーカH(3),H(8)の位置座標をそれぞれ(Xh3,Yh3−Dh3,Zh3)と(Xh8,Yh8−Dh3,Zh8)に変更する。また、CPU2はボーンB(3),B(8)の位置座標をそれぞれ(Xb3,Yb3−Dh3,Zb3)と(Xb8,Yb8−Dh3,Zb8)に変更する。これにより、部位変形用マーカH(3),H(8)及びボーンB(3),B(8)の表示装置7における表示位置が変化する。なお、移動量Dh3の添え字「h」は、部位変形用マーカHを示し、添え字「3」は、部位変形用マーカHのマーカ番号を示している。 When the operator operates the input device 6 to move the part deformation marker H (3) downward from the current position on the Y axis, the CPU 2 operates information (for example, the input device 6 is input from the input device 6). In the case of a mouse, the amount of movement D h3 on the display screen 7a is calculated based on the information on the amount of movement of the mouse, and the position coordinates of the part deformation markers H (3) and H (8) are (X h3 , Y h3− D h3 , Z h3 ) and (X h8 , Y h8 −D h3 , Z h8 ). Further, CPU 2 is bone B (3), to change the position coordinates of B (8), respectively (X b3, Y b3 -D h3 , Z b3) and (X b8, Y b8 -D h3 , Z b8). As a result, the display positions of the part deformation markers H (3) and H (8) and the bones B (3) and B (8) on the display device 7 are changed. The subscript “h” of the movement amount D h3 indicates the part deformation marker H, and the subscript “3” indicates the marker number of the part deformation marker H.

更に、CPU2は、ボーンB(3)に関連付けられている複数のポリゴン頂点P(t+k)(k=0,1,…,n)に対して各ポリゴン頂点P(t+k)の連動用のパラメータとボーンB(3)の移動方向Nb3及び移動量Db3を用いて各ポリゴン頂点P(t+k)の移動位置を算出し、その算出結果を用いて位置座標を変更する。同様に、ボーンB(8)に関連付けられている複数のポリゴン頂点P(s+k)(k=0,1,…,m)に対して各ポリゴン頂点P(s+k)の連動用のパラメータとボーンB(8)の移動方向Nb8及び移動量Db8を用いて各ポリゴン頂点P(s+k)の移動位置を算出し、その算出結果を用いて位置座標を変更する。これにより、ポリゴン頂点P(t+k)及びポリゴン頂点P(s+k)の表示装置7における表示位置が変化し、目と眉毛の形状が変化する。 Further, the CPU 2 links each polygon vertex P (t + k) with respect to a plurality of polygon vertices P (t + k) (k = 0, 1,..., N) associated with the bone B (3). The movement position of each polygon vertex P (t + k) is calculated using the parameters for use, the movement direction N b3 and the movement amount D b3 of the bone B (3), and the position coordinates are changed using the calculation result. Similarly, for interlocking each polygon vertex P (s + k) with respect to a plurality of polygon vertices P (s + k) (k = 0, 1,..., M) associated with the bone B (8). The movement position of each polygon vertex P (s + k) is calculated using the parameter, the movement direction N b8 and the movement amount D b8 of the bone B (8), and the position coordinates are changed using the calculation result. As a result, the display positions of the polygon vertex P (t + k) and the polygon vertex P (s + k) on the display device 7 change, and the shapes of the eyes and eyebrows change.

図4に戻り、部位変形用マーカHを用いた目の編集操作について説明する。   Returning to FIG. 4, the eye editing operation using the part deformation marker H will be described.

図4には記載されていないが、表示装置7の表示画面7aにはカーソルが表示されており、作業者は入力装置6を操作してカーソルを所望の部位変形用マーカH(i)の位置に移動させ、所定の操作を行うと、カーソルによって部位変形用マーカH(i)を所望の位置に移動させることができる。例えば、入力装置6がマウスの場合、作業者はカーソルを所望の部位変形用マーカH(i)の位置に移動させた後、左クリックを行い、そのクリック状態を保持してマウスを所望の方向に移動させることによりカーソルとともに部位変形用マーカH(i)を所望の方向に移動させることができる。そして、作業者は所望の位置で左クリックの操作を解除すると、その位置に部位変形用マーカH(i)を固定することができる。   Although not shown in FIG. 4, a cursor is displayed on the display screen 7 a of the display device 7, and the operator operates the input device 6 to move the cursor to the position of the desired part deformation marker H (i). When the predetermined operation is performed, the part deformation marker H (i) can be moved to a desired position by the cursor. For example, when the input device 6 is a mouse, the operator moves the cursor to the position of the desired part deformation marker H (i), then performs a left click, maintains the clicked state, and moves the mouse in the desired direction. It is possible to move the part deformation marker H (i) together with the cursor in a desired direction. When the operator cancels the left click operation at a desired position, the part deformation marker H (i) can be fixed at that position.

なお、入力装置6によって部位変形用マーカH(i)を指定し、その部位変形用マーカH(i)の移動方向Nhiや移動量Dhiをキー操作によって入力させるようにしてもよい。 Alternatively, the part deformation marker H (i) may be designated by the input device 6 and the movement direction N hi and the movement amount D hi of the part deformation marker H (i) may be input by key operation.

図4(b)は、作業者が図4(a)の状態から目の部位変形用マーカH(3),H(4),H(5)をそれぞれY軸の下方向に移動量Dhずつ移動させた場合(部位変形用マーカH(3),H(4),H(5)の移動方向Nh3,Nh4,Nh5をY軸の下方向とし、移動量Dh3,Dh4,Dh5をDh3=Dh4=Dh5=Dhとした場合)の目と眉毛の形状の変化を示している。3個の部位変形用マーカH(3),H(4),H(5)の位置が下に移動するのに応じて3個のボーンB(3),B(4),B(5)の位置も下に移動するので、これにより各ボーンB(3),B(4),B(5)にそれぞれ関連付けられた複数のポリゴン頂点Pの位置が変化して目が目尻の部分が下側に垂れた形状に変化している。 FIG. 4B shows that the operator moves the eye part deformation markers H (3), H (4), and H (5) from the state of FIG. When moved (the movement directions N h3 , N h4 , N h5 of the part deformation markers H (3), H (4), H (5) are the downward directions of the Y axis, and the movement amounts D h3 , D h4 , ( Dh5 is Dh3 = Dh4 = Dh5 = Dh), and changes in the shape of the eyes and eyebrows are shown. 3 bones B (3), B (4), B (5) as the position of the 3 part deformation markers H (3), H (4), H (5) moves down Since the position of the polygon apex P associated with each of the bones B (3), B (4), and B (5) is changed, the position of the eye corner is lowered. It has changed to a shape that hangs to the side.

また、眉毛に設定された部位変形用マーカH(8)は、目に設定された部位変形用マーカH(3)に関連付けられているので、部位変形用マーカH(3)が下方向に移動すると、それに連動して眉毛に設定された部位変形用マーカH(8)も下方向に移動する。そして、部位変形用マーカH(8)が下方向に移動すると、部位変形用マーカH(8)に関連付けられたボーンB(8)も部位変形用マーカH(8)と同じ位置に移動し、これによりボーンB(8)に関連付けられた複数のポリゴン頂点Pの位置が変化して眉毛も目尻の部分が下側に垂れた形状に変化している。   Further, the part deformation marker H (8) set on the eyebrows is associated with the part deformation marker H (3) set on the eyes, so the part deformation marker H (3) moves downward. Then, the part deformation marker H (8) set on the eyebrows is moved downward in conjunction therewith. When the part deformation marker H (8) moves downward, the bone B (8) associated with the part deformation marker H (8) also moves to the same position as the part deformation marker H (8). As a result, the positions of the plurality of polygon vertices P associated with the bone B (8) are changed, and the eyebrows are also changed to a shape in which the corners of the eyes hang down.

図4(b)の例では、部位変形用マーカH(3)に関連付けられた部位変形用マーカH(8)の移動倍率Kh8h3を「0.5」に設定しているので、部位変形用マーカH(8)は部位変形用マーカH(3)の移動量Dhに対して移動量Dh×0.5だけ下方向に移動している。図4(b)の例では、部位変形用マーカH(3)に部位変形用マーカH(8)だけを連動させているので、目の形状が過度に三角形になり、不自然感を与える場合もあるが、部位変形用マーカH(3)に部位変形用マーカH(7)も連動させ、両部位変形用マーカH(7),H(8)の移動倍率Kh7h3,Kh8h3を調整すれば、不自然な形状変化を緩和することができる。 In the example of FIG. 4B, the movement magnification K h8h3 of the part deformation marker H (8) associated with the part deformation marker H (3) is set to “0.5”. The marker H (8) moves downward by a movement amount Dh × 0.5 with respect to the movement amount Dh of the part deformation marker H (3). In the example of FIG. 4B, since only the part deformation marker H (8) is linked to the part deformation marker H (3), the shape of the eyes becomes excessively triangular, giving an unnatural feeling. However, the part deformation marker H (7) is linked to the part deformation marker H (3), and the movement magnifications K h7h3 and K h8h3 of both the part deformation markers H (7) and H (8) are adjusted. Thus, an unnatural shape change can be alleviated.

上記のように、6個の部位変形用マーカH(i)(i=1,2,…6)のいずれかを移動させると、その部位変形用マーカH(i)に関連付けられている1又は2以上のボーンB(j)を当該部位変形用マーカH(i)の移動に連動して移動させることができるので、目の形状を容易に変形させることができる。   As described above, when any one of the six part deformation markers H (i) (i = 1, 2,..., 6) is moved, 1 or 1 associated with the part deformation marker H (i) Since two or more bones B (j) can be moved in conjunction with the movement of the part deformation marker H (i), the shape of the eye can be easily deformed.

また、眉毛に設定された部位変形用マーカH(7),H(8)をそれぞれ目の部位変形用マーカH(2),H(3)に関連付け、目の部位変形用マーカH(2),H(3)の移動に連動して眉毛の部位変形用マーカH(7),H(8)を移動させるようにしているので、目の位置と密接に関係する眉毛の位置をバランスよく移動させることができる。   In addition, the part deformation markers H (7) and H (8) set on the eyebrows are associated with the eye part deformation markers H (2) and H (3), respectively, and the eye part deformation markers H (2). , H (3) is moved in conjunction with the movement of the eyebrow part deformation marker H (7), H (8), so the eyebrow position closely related to the eye position is moved in a balanced manner. Can be made.

マーカMは、部位全体を移動させる編集操作をするためのマーカ(本発明に係る「第2の操作点」に相当。以下、「部位移動用マーカ」という。)である。部位移動用マーカMは、部位に設定された複数の部位変形用マーカHを一括して移動させることにより部位全体を移動させる機能を果す。各部位移動用マーカM(i)にもXYZ座標系の位置座標(Xmi,Ymi,Zmi)が設定されている。なお、各座標の添え字の「m」は部位移動用マーカMを示し、「i」は部位移動用マーカMのマーカ番号を示している。 The marker M is a marker for performing an editing operation for moving the entire part (corresponding to a “second operation point” according to the present invention, hereinafter referred to as “part movement marker”). The part movement marker M fulfills a function of moving the whole part by moving a plurality of part deformation markers H set in the part at once. Position coordinates (X mi , Y mi , Z mi ) in the XYZ coordinate system are also set for each part movement marker M (i). The subscript “m” of each coordinate indicates the part movement marker M, and “i” indicates the marker number of the part movement marker M.

部位移動用マーカMは、部位を代表する位置(通常は、部位の画像の中心位置)に1個だけ設けられ、当該部位に設けられる複数の部位変形用マーカHが部位移動用マーカMに関連付けられている。部位移動用マーカMの位置を移動させると、部位に設定された複数の部位変形用マーカHが連動して部位移動用マーカMの移動方向にそれぞれ移動し、これにより部位全体が移動する。   Only one part movement marker M is provided at a position representing the part (usually the center position of the part image), and a plurality of part deformation markers H provided in the part are associated with the part movement marker M. It has been. When the position of the part moving marker M is moved, the plurality of part deforming markers H set in the part are moved in the moving direction of the part moving marker M, thereby moving the whole part.

図6は、目の部位に設けられた部位移動用マーカMの一例を示し、(a)は目の部位移動用マーカMによって目全体を移動させる前の状態を示す図、(b)は同部位移動用マーカMによって目全体を鼻筋側に移動させた状態を示す図である。なお、同図もポリゴンは省略し、ボーンBと部位移動用マーカMのみを描いている。   FIG. 6 shows an example of the part movement marker M provided in the eye part. FIG. 6A shows a state before the entire eye is moved by the eye part movement marker M, and FIG. It is a figure which shows the state which moved the whole eye to the nose muscle side with the part movement marker M. FIG. In the same figure, polygons are omitted, and only the bone B and the part moving marker M are drawn.

図6の例では、目を全体的に移動させるので、目の瞳孔の位置に部位移動用マーカMが1つだけ設けられている。図6の例では、部位移動用マーカM(1)も部位変形用マーカH(1)〜H(6)と同様に円形のマークで表示されているが、部位移動用マーカM(1)は部位変形用マーカH(1)〜H(6)より大きく、色も異なっている。そして、6つの部位変形用マーカH(1)〜H(6)は部位移動用マーカM(1)に関連付けられている。   In the example of FIG. 6, since the eye is moved as a whole, only one part moving marker M is provided at the position of the pupil of the eye. In the example of FIG. 6, the part movement marker M (1) is also displayed as a circular mark in the same manner as the part deformation markers H (1) to H (6). It is larger than the part deformation markers H (1) to H (6) and has a different color. The six part deformation markers H (1) to H (6) are associated with the part movement marker M (1).

部位移動用マーカM(1)は目を全体的に移動させる機能を果すので、6つの部位変形用マーカH(i)(i=1,2,…6)に部位移動用マーカM(1)に対する連動用のパラメータとして設けられる移動方向θhim1(i=1,2,…6)には、図7に示すように、それぞれ「0°」若しくは「0°」に近い値が設定され、移動倍率Khim1(i=1,2,…6)にはそれぞれ「1.0」若しくは「1.0」に近い値が設定されている。すなわち、部位移動用マーカM(1)の移動方向θm1及び移動量Dm1で6つの部位変形用マーカH(1)〜H(6)がほぼ同じ方向にほぼ同じ量だけ移動するように、各部位変形用マーカH(1)〜H(6)の連動用のパラメータが設定されている。図7において、M(1)’、H(1)’〜H(6)’はそれぞれ部位移動用マーカM(1)と部位変形用マーカH(1)〜H(6)の移動した位置である。 Since the part moving marker M (1) functions to move the entire eye, the part moving marker M (1) is added to the six part deforming markers H (i) (i = 1, 2,... 6). As shown in FIG. 7, the movement direction θ him1 (i = 1, 2,... 6) provided as a parameter for interlocking with is set to a value close to “0 °” or “0 °”, respectively. A value close to “1.0” or “1.0” is set for each magnification K him1 (i = 1, 2,... 6). That is, the six part deformation markers H (1) to H (6) move in substantially the same direction by the same amount by the movement direction θ m1 and the movement amount D m1 of the part movement marker M (1). Parameters for interlocking the respective part deformation markers H (1) to H (6) are set. In FIG. 7, M (1) ′ and H (1) ′ to H (6) ′ are positions where the part movement marker M (1) and the part deformation markers H (1) to H (6) have moved. is there.

なお、「θm1」、「Dm1」の添え字「m」、「1」はそれぞれ「部位移動用マーカM」と「部位移動用マーカMのマーカ番号」を示している。また、「θhim1」、「Khim1」の添え字「h」、「i」、「m」、「1」はそれぞれ「部位変形用マーカH」、「部位変形用マーカHのマーカ番号」、「部位移動用マーカM」、「部位移動用マーカMのマーカ番号」を示している。 The subscripts “m” and “1” of “θ m1 ” and “D m1 ” indicate “part movement marker M” and “marker number of part movement marker M”, respectively. The subscripts “h”, “i”, “m”, and “1” of “θ him1 ” and “K him1 ” are “part modification marker H”, “part modification marker H marker number”, “Part movement marker M” and “marker number of part movement marker M” are shown.

外部記憶装置5やRAM4の部位移動用マーカM(1)のデータ記憶領域には、部位移動用マーカM(1)の移動前の位置座標(Xm1,Ym1,Zm1)と、移動後の位置座標(Xm1’,Ym1’,Zm1’)と、関連付けられた部位変形用マーカH(i)のマーカ番号iと部位変形用マーカH(i)の連動用のパラメータ(θhim1,Khim1)(i=1,2,…6)のデータが格納されている。 In the data storage area of the part movement marker M (1) in the external storage device 5 or the RAM 4, the position coordinates (X m1 , Y m1 , Z m1 ) before the movement of the part movement marker M (1) and after the movement are stored. Position coordinate (X m1 ′, Y m1 ′, Z m1 ′) and the associated parameter (θ him1 ) of the marker number i of the part modification marker H (i) and the part modification marker H (i) , K him1 ) (i = 1, 2,... 6) is stored.

部位移動用マーカM(1)と6つの部位変形用マーカH(1)〜H(6)のデータ構造の関係は、図5に示すデータ構造において、部位変形用マーカH(3)と部位変形マーカH(8)のツリー構造の関係と同じであるので、その説明は省略する。   The relationship between the data structure of the part movement marker M (1) and the six part deformation markers H (1) to H (6) is the same as the data structure shown in FIG. Since it is the same as the relationship of the tree structure of the marker H (8), its description is omitted.

図6(a)の状態で、作業者が入力操作6を操作して部位移動用マーカM(1)を右方向(X軸に沿って顔の鼻筋に近づける方向)に移動量Dm1だけ移動させると、6つの部位変形用マーカH(1)〜H(6)が連動してそれぞれ標準の位置(図6(a)の位置)からほぼ移動量Dm1だけほぼ右方向に移動する。6つの部位変形用マーカH(1)〜H(6)が移動することにより各部位変形用マーカH(1)〜H(6)にそれぞれ関連付けられたボーンB(1)〜B(6)が移動するとともに、各ボーンB(1)〜B(6)に関連付けられた複数のポリゴン頂点Pもそれぞれ連動して移動する。この結果、目は、図6(b)に示すように、全体的に鼻筋に近づくことになる。 In the state shown in FIG. 6A, the operator operates the input operation 6 to move the part movement marker M (1) rightward (in the direction approaching the nose of the face along the X axis) by the movement amount D m1. Then, the six part deforming markers H (1) to H (6) are moved in the right direction substantially by the movement amount D m1 from the standard position (the position of FIG. 6A ). As the six part deformation markers H (1) to H (6) move, the bones B (1) to B (6) associated with the respective part deformation markers H (1) to H (6) respectively. Along with the movement, the plurality of polygon vertices P associated with the bones B (1) to B (6) also move in conjunction with each other. As a result, as shown in FIG. 6B, the eyes approach the nose muscles as a whole.

なお、図6の例では、眉毛に設けられた部位変形用マーカH(7)と部位変形用マーカH(8)をそれぞれ目の部位変形用マーカH(2)と部位変形用マーカH(3)に連携させ、部位変形用マーカH(7)と部位変形用マーカH(8)の連動用のパラメータの移動方向θh7h2,θh8h3を「0°」、倍率Kh7h2,Kh8h3を「1.0」に設定しているので、部位変形用マーカH(2)と部位変形用マーカH(3)の右方向の移動に連動して眉毛の部位変形用マーカH(7)と部位変形用マーカH(8)も右方向に同じ移動量だけ移動している。 In the example of FIG. 6, the part deformation marker H (7) and the part deformation marker H (8) provided on the eyebrows are respectively replaced with the eye part deformation marker H (2) and the part deformation marker H (3 ), The movement directions θ h7h2 and θ h8h3 of the parameters for linking the part deformation marker H (7) and the part deformation marker H (8) are “0 °”, and the magnifications K h7h2 and K h8h3 are “1”. .0 ”, the eyebrow part deforming marker H (7) and the part deforming marker are linked to the rightward movement of the part deforming marker H (2) and the part deforming marker H (3). Marker H (8) has also moved to the right by the same amount of movement.

従って、作業者は、鼻筋の右側にある目に対して部位移動用マーカMを鼻筋側に移動させる操作を行うことにより、簡単に顔画像の両目を鼻筋に近づける(両目の距離を短くする)ことができる。なお、部位移動用マーカM(1)の標準の位置(図6(a)の位置)と移動後の位置(図6(b)の位置)の情報(位置座標の情報)は保存されるので、作業者は両位置の座標から部位移動用マーカM(1)の操作情報(移動方向θm1と移動量Dm1の情報)を確認することができる。 Therefore, the operator easily moves the eyes of the face image closer to the nose muscles by shortening the distance between the eyes by performing an operation of moving the region movement marker M toward the nose muscles with respect to the eyes on the right side of the nose muscles. be able to. Note that the information (position coordinate information) of the standard position of the part movement marker M (1) (position of FIG. 6 (a)) and the position after movement (position of FIG. 6 (b)) is saved. The operator can confirm the operation information (information on the moving direction θ m1 and the moving amount D m1 ) of the part moving marker M (1) from the coordinates of both positions.

マーカEは、部位全体を拡大又は縮小させる編集操作をするためのマーカ(本発明に係る「第2の操作点」に相当。以下、「部位拡縮用マーカ」という。)である。部位拡縮用マーカEは、部位に設定された複数の部位変形用マーカHを当該部位拡縮用マーカEに対して放射状に移動させることにより部位の形状を拡大又は縮小する機能を果す。各部位拡縮用マーカE(i)にもXYZ座標系の位置座標(Xei,Yei,Zei)が設定されている。なお、各座標の添え字「e」は部位拡縮用マーカEを示し、「i」は部位拡縮用マーカEのマーカ番号を示している。 The marker E is a marker for performing an editing operation for enlarging or reducing the entire region (corresponding to a “second operation point” according to the present invention; hereinafter referred to as a “region expansion / contraction marker”). The part expansion / contraction marker E fulfills the function of expanding or reducing the shape of the part by moving a plurality of part deformation markers H set in the part radially with respect to the part expansion / contraction marker E. Position coordinates (X ei , Y ei , Z ei ) of the XYZ coordinate system are also set for each part enlargement / reduction marker E (i). The subscript “e” of each coordinate indicates the part enlargement / reduction marker E, and “i” indicates the marker number of the part enlargement / reduction marker E.

部位拡縮用マーカEは、部位に設定された複数の部位変形用マーカHの内側に1個だけ設けられ、その複数の部位変形用マーカHが部位拡縮用マーカEに関連付けられている。部位拡縮用マーカEには標準画像における部位のサイズ(標準サイズ)に対して変化させる割合(拡縮倍率)が設定可能になされ、ディフォルトでは「1.0」が設定されている。本実施形態では、部位拡縮用マーカEに予め複数の拡縮倍率(例えば、0.3、0.5、0.7、1.0、1.3、1.5、1.7、2.0の8種類の拡縮倍率)を用意しておき、作業者が部位拡縮用マーカEにカーソルを合わせてクリック操作をすると、クリック操作毎に部位拡縮用マーカEに設定される拡縮倍率が循環的に変化し、部位拡縮用マーカEに設定される拡縮倍率を所望の値に変更することができるようにしている。作業者が部位拡縮マーカEを操作して拡縮倍率を変化させると、その拡縮倍率の変化に応じて各部位変形用マーカHの部位拡縮用マーカEからの距離が変化して表示装置7に表示される部位のサイズが拡大又は縮小される。   Only one part enlargement / reduction marker E is provided inside a plurality of part deformation markers H set for the part, and the plurality of part deformation markers H are associated with the part enlargement / reduction marker E. In the part enlargement / reduction marker E, a ratio (enlargement / reduction ratio) to be changed with respect to the part size (standard size) in the standard image can be set, and “1.0” is set by default. In the present embodiment, a plurality of enlargement / reduction ratios (for example, 0.3, 0.5, 0.7, 1.0, 1.3, 1.5, 1.7, 2.0) are applied to the part enlargement / reduction marker E in advance. If the operator places a cursor on the part enlargement / reduction marker E and performs a click operation, the enlargement / reduction ratio set for the part enlargement / reduction marker E is cyclically set for each click operation. Thus, the enlargement / reduction ratio set in the region enlargement / reduction marker E can be changed to a desired value. When the operator operates the part enlargement / reduction marker E to change the enlargement / reduction ratio, the distance from the part enlargement / reduction marker E of each part deformation marker H changes according to the change of the enlargement / reduction ratio and is displayed on the display device 7. The size of the portion to be processed is enlarged or reduced.

なお、部位拡縮マーカEに設定される拡縮倍率を変化させる操作としては、部位拡縮用マーカEに複数の拡縮倍率を用意せず、作業者が部位拡縮用マーカEにカーソルを合わせてクリック操作をすることにより当該部位拡縮用マーカEを指定し、数字キーにより所望の拡縮倍率を入力させるようにしてもよい。この方法では、部位拡縮用マーカEに任意の拡縮倍率を設定できる利点がある。   As an operation to change the enlargement / reduction ratio set for the part enlargement / reduction marker E, the operator does not prepare a plurality of enlargement / reduction ratios for the part enlargement / reduction marker E, and the operator moves the cursor to the part enlargement / reduction marker E and performs a click operation. By doing so, the part enlargement / reduction marker E may be designated, and a desired enlargement / reduction ratio may be input by a numeric key. This method has an advantage that an arbitrary enlargement / reduction ratio can be set for the part enlargement / reduction marker E.

また、任意の拡縮倍率の入力インターフェースとして、作業者がカーソルによって部位拡縮用マーカEを指定したとき、例えば、図8に示すように、XYZ座標の各軸方向に延びる3本の拡縮倍率の大きさを示す倍率線Qx,Qy,Qzを表示させ、いずれかの倍率線Qq(q=x,y,z)をカーソルで指定し、その倍率線Qqの長さを伸縮させることができる入力インターフェースを設けることができる。この入力インターフェースでは、各倍率線Qx,Qy,Qzに表示されている数値は拡縮倍率を示しており、ディフォルト値は「1.0」である。作業者がカーソルでいずれかの倍率線Qq(q=x,y,z)を指定し、その長さを伸縮させる操作をすると、その長さの伸縮に連動して表示されている数値が変化する。   Further, when the operator designates the part enlargement / reduction marker E with a cursor as an input interface for an arbitrary enlargement / reduction ratio, for example, as shown in FIG. 8, the three enlargement / reduction ratios extending in the respective axis directions of the XYZ coordinates are large. An input interface that displays magnification lines Qx, Qy, and Qz indicating the length, designates any magnification line Qq (q = x, y, z) with a cursor, and expands / contracts the length of the magnification line Qq Can be provided. In this input interface, the numerical value displayed on each magnification line Qx, Qy, Qz indicates the enlargement / reduction magnification, and the default value is “1.0”. When the operator designates any magnification line Qq (q = x, y, z) with the cursor and performs an operation to expand or contract the length, the displayed numerical value changes in conjunction with the expansion or contraction of the length. To do.

従って、例えば、作業者がカーソルでX方向の倍率線Qxを指定し、表示されている数値が「1.3」に変化するまでその長さを伸長させる操作をすると、表示画面7aに表示されている目のX方向のサイズ(寸法)を標準サイズの1.3倍に設定することができる。表示画面7a上では、X方向の倍率線Qxの長さ(X方向の拡縮倍率の値)の変化に連動して目の形状変化処理が行われるので、作業者は、目のX方向のサイズを変更したい場合に視覚的に所望のサイズの入力と変更後の目の形状を確認することができる。目のY方向やZ方向のサイズ変更の操作についても同様である。この入力インターフェースによれば、作業者による顔の各部位の形状を所望のサイズに変更する操作が容易で、作業効率を高めることができる。   Therefore, for example, when the operator designates the magnification line Qx in the X direction with the cursor and performs an operation of extending the length until the displayed numerical value changes to “1.3”, it is displayed on the display screen 7a. The size (dimension) in the X direction of the eyes can be set to 1.3 times the standard size. On the display screen 7a, the eye shape change processing is performed in conjunction with the change in the length of the magnification line Qx in the X direction (the value of the enlargement / reduction magnification in the X direction). When it is desired to change the eye, it is possible to visually confirm the input of the desired size and the shape of the eye after the change. The same applies to the operation of changing the size of the eyes in the Y direction or the Z direction. According to this input interface, the operator can easily change the shape of each part of the face to a desired size, and work efficiency can be improved.

図9は、目の部位に設けられた部位拡縮用マーカEの一例を示し、(a)は目の部位拡縮用マーカEによって目を拡大する前の状態を示す図、(b)は同部位拡縮用マーカEによって目を拡大した状態を示す図である。なお、同図もポリゴンは省略し、ボーンBと部位拡縮用マーカEのみを描いている。   FIG. 9 shows an example of a part enlargement / reduction marker E provided in the eye part, (a) shows a state before the eye is enlarged by the eye part enlargement / reduction marker E, and (b) shows the same part. It is a figure which shows the state which expanded the eyes with the marker E for expansion / contraction. In this figure, polygons are omitted, and only the bone B and the part expansion / contraction marker E are drawn.

図9の例では、目に設定された6つのボーンB(1)〜B(6)を放射状に移動させることによって目を全体的に拡大したり、縮小したりするので、その放射状の移動の基準となる位置に部位拡縮用マーカEが1つだけ設けられている。図9の例では、目の瞳孔の位置に部位拡縮用マーカE(1)が設定されている。この設定位置は部位移動用マーカM(1)の設定位置と同じ位置であるが、部位拡縮用マーカE(1)のマークを四角形とすることによって部位移動用マーカM(1)と識別できるようにしている。   In the example of FIG. 9, the six bones B (1) to B (6) set in the eye are radially moved to enlarge or reduce the entire eye. Only one part enlargement / reduction marker E is provided at a reference position. In the example of FIG. 9, a part expansion / contraction marker E (1) is set at the position of the pupil of the eye. This set position is the same as the set position of the part movement marker M (1), but it can be distinguished from the part movement marker M (1) by making the mark of the part expansion / contraction marker E (1) square. I have to.

6つのボーンB(1)〜B(6)にそれぞれ直結されている部位変形用マーカH(1)〜H(6)は部位拡縮用マーカE(1)にも関連付けられている。また、目の大きさが変化すると、それに伴い眉毛の位置や大きさも影響するので、目の形状の変化に応じて眉毛の形状を変形させるために、眉毛に設けられている部位変形用マーカH(7),H(8)が目の部位変形用マーカH(2),H(3)にそれぞれ関連付けられている。   The part deformation markers H (1) to H (6) directly connected to the six bones B (1) to B (6) are also associated with the part expansion / contraction marker E (1). Further, when the size of the eye changes, the position and size of the eyebrows are also affected accordingly. Therefore, in order to deform the shape of the eyebrows according to the change in the shape of the eyes, the part deformation marker H provided on the eyebrows (7) and H (8) are associated with the eye part deformation markers H (2) and H (3), respectively.

各部位変形用マーカH(i)(i=1,2,…6)には部位拡縮用マーカE(1)に対する連動用のパラメータとして移動方向φhie1と拡縮倍率Khie1が設定されている。符号「φhie1」,「Khie1」の添え字「h」、「i」、「e」、「1」はそれぞれ「部位変形用マーカH」、「部位変形用マーカHのマーカ番号」、「部位拡縮用マーカE」、「部位拡縮用マーカEのマーカ番号」を示している。移動方向φhie1は、図10に示すように、部位拡縮用マーカE(1)の位置と部位変形用マーカH(i)の標準の位置(図9(a)の位置)とを結ぶ線の方向である。部位拡縮用マーカE(1)の位置と各部位変形用マーカH(i)の標準の位置は変化しないので、各部位変形用マーカH(i)の移動方向φhie1は固定値となっている。 For each part deformation marker H (i) (i = 1, 2,... 6), a moving direction φ hie1 and an enlargement / reduction ratio K hie1 are set as parameters for interlocking with the part enlargement / reduction marker E (1). The suffixes “h”, “i”, “e”, and “1” of the symbols “φ hie1 ” and “K hie1 ” are “part deformation marker H”, “marker number of part deformation marker H”, “ The part expansion / contraction marker E "and the" part number expansion / contraction marker E marker number "are shown. As shown in FIG. 10, the movement direction φ hie1 is a line connecting the position of the part expansion / contraction marker E (1) and the standard position of the part deformation marker H (i) (position of FIG. 9A). Direction. Since the position of the part expansion / contraction marker E (1) and the standard position of each part deformation marker H (i) do not change, the moving direction φ hie1 of each part deformation marker H (i) is a fixed value. .

一方、拡縮倍率Khie1は、部位拡縮用マーカE(1)の位置から部位変形用マーカH(i)の標準の位置までの距離(以下、「標準距離」という。)に対する、部位拡縮用マーカE(1)の位置から部位変形用マーカH(i)の移動した位置までの距離の割合である。すなわち、拡縮倍率Khie1は、移動方向φhie1の直線上における部位変形用マーカH(i)の移動した位置を標準距離に対する割合で示すものである。 On the other hand, the enlargement / reduction ratio K hie1 is a part enlargement / reduction marker with respect to the distance from the position of the part enlargement / reduction marker E (1) to the standard position of the part deformation marker H (i) (hereinafter referred to as “standard distance”). This is the ratio of the distance from the position of E (1) to the position where the part deformation marker H (i) has moved. That is, the enlargement / reduction ratio K hie1 indicates the position where the part deformation marker H (i) moves on the straight line in the movement direction φ hie1 as a percentage of the standard distance.

例えば、部位変形用マーカH(1)の場合、図10に示すように、標準距離をL(1)、部位変形用マーカH(1)の移動した位置の部位拡縮用マーカE(1)の距離をL(1)’とすると、拡縮倍率Kh1e1は、Kh1e1=L(1)’/L(1)である。他の部位変形用マーカH(2)〜H(6)についても同様である。なお、拡縮倍率Khie1のディフォルト値は「1.0」である。また、L(1)=√{(Xh1−Xe12+(Yh1−Ye12+(Zh1−Ze12}、L(1)’=√{(Xh1’−Xe12+(Yh1’−Ye12+(Zh1’−Ze12}である。 For example, in the case of the part deformation marker H (1), as shown in FIG. 10, the standard distance is L (1), and the part expansion / contraction marker E (1) at the position where the part deformation marker H (1) is moved. When the distance is L (1) ′, the scaling factor K h1e1 is K h1e1 = L (1) ′ / L (1). The same applies to the other region deformation markers H (2) to H (6). Note that the default value of the scaling factor K hie1 is “1.0”. Further, L (1) = √ {(X h1 −X e1 ) 2 + (Y h1 −Y e1 ) 2 + (Z h1 −Z e1 ) 2 }, L (1) ′ = √ {(X h1 '− it is X e1) 2 + (Y h1 '-Y e1) 2 + (Z h1' -Z e1) 2}.

外部記憶装置5やRAM4の部位拡縮用マーカE(1)のデータ記憶領域には、部位拡縮用マーカE(1)の位置座標(Xe1,Ye1,Ze1)と、移動後の位置座標(Xe1’,Ye1’,Ze1’)と、関連付けられた部位変形用マーカH(i)のマーカ番号iと部位変形用マーカH(i)の連動用のパラメータ(φhie1,Khie1)(i=1,2,…6)のデータが格納されている。 In the data storage area of the part enlargement / reduction marker E (1) of the external storage device 5 or RAM 4, the position coordinates (X e1 , Y e1 , Z e1 ) of the part enlargement / reduction marker E (1) and the position coordinates after movement are stored. (X e1 ′, Y e1 ′, Z e1 ′) and the associated parameter (φ hie1 , K hie1 ) of the marker number i of the part deformation marker H (i) and the part deformation marker H (i) ) (I = 1, 2,... 6) is stored.

部位拡縮用マーカE(1)と各部位変形用マーカH(i)のデータ構造の関係は、図5に示した部位移動用マーカM(1)と部位変形用マーカH(i)のデータ構造がツリー構造となる関係と基本的に同じであるので、その説明は省略する。   The relationship between the data structure of the part expansion / contraction marker E (1) and each part deformation marker H (i) is as follows. The data structure of the part movement marker M (1) and part deformation marker H (i) shown in FIG. Is basically the same as the relation of the tree structure, and the description thereof is omitted.

図9(b)は、目に設定された部位拡縮用マーカE(1)によって目の大きさを約1.3倍にした例を示している。作業者が目に設定された部位拡縮用マーカE(1)を操作して当該部位拡縮用マーカE(1)の拡縮倍率Ke1を「1.3」に設定すると、各部位変形用マーカH(i)の拡縮倍率Khie1が「1.3」に変更され、目の部位変形用マーカH(1)〜H(6)がそれぞれ移動方向φh1e1〜φh6e1の方向に移動する。また、部位変形用マーカH(2),H(3)の移動に伴いこれらに関連付けられている眉毛の部位変形用マーカH(7),H(8)も連動用のパラメータに基づいて移動する。 FIG. 9B shows an example in which the size of the eye is increased by about 1.3 times by the region enlargement / reduction marker E (1) set to the eye. Setting the scaling factor K e1 by operating the operator set eyes are sites scaling marker E (1) the site scaling marker E (1) to "1.3", each part variant marker H scaling factor K Hie1 of (i) is changed to "1.3", the eye region variant marker H (1) ~H (6) is moved in the direction of the moving direction φ h1e1 ~φ h6e1 respectively. Further, along with the movement of the part deformation markers H (2), H (3), the eyebrow part deformation markers H (7), H (8) associated therewith also move based on the interlocking parameters. .

各部位変形用マーカH(i)(i=1,2,…6)の移動位置の部位拡縮用マーカE(1)からの距離L(i)’(i=1,2,…6)は、部位拡縮用マーカM(1)から各部位変形用マーカH(1)〜H(6)の標準の位置(図9(a)の位置)までの標準距離をL(i)とすると、L(i)’=Khie1×L(i)=Khie1×√{(Xhi’−Xe12+(Yhi’−Ye12+(Zhi’−Ze12}となっている。 The distance L (i) ′ (i = 1, 2,... 6) from the part expansion / contraction marker E (1) at the movement position of each part deformation marker H (i) (i = 1, 2,... 6) is If the standard distance from the part expansion / contraction marker M (1) to the standard position of each part deformation marker H (1) to H (6) (position in FIG. 9A) is L (i), L (i) ′ = K hie1 × L (i) = K hie1 × √ {(X hi '−X e1 ) 2 + (Y hi ' −Y e1 ) 2 + (Z hi '−Z e1 ) 2 } ing.

目の部位では、6つの部位変形用マーカH(1)〜H(6)が部位拡縮用マーカE(1)から離れる方向に移動することにより各部位変形用マーカH(1)〜H(6)に関連付けられたボーンB(1)〜B(6)が連動して移動し、それに伴い各ボーン(1)〜B(6)に関連付けられた複数のポリゴン頂点Pの位置が連動して移動する。この結果、目の形状は、図9(b)に示すように、全体的に大きくなる。また、眉毛の部位も、部位変形用マーカH(2),H(3)に連動して部位変形用マーカH(7),H(8)が移動することにより各部位変形用マーカH(7),H(8)に関連付けられたボーンB(7),B(8)が連動して移動し、それに伴い各ボーンB(7),B(8)にそれぞれ関連付けられた複数のポリゴン頂点Pの位置が連動して移動するので、眉毛の形状も、図9(b)に示すように、全体的に大きくなる。   In the region of the eye, the six part deformation markers H (1) to H (6) move away from the part expansion / contraction markers E (1), whereby the respective part deformation markers H (1) to H (6 ) Bones B (1) to B (6) associated with each other are moved in conjunction with each other, and the positions of a plurality of polygon vertices P associated with each bone (1) to B (6) are associated with each other. To do. As a result, the overall shape of the eye becomes large as shown in FIG. In addition, the part of the eyebrows is also moved by the part deformation markers H (7), H (8) in conjunction with the part deformation markers H (2), H (3). ) And B (8) associated with bones B (7) and B (8) move in conjunction with each other, and accordingly, a plurality of polygon vertices P respectively associated with the bones B (7) and B (8). Since the positions of the eyebrows move in conjunction with each other, the shape of the eyebrows also increases as a whole as shown in FIG.

従って、作業者は、鼻筋の右側にある目に対して部位拡縮用マーカEを用いて目の拡大操作を行うことにより顔画像の両目と両眉毛を簡単に大きくすることができる。なお、部位拡縮用マーカE(1)に設定された拡縮倍率Ke1や各部位変形用マーカH(i)に設定された拡縮倍率Khie1(i=1,2,…6)の情報は保存されるので、作業者は部位拡縮用マーカE(1)の操作情報(部位の拡大または縮小の割合の情報)や各部位変形用マーカH(i)の連動用のパラメータを確認することができる。 Therefore, the operator can easily enlarge both eyes and both eyebrows of the face image by performing an eye enlargement operation on the eyes on the right side of the nose muscles using the region enlargement / reduction marker E. It should be noted that information on the enlargement / reduction ratio K e1 set in the part enlargement / reduction marker E (1) and the enlargement / reduction ratio K hie1 (i = 1, 2,..., 6) set in each part deformation marker H (i) is stored. Therefore, the operator can confirm the operation information (information on the rate of enlargement or reduction of the part) and the parameters for interlocking with each part deformation marker H (i). .

マーカRは、部位全体を回転させる編集操作をするためのマーカ(本発明に係る「第2の操作点」に相当。以下、「部位回転用マーカ」という。)である。部位回転用マーカRは、例えば、部位に設定された複数の部位変形用マーカHを左側と右側に分け、部位回転用マーカRの回転に連動して左側の部位変形用マーカHを上側に移動させる一方、右側の部位変形用マーカHを下側に移動させることにより、部位を見かけ上、回転させた形状に変化させる機能を果す。各部位回転用マーカR(i)にも位置座標「(Xri,Yri,Zri)」が設定されている。なお、各座標の添え字の「r」は部位回転用マーカRを示し、「i」は部位回転用マーカRのマーカ番号を示している。 The marker R is a marker for performing an editing operation for rotating the entire part (corresponding to a “second operation point” according to the present invention, hereinafter referred to as “part rotation marker”). In the part rotation marker R, for example, a plurality of part deformation markers H set for the part are divided into a left side and a right side, and the left part deformation marker H is moved upward in conjunction with the rotation of the part rotation marker R. On the other hand, by moving the right part deforming marker H downward, the part is apparently changed into a rotated shape. Position coordinates “(X ri , Y ri , Z ri )” are also set for each part rotation marker R (i). Note that the subscript “r” of each coordinate indicates the part rotation marker R, and “i” indicates the marker number of the part rotation marker R.

部位回転用マーカRも、部位拡縮用マーカEと同様、部位を代表する位置(通常は、部位の画像の中心位置)に1個だけ設けられ、当該部位に設けられる複数の部位変形用マーカHが部位回転用マーカRに関連付けられている。部位回転用マーカRを回転させることにより、当該部位回転用マーカRに関連付けられた複数の部位変形用マーカHの一部と残りが互いに逆方向に連動して移動し、これにより部位の形状が全体的に回転した形状に変化する。   Similarly to the part expansion / contraction marker E, the part rotation marker R is provided only at one position representing the part (usually the center position of the part image), and a plurality of part deformation markers H provided at the part. Is associated with the part rotation marker R. By rotating the part rotation marker R, a part and the rest of the plurality of part deformation markers H associated with the part rotation marker R are moved in the opposite direction to each other. It changes to an overall rotated shape.

図11は、目の部位に設けられた部位回転用マーカRの一例を示し、(a)は目の部位回転用マーカRによって目を回転する前の状態を示す図、(b)は同部位回転用マーカRによって目を回転した状態を示す図である。なお、同図もポリゴンは省略し、ボーンBと部位回転用マーカRのみを描いている。   FIG. 11 shows an example of a part rotation marker R provided in the eye part, (a) shows a state before the eye is rotated by the eye part rotation marker R, and (b) shows the part. It is a figure which shows the state which rotated eyes with the marker R for rotation. In the same figure, polygons are omitted, and only the bone B and the part rotation marker R are drawn.

図11の例では、目の瞳孔の位置に部位回転用マーカR(1)が1つだけ設けられている。この設定位置は部位拡縮用マーカE(1)の設定位置と同じ位置であるが、部位回転用マーカR(1)のマークを三角形とすることによって部位拡縮用マーカE(1)や部位移動用マーカM(1)などと識別できるようにしている。   In the example of FIG. 11, only one part rotation marker R (1) is provided at the position of the pupil of the eye. This setting position is the same as the setting position of the part enlargement / reduction marker E (1). However, by setting the mark of the part rotation marker R (1) to a triangle, the part enlargement / reduction marker E (1) or the part movement marker is used. It can be distinguished from the marker M (1) or the like.

部位回転用マーカR(1)は、部位回転用マーカR(1)を時計回りに回転させると、これに連動して部位回転用マーカR(1)よりも左側の3個の部位変形用マーカH(3),H(4),H(5)を上側に移動させるとともに、右側の3個の部位変形用マーカH(1),H(2),H(6)を下側に移動させ、逆に部位回転用マーカR(1)を反時計回りに回転させると、これに連動して左側の3個の部位変形用マーカH(3),H(4),H(5)を下側に移動させるとともに、右側の3個の部位変形用マーカH(1),H(2),H(6)を上側に移動させて目が全体的に右側又は左側に傾いた形状に変化させる機能を果す。   When the part rotation marker R (1) rotates the part rotation marker R (1) clockwise, the three part deformation markers on the left side of the part rotation marker R (1) are linked to this. Move H (3), H (4), and H (5) upward, and move the three right part deformation markers H (1), H (2), and H (6) downward. Conversely, when the part rotation marker R (1) is rotated counterclockwise, the left three part deformation markers H (3), H (4), H (5) are moved downward. And move the three right part deformation markers H (1), H (2), H (6) to the upper side to change the shape of the eyes to the right or left side as a whole. Perform functions.

このため、6つの部位変形用マーカH(1)〜H(6)は部位回転用マーカR(1)にも関連付けられている。また、目の形状が変化すると、それに伴い眉毛の形状も影響するので、眉毛に設けられている部位変形用マーカH(7),H(8)も部位回転用マーカR(1)に関連付けられている。   For this reason, the six part deformation markers H (1) to H (6) are also associated with the part rotation marker R (1). Further, when the shape of the eye changes, the shape of the eyebrows is affected accordingly, so the part deformation markers H (7), H (8) provided on the eyebrows are also associated with the part rotation marker R (1). ing.

6つの部位変形用マーカH(1)〜H(6)には、図12に示すように、部位回転用マーカR(1)の回転量ψに基づいてY軸方向の移動量Dy(1)〜Dy(6)を算出する関数F1(ψ)〜F6(ψ)が連動用のパラメータとして設定されている。移動量Dy(i)(iは部位変形用マーカHのマーカ番号。i=1,2,…6)を算出する関数Fi(ψ)(i=1,2,…6)は、部位回転用マーカR(1)の回転方向に目全体が回転するように見せるために、部位回転用マーカR(1)が時計回りに回転したときには左側の3個の部位変形用マーカH(3),H(4),H(5)の移動量Dy(3),Dy(4),Dy(5)が「正」の値(Y軸の上方向移動に相当)で算出され、右側の3個の部位変形用マーカH(1),H(2),H(6)の移動量Dy(1),Dy(2),Dy(6)が「負」の値(Y軸の下方向移動に相当)で算出される。   As shown in FIG. 12, the six part deformation markers H (1) to H (6) include a movement amount Dy (1) in the Y-axis direction based on the rotation amount ψ of the part rotation marker R (1). Functions F1 (ψ) to F6 (ψ) for calculating ~ Dy (6) are set as interlocking parameters. The function Fi (ψ) (i = 1, 2,... 6) for calculating the movement amount Dy (i) (i is the marker number of the part deformation marker H. i = 1, 2,... 6) is used for the part rotation. In order to make the entire eye rotate in the direction of rotation of the marker R (1), when the part rotation marker R (1) rotates clockwise, the three left part deformation markers H (3), H (4), H (5) travel distances Dy (3), Dy (4), Dy (5) are calculated with “positive” values (corresponding to the upward movement of the Y axis), The amount of movement Dy (1), Dy (2), Dy (6) of the part deformation markers H (1), H (2), H (6) is a negative value (corresponding to the downward movement of the Y axis) ).

逆に部位回転用マーカR(1)が反時計回りに回転したときには左側の3個の部位変形用マーカH(i)(i=3,4,5)の移動量Dy(i)が「負」の値で算出され、右側の3個の部位変形用マーカH(i)(i=1,2,6)の移動量Dy(i)が「正」の値で算出されるように設定されている。なお、部位回転用マーカR(1)の回転に連動して部位変形用マーカH(1)〜H(6)を移動させる方向はY軸方向だけであるので、各部位変形用マーカH(1)〜H(6)には移動方向のパラメータは設定されていない。外部記憶装置5やRAM4の部位回転用マーカR(1)のデータ記憶領域には、部位拡縮用マーカR(1)の移動前の位置座標(Xr1,Yr1,Zr1)と、移動後の位置座標(Xr1’,Yr1’,Zr1’)と、関連付けられた部位変形用マーカH(i)のマーカ番号iと部位変形用マーカH(i)の連動用のパラメータ(Dy(i))(i=1,2,…6)のデータが格納されている。 Conversely, when the part rotation marker R (1) rotates counterclockwise, the movement amount Dy (i) of the three left part deformation markers H (i) (i = 3, 4, 5) is “negative”. And the movement amount Dy (i) of the three right side region deformation markers H (i) (i = 1, 2, 6) is set to be calculated as a “positive” value. ing. Since only the Y-axis direction moves the part deformation markers H (1) to H (6) in conjunction with the rotation of the part rotation marker R (1), each part deformation marker H (1 ) To H (6) are not set in the moving direction parameter. In the data storage area of the part rotation marker R (1) of the external storage device 5 or RAM 4, the position coordinates (X r1 , Y r1 , Z r1 ) before the movement of the part expansion / contraction marker R (1) and after the movement are stored. Position coordinates (X r1 ′, Y r1 ′, Z r1 ′) and the associated parameter (Dy ( i)) (i = 1, 2,... 6) is stored.

部位回転用マーカR(1)と6つの部位変形用マーカH(1)〜H(6)のデータ構造の関係は、図5に示した部位移動用マーカM(1)と部位変形用マーカH(i)のデータ構造がツリー構造となる関係と基本的に同じであるので、その説明は省略する。   The relationship between the data structure of the part rotation marker R (1) and the six part deformation markers H (1) to H (6) is the same as the part movement marker M (1) and the part deformation marker H shown in FIG. Since the data structure of (i) is basically the same as the tree structure, description thereof is omitted.

図11(b)は、作業者が目に設定された部位回転用マーカR(1)を指定し、画面上で時計回りに回転させた場合の目の形状の変化を示したものである。   FIG. 11B shows the change in the shape of the eye when the operator designates the part rotation marker R (1) set for the eye and rotates it clockwise on the screen.

作業者が、入力装置6によって部位回転用マーカR(1)を時計回りに回転させる操作を行うと、部位回転用マーカR(1)がその操作に応じて回転し、その回転量ψが算出され、その算出結果と部位変形用マーカH(1)〜H(6)に連動用のパラメータとして設定された関数F1(ψ)〜F6(ψ)を用いて部位変形用マーカH(1)〜H(6)に移動量Dy(1)〜Dy(6)が設定される。なお、部位回転用マーカR(1)に対する操作としては、部位拡縮用マーカE(1)と同様に、作業者がカーソルで部位回転用マーカR(1)を指定し、数値キーによって回転角を入力するようにしてもよい。   When the operator performs an operation of rotating the part rotation marker R (1) clockwise by the input device 6, the part rotation marker R (1) rotates according to the operation, and the rotation amount ψ is calculated. Using the calculation results and the functions F1 (ψ) to F6 (ψ) set as parameters for interlocking with the portion deformation markers H (1) to H (6), the portion deformation markers H (1) to Movement amounts Dy (1) to Dy (6) are set in H (6). As for the operation for the part rotation marker R (1), like the part expansion / contraction marker E (1), the operator designates the part rotation marker R (1) with the cursor and sets the rotation angle with the numerical keys. You may make it input.

図11(b)の例は、6つの部位変形用マーカH(1)〜H(6)に対してそれぞれDy(1)=−0.1×ψ、Dy(2)=−0.01×ψ、Dy(3)=+0.01×ψ、Dy(4)=+0.1×ψ、Dy(5)=+0.01×ψ、Dy(6)=−0.01×ψの移動量が算出され、部位回転用マーカR(1)よりも左側の3つの部位変形用マーカH(3),H(4),H(5)がそれぞれ「+0.01×ψ」、「+0.1×ψ」、「+0.01×ψ」だけ上側に移動し、部位回転用マーカR(1)よりも右側の3つの部位変形用マーカH(2),H(1),H(6)がそれぞれ「−0.01×ψ」「−0.1×ψ」、「−0.01×ψ」だけ下側に移動した状態を示している。   In the example of FIG. 11B, Dy (1) = − 0.1 × ψ and Dy (2) = − 0.01 × for the six part deformation markers H (1) to H (6), respectively. ψ, Dy (3) = + 0.01 × ψ, Dy (4) = + 0.1 × ψ, Dy (5) = + 0.01 × ψ, Dy (6) = − 0.01 × ψ The calculated three region deformation markers H (3), H (4), and H (5) on the left side of the region rotation marker R (1) are “+ 0.01 × ψ” and “+ 0.1 ×”, respectively. ψ ”and“ + 0.01 × ψ ”move upward, and the three part deformation markers H (2), H (1), and H (6) on the right side of the part rotation marker R (1) A state in which “−0.01 × ψ”, “−0.1 × ψ”, and “−0.01 × ψ” are moved downward is shown.

6つの部位変形用マーカH(1)〜H(6)が上記のように移動することによって各部位変形用マーカH(1)〜H(6)にそれぞれ関連付けられたボーンB(1)〜B(6)も移動し、ボーンB(1)〜B(6)の移動により各ボーンB(1)〜B(6)にそれぞれ関連付けられた複数のポリゴン頂点Pが連動して移動するので、図11(b)では、目尻が吊り上り、目頭が垂れ下がった形状に変化している。   As the six part deformation markers H (1) to H (6) move as described above, the bones B (1) to B (B) associated with the respective part deformation markers H (1) to H (6), respectively. (6) also moves, and the movement of the bones B (1) to B (6) causes the plurality of polygon vertices P respectively associated with the bones B (1) to B (6) to move together. In 11 (b), the shape changes to a shape in which the corners of the eyes are hung and the heads of the eyes are hanging down.

また、部位変形用マーカH(2),H(3)の移動に伴いこれらに関連付けられている眉毛の部位変形用マーカH(7),H(8)も連動用のパラメータに基づいて移動する。これにより、各部位変形用マーカH(7),H(8)に関連付けられたボーンB(7),B(8)が連動して移動し、それに伴い各ボーンB(7),B(8)にそれぞれ関連付けられた複数のポリゴン頂点Pの位置が連動して移動するので、眉毛の形状も、図11(b)に示すように、眉尻が吊り上り、眉頭が垂れ下がった形状に変化する。   Further, along with the movement of the part deformation markers H (2), H (3), the eyebrow part deformation markers H (7), H (8) associated therewith also move based on the interlocking parameters. . As a result, the bones B (7) and B (8) associated with the respective part deformation markers H (7) and H (8) move in conjunction with each other, and accordingly the bones B (7) and B (8) ) Move in conjunction with each other, the shape of the eyebrows changes to a shape in which the buttocks rise and the eyebrows hang as shown in FIG. .

部位回転用マーカR(1)を反時計回りに同じように回転させた場合は、部位変形用マーカH(3),H(4),H(5)がそれぞれ「−0.01×ψ」だけ下側に移動し、部位変形用マーカH(2),H(1),H(6)がそれぞれ「+0.01×ψ」だけ上側に移動するから、表示装置7のディスプレイには、図11(b)とは逆に、目及び眉毛は、目頭及び眉頭が吊り上り、目尻及び眉尻が垂れ下がった形状に変化した顔画像が表示されることになる。   When the part rotation marker R (1) is rotated counterclockwise in the same manner, the part deformation markers H (3), H (4), and H (5) are “−0.01 × ψ”. The region deformation markers H (2), H (1), and H (6) are moved upward by “+ 0.01 × ψ”, respectively. Contrary to 11 (b), the eyes and eyebrows display a face image that has been changed to a shape in which the eyes and eyebrows are lifted and the corners of the eyes and eyebrows hang down.

従って、作業者は、鼻筋の右側にある目に対して部位回転用マーカRを用いて目の回転操作を行うことにより顔画像の両目と両眉毛の形状を簡単に回転させることができる。なお、部位回転用マーカR(1)に設定された回転量ψと6つの部位変形用マーカH(1)〜H(6)に設定された移動量Dy(1)〜Dy(6)の情報は保存されるので、作業者は部位回転用マーカR(1)の操作情報や各部位変形用マーカH(1)〜H(6)の連動用のパラメータ(移動量Dy(1)〜Dy(6))を確認することができる。   Therefore, the operator can easily rotate the shape of both eyes and both eyebrows of the face image by performing an eye rotation operation on the eyes on the right side of the nose muscles using the part rotation marker R. Information on the rotation amount ψ set in the part rotation marker R (1) and the movement amounts Dy (1) through Dy (6) set in the six part deformation markers H (1) through H (6). Is stored, the operator can operate the operation information of the part rotation marker R (1) and the parameters for interlocking the parts deformation markers H (1) to H (6) (movement amounts Dy (1) to Dy ( 6)) can be confirmed.

次に、アニメーション編集について説明する。   Next, animation editing will be described.

アニメーション画像は、標準の顔画像に対して顔の特定の部位を構成するポリゴン頂点Pとその部位に設けられたボーンB及びマーカH,M,E,Rの位置を少しずつ移動させた複数コマの顔画像の集合である。従って、アニメーションデータは、コマ毎に作成された顔の表面形状を表すデータで構成されている。各コマの顔の表面形状を表すデータは、多数のポリゴン頂点P、ボーンB及びマーカH,M,E,Rの位置座標で構成されるが、2コマ目以降の顔画像を構成する各ポリゴン頂点P、各ボーンB及び各マーカH,M,E,Rの位置座標は1コマ目の顔画像における位置座標に対して移動方向及び移動量の移動条件が与えられると算出できるので、2コマ目以降のコマの顔の表面形状を表すデータは、各ポリゴン頂点P、各ボーンB及び各マーカH,M,E,Rの初期位置(1コマ目の顔画像における位置)からの移動位置を予め設定された移動条件に基づいて算出するプログラムデータで構成されている。従って、1コマ目の顔の表面形状を表すデータだけが標準の顔画像の多数のポリゴン頂点P、ボーンB及びマーカH,M,E,Rの位置座標(初期位置の座標)で構成されている。   The animation image is a plurality of frames in which the position of the polygon vertex P constituting the specific part of the face and the bones B and markers H, M, E, and R provided in the part are moved little by little with respect to the standard face image. Is a set of face images. Therefore, the animation data is composed of data representing the surface shape of the face created for each frame. The data representing the surface shape of the face of each frame is composed of the position coordinates of a large number of polygon vertices P, bones B and markers H, M, E, and R, but each polygon constituting the face image in the second frame and thereafter. Since the position coordinates of the vertex P, each bone B, and each marker H, M, E, R can be calculated when a movement condition of the movement direction and movement amount is given to the position coordinates in the face image of the first frame, The data representing the surface shape of the face of the frame after the eye is the moving position from the initial position (position in the face image of the first frame) of each polygon vertex P, each bone B, and each marker H, M, E, R. It is composed of program data calculated based on preset movement conditions. Therefore, only the data representing the surface shape of the face of the first frame is composed of the position coordinates (coordinates of the initial position) of a large number of polygon vertices P, bones B and markers H, M, E, R of the standard face image. Yes.

アニメーションデータでは、アニメーション画像を再生する際、最初のコマは標準画像データと各ポリゴンに張り付けるテクスチャとに基づいて顔の表面形状を表す三次元形状画像が生成され、その三次元形状画像が表示装置7に表示されるが、2コマ目以降のコマは顔画像に含まれる各ポリゴン頂点P、各ボーンB及び各マーカH,M,E,Rの初期位置からの移動位置が算出され、その算出結果と各ポリゴンに張り付けるテクスチャとに基づいて顔の表面形状を表す三次元形状画像が生成されて表示装置7に表示される。   With animation data, when the animation image is played back, the first frame generates a 3D shape image representing the surface shape of the face based on the standard image data and the texture attached to each polygon, and the 3D shape image is displayed. Although displayed on the apparatus 7, the second and subsequent frames are calculated from the initial positions of the polygon vertices P, the bones B, and the markers H, M, E, and R included in the face image. A three-dimensional shape image representing the surface shape of the face is generated based on the calculation result and the texture attached to each polygon, and is displayed on the display device 7.

本実施形態では、標準画像編集モードでゲームキャラクタの標準の顔の表面形状を変形させる編集を行うと、その編集結果がアニメーションデータに反映されるようになされている。すなわち、標準顔編集用プログラムには、作業者の操作によって入力装置6から編集処理終了の指令が入力されると、RAM4に一次保存されている編集処理の処理結果(編集処理によって変化したポリゴン頂点P、ボーンB及びマーカH,M,E,Rの位置座標を含む顔画像データ)を外部記憶装置5の編集後の顔画像データの記憶領域に保存する処理と、外部記憶装置5に保存されている標準のアニメーションデータに含まれる標準の顔画像データや移動条件のデータを顔画像編集モードで変更された顔画像データや移動条件に変更する処理と、が含まれている。   In the present embodiment, when editing is performed to change the surface shape of the standard face of the game character in the standard image editing mode, the editing result is reflected in the animation data. That is, when an instruction to end the editing process is input from the input device 6 to the standard face editing program by the operator's operation, the processing result of the editing process temporarily stored in the RAM 4 (the polygon vertex changed by the editing process) (Face image data including position coordinates of P, bone B, and markers H, M, E, and R) in the storage area of the edited face image data in the external storage device 5 and the external storage device 5 And processing for changing the standard face image data and movement condition data included in the standard animation data to the face image data and movement conditions changed in the face image editing mode.

後者の処理は、具体的には顔画像編集処理で標準の顔画像内のいずれかの部位変形用マーカHの位置が変更され、その部位変位用マーカHに関連付けられたボーンBやそのボーンBに関連付けられたポリゴン頂点Pの位置が変更されると、アニメーションデータの1コマ目の顔画像内の当該部位変形用マーカH、当該ボーンB及び当該ポリゴン頂点Pにそれぞれ対応する部位変形用マーカAH、当該ボーンAB及び当該ポリゴン頂点APを同じ位置に変更するものである。なお、符号「AH」,「AB」,「AP」の「A」はアニメーションデータのものであることを示している。   Specifically, in the latter process, the position of any part deformation marker H in the standard face image is changed in the face image editing process, and the bone B associated with the part displacement marker H or the bone B When the position of the polygon vertex P associated with is changed, the part deformation marker H, the bone B, and the polygon vertex P in the face image of the first frame of the animation data respectively correspond to the part deformation marker AH. The bone AB and the polygon vertex AP are changed to the same position. Note that “A” in the symbols “AH”, “AB”, and “AP” indicates that they are animation data.

1コマ目の顔画像内の部位変形用マーカAH、ボーンAB及びポリゴン頂点APの位置を自動的に変更することにより、当該部位変形用マーカAHの設けられた部位が大きさを変更するものではなく、単に形を変形するだけのものである場合は当該部位を構成する多数のポリゴン頂点APは、2コマ目以降の各コマでは標準の顔画像の場合と同様の移動条件で位置が変化するから、アニメーションデータを再生すると、変更後の部位の形状に対して標準の顔画像と同様の動きをさせることができる。   By automatically changing the positions of the part deformation marker AH, bone AB, and polygon vertex AP in the face image of the first frame, the part provided with the part deformation marker AH does not change the size. If the shape is simply deformed, the positions of the polygon vertices AP constituting the part change in the second and subsequent frames under the same movement conditions as in the case of a standard face image. Thus, when the animation data is reproduced, it is possible to perform the same movement as the standard face image with respect to the shape of the changed part.

例えば、アニメーションデータが目を閉じる動作(上瞼を上下する動作)を含む画像のデータで、顔画像編集処理で図4に示した目の目尻を下げる編集が行われた場合、アニメーションデータを再生すると、図4(b)に示す目尻の下がった目に対して上瞼が標準の顔画像の場合と同様の移動量で上下に動く動作をする。顔画像編集処理で図6に示した目全体を鼻筋側に移動させる編集が行われた場合や図11に示した目尻を吊り上げる編集が行われた場合も同様である。   For example, if the animation data is image data that includes the action of closing the eyes (the action of moving the upper eyelid up and down), the animation data is reproduced when the face image editing process is performed to lower the eye corners as shown in FIG. Then, the upper eyelid moves up and down with the same amount of movement as in the case of a standard face image with respect to the eye with the lower corner of the eye corner shown in FIG. The same applies to the case where the face image editing process is performed to move the entire eye shown in FIG. 6 to the nasal muscle side, or the case where the edit to lift the corner of the eye shown in FIG. 11 is performed.

一方、顔画像編集処理で図9に示した目全体を拡大する編集が行われた場合は、1コマ目の顔画像内の目の部位変形用マーカAH、ボーンAB及びポリゴン頂点APの位置を変更するだけでなく、各コマの部位変形用マーカAH、ボーンAB及びポリゴン頂点APの初期位置からの移動量に拡縮倍率が反映される。   On the other hand, when the editing for enlarging the entire eye shown in FIG. 9 is performed in the face image editing process, the positions of the eye part deformation markers AH, bone AB, and polygon vertex AP in the face image of the first frame are determined. In addition to the change, the scaling factor is reflected in the movement amounts from the initial positions of the part deformation markers AH, the bone AB, and the polygon vertex AP of each frame.

例えば、図9の例で、部位変形用マーカH(3)に対応するアニメーションデータの部位変形用マーカAH(3)が、標準の顔画像(図9(a)の目の大きさ)では最初のコマから第nコマまでの間でY軸の下方向に移動量Dnyだけ移動するように設定されているとすると、第nコマの部位変形用マーカAH(3)の位置座標のY成分を決定する式は移動量Dnyに部位変形用マーカAH(3)の拡縮倍率Kh3e1を乗じた(Dny×Kh3e1)に設定されている。部位変形用マーカAH(3)に関連付けられているボーンB(j)やそのボーンB(j)に関連付けられているポリゴン頂点Pの第nコマにおける位置座標のY成分を決定する式も同様で、予め設定された移動量に拡縮倍率Kh3e1を乗じた式に設定されている。 For example, in the example of FIG. 9, the part deformation marker AH (3) of the animation data corresponding to the part deformation marker H (3) is the first in the standard face image (the eye size in FIG. 9A). If it is set to move by a movement amount Dny downward from the top frame to the nth frame, the Y component of the position coordinates of the part deformation marker AH (3) of the nth frame is determining the formula is set to multiplied by a scaling factor K H3e1 site variant marker AH (3) to the moving amount Dny (Dny × K h3e1). The expression for determining the Y component of the position coordinate in the n-th frame of the bone vertex B associated with the part deformation marker AH (3) and the polygon vertex P associated with the bone B (j) is the same. , An expression obtained by multiplying a preset movement amount by an enlargement / reduction ratio K h3e1 is set.

拡縮倍率Kh3e1のディフォルト値は「1.0」に設定されているので、標準の顔画像に対するアニメーション画像では、部位変形用マーカAH(3)、部位変形用マーカAH(3)に関連付けられているボーンB(j)及びそのボーンB(j)に関連付けられているポリゴン頂点Pは、それぞれ予め設定されている標準の移動量でY軸の下方向に移動するが、顔画像編集処理で目のサイズが、例えば、標準のサイズに対して拡縮倍率Kh3e1=1.3で拡大された場合は、顔画像に対するアニメーション画像では、部位変形用マーカAH(3)、部位変形用マーカAH(3)に関連付けられているボーンB(j)及びそのボーンB(j)に関連付けられているポリゴン頂点Pは、標準の移動量を1.3倍した移動量でY軸の下方向に移動することになる。すなわち、目のサイズの拡縮倍率Kh3e1に応じて各コマのポリゴン頂点Pの初期位置からの移動量も連動して拡大又は縮小される。 Since the default value of the scaling factor K h3e1 is set to “1.0”, the animation image for the standard face image is associated with the part deformation marker AH (3) and the part deformation marker AH (3). The bone B (j) and the polygon vertex P associated with the bone B (j) move downward in the Y-axis by a preset standard movement amount. Is enlarged at a scaling factor K h3e1 = 1.3 with respect to the standard size, for example, the part deformation marker AH (3) and the part deformation marker AH (3 ) Bone B (j) associated with) and polygon vertex P associated with bone B (j) move downward in the Y axis by a movement amount that is 1.3 times the standard movement amount. become. That is, the movement amount from the initial position of the polygon vertex P of each frame is also enlarged or reduced in accordance with the enlargement / reduction magnification K h3e1 of the eye size.

従って、本実施形態では、標準画像編集モードでゲームキャラクタの標準の顔画像を変形させる編集を行うと、自動的にその編集結果がアニメーションデータに反映されるので、標準画像編集の後で標準の顔画像を用いて作成されているアニメーションデータを用いて標準画像編集と同様の編集を行い、変形後の顔画像に対するアニメーションデータを作成することは基本的に必要とされない。しかしながら、標準顔画像の編集結果を反映したアニメーションデータを再生したとき、部位の変形量が大きすぎたりしてその部位の動きが不自然になったり、顔全体の表情として違和感が生じたりする場合があるので、その場合には標準顔画像の編集結果を反映したアニメーションデータに対して修正をする必要がある。   Therefore, in this embodiment, when editing is performed to deform the standard face image of the game character in the standard image editing mode, the editing result is automatically reflected in the animation data. It is basically not necessary to perform the same editing as the standard image editing using the animation data created using the face image, and create the animation data for the deformed face image. However, when animation data that reflects the edit result of the standard face image is played back, the amount of deformation of the part is too large, the movement of the part becomes unnatural, or the expression of the entire face is uncomfortable In this case, it is necessary to correct the animation data reflecting the editing result of the standard face image.

本実施形態におけるアニメーション編集モードは、主としてそのようなアニメーションデータの修正をするためのモードである。本実施形態に係る顔画像編集プログラムは、アニメータがゲームソフトにおけるゲームキャラクタの標準画像やアニメーション画像を作成する場合に利用されるが、ゲームソフトに搭載することによってプレイヤがゲームキャラクタの標準の顔を好みの顔に編集する場合にも利用することができる。この場合は、顔画像の編集によって生じるアニメーション画像の不自然感や違和感などは顔画像の編集の仕方で緩和することができるので、プレイヤの編集作業の容易性や簡易性、ゲームソフトのデータ容量などを考慮し、標準顔編集用プログラムのみをゲームソフトに搭載するとよい。   The animation editing mode in the present embodiment is a mode for mainly correcting such animation data. The face image editing program according to the present embodiment is used when an animator creates a standard image or an animation image of a game character in game software. By installing the game image in the game software, the player can display the standard face of the game character. It can also be used when editing your favorite face. In this case, the unnatural feeling or the uncomfortable feeling of the animation image caused by the editing of the face image can be alleviated by the editing method of the face image. Therefore, the ease and simplicity of the editing operation of the player, the data capacity of the game software In consideration of the above, it is better to install only the standard face editing program in the game software.

顔画像編集は1枚の標準モデルの顔画像について表面形状を変化させる編集であるが、アニメーション編集は、標準モデルの顔画像の口や目などの部位をコマ送りで変化させて「笑う」、「怒る」などの特定の顔の表情を示す一群のコマ画像について、コマ毎に顔画像の表面形状を変化させる編集である。従って、顔画像編集は1枚の顔画像に対する編集作業となるのに対し、アニメーション編集は多数の同一の顔画像に対する編集作業となる点が異なる。   Face image editing is an edit that changes the surface shape of one standard model face image, but animation editing changes the part of the standard model's face image such as mouth and eyes by frame-by-frame and “laughs”. The editing is to change the surface shape of a face image for each frame for a group of frame images showing a specific facial expression such as “get angry”. Therefore, the face image editing is an editing operation for one face image, whereas the animation editing is an editing operation for many identical face images.

アニメーション編集は、前のコマの顔の所定の部位を微小変化させて各コマの顔の表面形状を作成するという作業を繰り返す編集であるから、コマ毎の顔の表面形状の編集でみれば、その編集作業は顔画像編集と基本的に同じである。従って、上述した顔画像編集用に設けた4種類の部位変形用マーカH、部位移動用マーカM、部位拡縮用マーカE及び部位回転用マーカRをアニメーション編集にも適用することができる。   Animation editing is an edit that repeats the process of creating a surface shape of the face of each frame by slightly changing a predetermined part of the face of the previous frame, so if you look at editing the face shape of the face for each frame, The editing work is basically the same as the face image editing. Therefore, the four types of part deformation markers H, part movement markers M, part enlargement / reduction markers E, and part rotation markers R provided for face image editing described above can also be applied to animation editing.

しかしながら、顔画像編集では、木目細かい編集作業を可能にするために、各部位に各種類のマーカH,M,E,Rが比較的多く設定されているが、アニメーション編集では、主として前のコマの顔に付された部位の変化部分に対して微小な変化を付する作業となるので、顔画像編集用に設定されたマーカH,M,E,Rが全て必要になるということは少ない。そこで、本実施形態では、アニメーション編集における作業や編集データの管理の負担を軽減するために、アニメーション編集用の4種類の部位変形用マーカH、部位移動用マーカM、部位拡縮用マーカE及び部位回転用マーカRの数を顔画像編集用よりも少なくしている。   However, in face image editing, a relatively large number of each type of markers H, M, E, and R are set in each part in order to enable fine-grained editing work. Therefore, it is rare that all markers H, M, E, and R set for face image editing are necessary. Therefore, in this embodiment, in order to reduce the burden of work in animation editing and management of editing data, four types of part modification markers H, part movement markers M, part expansion / contraction markers E, and parts for animation editing The number of rotation markers R is smaller than that for face image editing.

図13は、目と眉毛の部位に設けられたアニメーション編集用の部位変形用マーカの一例を示す図である。   FIG. 13 is a diagram illustrating an example of a part deformation marker for animation editing provided on the part of the eyes and eyebrows.

例えば、目と眉毛には、図4(a)に示すように、顔画像編集用の部位変形用マーカHとして目頭、目尻、上瞼の2箇所、下瞼の2箇所に合計6個の部位変形用マーカH(1)〜H(6)を設定していたが、アニメーション編集では、図13に示すように、上瞼の2箇所と下瞼の1箇所の合計3箇所にそれぞれ部位変形用マーカAH(2),AH(3),AH(5)が設けられ、目頭と目尻と下瞼の他の1箇所の3箇所には部位変形用マーカAHは設けられていない。すなわち、顔画像編集用の部位変形用マーカH(1),H(4),H(6)に対応する部位変形用マーカAHは設けられていない。   For example, in the eyes and eyebrows, as shown in FIG. 4 (a), there are a total of six parts as the part deformation markers H for face image editing in two places, the top of the eye, the corner of the eye, the upper eyelid, and the lower eyelid. Although the deformation markers H (1) to H (6) were set, in animation editing, as shown in FIG. Markers AH (2), AH (3), and AH (5) are provided, and no site deformation marker AH is provided at the other three locations of the head of the eye, the corner of the eye, and the lower eyelid. That is, the part deformation markers AH corresponding to the part deformation markers H (1), H (4), and H (6) for editing the face image are not provided.

なお、部位変形用マーカAHの符号「A」は、アニメーション編集用であることを示している。後述する部位変形用マーカAHの移動量ADや部位変形用マーカAHに関連付けられたボーンABやそのボーンABに設定される倍率AKの符号「A」についても同様である。   Note that the symbol “A” of the part deformation marker AH indicates that it is for animation editing. The same applies to the movement amount AD of the part deformation marker AH, which will be described later, the bone AB associated with the part deformation marker AH, and the sign “A” of the magnification AK set to the bone AB.

顔画像編集用では、部位変形用マーカH(1)〜H(6)はボーンB(1)〜B(6)と同じ位置に設けられ、目頭のボーンB(1)と目尻のボーンB(4)は目頭の部位変形用マーカH(1)と目尻の部位変形用マーカH(4)とでそれぞれ移動させることができたが、アニメーション編集用では、目頭の部位変形用マーカH(1)と目尻の部位変形用マーカH(4)と下瞼の部位変形用マーカH(6)に対応する部位変形用マーカAHを設けていないので、ボーンAB(1),AB(4),AB(6)をそれぞれ部位変形用マーカAH(2),AH(3),AH(5)で移動させる必要がある。   For facial image editing, the part deformation markers H (1) to H (6) are provided at the same positions as the bones B (1) to B (6), and the bones B (1) and B ( 4) could be moved by the eye part deforming marker H (1) and the eye part deforming marker H (4), but for animation editing, the eye part deforming marker H (1) And the part deforming marker AH corresponding to the part deforming marker H (4) of the eyelid and the part deforming marker H (6) of the lower eyelid are not provided, so that the bones AB (1), AB (4), AB ( 6) needs to be moved by the site deformation markers AH (2), AH (3) and AH (5), respectively.

そこで、本実施形態では、目尻のボーンAB(4)を部位変形用マーカAH(3)と部位変形用マーカAH(5)とに関連付け、部位変形用マーカAH(3)又は部位変形用マーカAH(5)が移動すると、それに連動してボーンAB(4)を移動させるようにしている。ボーンAB(4)には、連動用のパラメータとして部位変形用マーカAH(3)の移動量ADh3と部位変形用マーカAH(5)の移動量ADh5に対してそれぞれ所定の倍率AKb4h3,AKb4h5(例えば、いずれも0.25)を乗じた移動量が設定される関数が設定されている。 Therefore, in this embodiment, the bones AB (4) of the corners of the eyes are associated with the part deformation marker AH (3) and the part deformation marker AH (5), and the part deformation marker AH (3) or the part deformation marker AH. When (5) moves, bone AB (4) is moved in conjunction with it. The bone AB (4) has predetermined magnifications AK b4h3 , as movement parameters, AD h3 of the part deformation marker AH (3) and movement amount AD h5 of the part deformation marker AH (5), respectively. A function is set in which the amount of movement multiplied by AK b4h5 (for example, 0.25 for both) is set.

なお、「AKb4h3」の添え字の各符号「b」,「4」,「h」,「3」は、それぞれ「アニメーション編集用のボーン」、「アニメーション編集用のボーンのボーン番号」、「アニメーション編集用の部位変形用マーカ」、「アニメーション編集用の部位変形用マーカのマーカ番号」を示している。「AKb4h5」の添え字についても同様である。 The symbols “b”, “4”, “h”, and “3” of the subscript “AK b4h3 ” are “bone number for animation editing”, “bone number of bone for animation editing”, “ “Partial deformation marker for animation editing” and “Marker number of partial deformation marker for animation editing” are shown. The same applies to the subscript “AK b4h5 ”.

部位変形用マーカAH(3)及び部位変形用マーカAH(5)が移動すると、ボーンAB(4)は、部位変形用マーカAH(3)の移動ベクトルと部位変形用マーカAH(5)の移動ベクトルを合成した方向に移動する。部位変形用マーカAH(3),AH(5)の移動前の位置座標をそれぞれ(AXh3,AYh3,AZh3),(AXh5,AYh5,AZh5)とし、移動後の位置座標をそれぞれ(AXh3’,AYh3’,AZh3’),(AXh5’,AYh5’,AZh5’)とすると、部位変形用マーカAH(3),AH(5)の各移動ベクトルのX,Y,Z成分(ΔXh3,ΔYh3,ΔZh3),(ΔXh5,ΔYh5,ΔZh5)は、
(ΔXh3,ΔYh3,ΔZh3)=(AXh3’−AXh3,AYh3’−AYh3,AZh3’−AZh3
(ΔXh5,ΔYh3,ΔZh3)=(AXh5’−AXh5,AYh5’−AYh5,AZh5’−AZh5
である。
When the part deformation marker AH (3) and the part deformation marker AH (5) move, the bone AB (4) moves the movement vector of the part deformation marker AH (3) and the part deformation marker AH (5). Move in the direction of the vector composition. The position coordinates before movement of the part deformation markers AH (3) and AH (5) are (AX h3 , AY h3 , AZ h3 ) and (AX h5 , AY h5 , AZ h5 ), respectively. If (AX h3 ′, AY h3 ′, AZ h3 ′) and (AX h5 ′, AY h5 ′, AZ h5 ′) respectively, X of each movement vector of the part deformation markers AH (3) and AH (5) , Y, Z components (ΔX h3 , ΔY h3 , ΔZ h3 ), (ΔX h5 , ΔY h5 , ΔZ h5 ) are
(ΔX h3, ΔY h3, ΔZ h3) = (AX h3 '-AX h3, AY h3' -AY h3, AZ h3 '-AZ h3)
(ΔX h5, ΔY h3, ΔZ h3) = (AX h5 '-AX h5, AY h5' -AY h5, AZ h5 '-AZ h5)
It is.

ボーンAB(4)の移動前後の位置座標をそれぞれ(AXb4,AYb4,AZb4),(AXb4’,AYb4’,AZb4’)とすると、ボーンAB(4)の移動ベクトルのX,Y,Z成分(ΔXb4,ΔYb4,ΔZb4)は、(ΔXb4,ΔYb4,ΔZb4)=(AXb4’−AXb4,AYb4’−AYb4,AZb4’−AZb4)である。ボーンAB(4)の移動ベクトルは、部位変形用マーカAH(3)の移動ベクトルと部位変形用マーカAH(5)の移動ベクトルを合成したものであるから、ボーンAB(4)の移動ベクトルのX,Y,Z成分、すなわち、X,Y,Zの各軸方向の移動量(ΔXb4,ΔYb4,ΔZb4)は、ΔXb4=ΔXh3×AKb4+ΔXh5×AKb5、ΔYb4=ΔYh3×AKb4+ΔYh5×AKb5、ΔZb4=ΔZh3×AKb4+ΔZh5×AKb5である。図13の例で、AKb4=AKb5=0.25に設定していると、部位変形用マーカAH(3)及び部位変形用マーカAH(5)が移動すれば、ボーンAB(4)は、X,Y,Zの各軸方向にそれぞれ(ΔXh3+ΔXh5)×0.25、(ΔYh3+ΔYh5)×0.25、(ΔZh3+ΔZh5)×0.25だけ移動する。 If the position coordinates before and after the movement of the bone AB (4) are (AX b4 , AY b4 , AZ b4 ) and (AX b4 ′, AY b4 ′, AZ b4 ′), respectively, the movement vector X of the bone AB (4) , Y, Z component (ΔX b4, ΔY b4, ΔZ b4) is, (ΔX b4, ΔY b4, ΔZ b4) = (AX b4 '-AX b4, AY b4' -AY b4, AZ b4 '-AZ b4) It is. Since the movement vector of the bone AB (4) is a combination of the movement vector of the part deformation marker AH (3) and the movement vector of the part deformation marker AH (5), the movement vector of the bone AB (4) X, Y, Z components, that is, movement amounts (ΔX b4 , ΔY b4 , ΔZ b4 ) in the respective X, Y, and Z directions are ΔX b4 = ΔX h3 × AK b4 + ΔX h5 × AK b5 , ΔY b4 = ΔY h3 × AK b4 + ΔY h5 × AK b5 , ΔZ b4 = ΔZ h3 × AK b4 + ΔZ h5 × AK b5 . In the example of FIG. 13, when AK b4 = AK b5 = 0.25 is set, if the part deformation marker AH (3) and the part deformation marker AH (5) move, the bone AB (4) , X, Y, and Z are moved by (ΔX h3 + ΔX h5 ) × 0.25, (ΔY h3 + ΔY h5 ) × 0.25, and (ΔZ h3 + ΔZ h5 ) × 0.25, respectively.

また、下瞼のボーンB(6)を部位変形用マーカAH(2)と部位変形用マーカAH(5)とに関連付け、部位変形用マーカAH(2)又は部位変形用マーカAH(5)が移動すると、それに連動してボーンAB(6)を移動させるようにしている。この場合は、ボーンAB(6)が横方向に部位変形用マーカAH(5)と並んでいるので、部位変形用マーカAH(5)のY軸方向の移動に対してはボーンAB(6)を部位変形用マーカAH(5)と同じ移動量で移動させ、部位変形用マーカH(5)のX軸方向やZ軸方向の移動に対して部位変形用マーカH(5)の移動量に対して所定の倍率AKのb6h5(例えば、0.25)を乗じた移動量で移動させるようにしている。 Also, the lower bone B (6) is associated with the part deformation marker AH (2) and the part deformation marker AH (5), and the part deformation marker AH (2) or the part deformation marker AH (5) When it moves, the bone AB (6) is moved in conjunction with it. In this case, since the bone AB (6) is aligned with the part deformation marker AH (5) in the lateral direction, the bone AB (6) is not affected by the movement of the part deformation marker AH (5) in the Y-axis direction. Is moved with the same movement amount as the part deformation marker AH (5), and the movement amount of the part deformation marker H (5) is changed with respect to the movement of the part deformation marker H (5) in the X-axis direction or the Z-axis direction. On the other hand, the moving amount is multiplied by b6h5 (for example, 0.25) of a predetermined magnification AK.

なお、眉毛については数が少ないので、眉頭用と眉尻用の2個の部位変形用マーカAH(7),AH(8)がアニメーション編集用にも設定されている。また、顔画像編集用では、眉毛の部位変形用マーカH(7),H(8)をそれぞれ目の部位変形用マーカH(2),H(3)に連携させ、目の編集で部位変形用マーカH(2),H(3)が移動すると、それに連動して眉毛の部位変形用マーカH(7),H(8)を連動させるようにしていたが、その構成はアニメーション編集用でも同様に適用され、眉毛の部位変形用マーカAH(7),AH(8)はそれぞれ目の部位変形用マーカAH(2),AH(3)に連携するように関連付けられている。従って、アニメーション編集でも顔画像編集と同様に目の変形に連動して眉毛をバランス良く移動させることができる。   Since the number of eyebrows is small, two part deformation markers AH (7) and AH (8) for the eyebrow head and the eyebrow butt are also set for animation editing. For facial image editing, the eyebrow part deformation markers H (7) and H (8) are linked to the eye part deformation markers H (2) and H (3), respectively, and the part is deformed by editing the eyes. When the markers H (2) and H (3) are moved, the eyebrow part deforming markers H (7) and H (8) are linked in conjunction therewith. The same applies, and the eyebrow part deformation markers AH (7) and AH (8) are associated with the eye part deformation markers AH (2) and AH (3), respectively. Therefore, even in animation editing, eyebrows can be moved in a well-balanced manner in conjunction with eye deformation, similar to face image editing.

一方、顔画像編集用の顔の表面形状に設定されている部位移動用マーカM、部位拡縮用マーカE及び部位回転用マーカRは、アニメーション用の各コマの顔の表面形状にも同様に設定されている。すなわち、目の瞳孔の位置に部位移動用マーカAM(1)、部位拡縮用マーカAE(1)、部位回転用マーカAR(1)が1つだけ設けられている。部位移動用マーカAM(1)、部位拡縮用マーカAE(1)及び部位回転用マーカAR(1)の各マーカを用いて、部位を全体的に移動させたり、部位を全体的に拡縮したり、部位を全体的に回転させたりする編集操作は、上述した顔画像編集の場合と同様であるので、ここではその説明を省略する。   On the other hand, the part movement marker M, the part enlargement / reduction marker E, and the part rotation marker R set in the face shape for face image editing are similarly set in the face shape of each frame for animation. Has been. That is, only one part movement marker AM (1), part expansion / contraction marker AE (1), and part rotation marker AR (1) is provided at the position of the pupil of the eye. Using the markers for part movement marker AM (1), part enlargement / reduction marker AE (1) and part rotation marker AR (1), the part is moved as a whole, or the part is enlarged or reduced as a whole. Since the editing operation for rotating the entire part is the same as that in the face image editing described above, the description thereof is omitted here.

次に、顔画像編集における顔の表面形状の編集処理について、図14のフローチャートに従って説明する。なお、以下の説明では、顔の目の部位の編集作業を例に説明する。   Next, the face surface shape editing process in face image editing will be described with reference to the flowchart of FIG. In the following description, an editing operation of a part of a face eye will be described as an example.

作業者が入力装置6を操作して顔画像編集モードを選択すると、CPU2はROM3に記憶されている標準顔編集用プログラムと標準顔画像データをRAM4に読み出し、その標準顔編集用プログラムを実行する。図14に示すフローチャートは、CPU2が標準顔編集用プログラムを実行したときの処理内容のアルゴリズムを示すものである。   When the operator operates the input device 6 to select the face image editing mode, the CPU 2 reads the standard face editing program and standard face image data stored in the ROM 3 into the RAM 4 and executes the standard face editing program. . The flowchart shown in FIG. 14 shows an algorithm of processing contents when the CPU 2 executes the standard face editing program.

CPU2は、まず、RAM4に読み出した顔画像編集用のキャラクタの顔画像のリストを表示装置7に表示し、作業者に編集対象の顔画像を選択させる(S1)。この編集対象の顔画像には、標準の顔の表面形状(ディフォルトの表面形状)と標準の顔の表面形状に対して既に編集が行われた表面形状の画像が含まれている。   First, the CPU 2 displays a list of face images of the face image editing character read out to the RAM 4 on the display device 7, and allows the operator to select a face image to be edited (S1). The face image to be edited includes a standard face surface shape (default surface shape) and a surface shape image that has already been edited with respect to the standard face surface shape.

作業者の操作により入力装置6から編集対象の顔画像が選択されると、CPU2は、その顔画像のデータとテクスチャデータを用いて図2に示す三次元形状画像を生成する(S2)。この場合、標準の顔の表面形状が選択されていれば、CPU2は、標準顔画像データとテクスチャデータを用いて三次元形状画像を生成し、標準の顔の三次元形状画像を表示装置7の表示画面7aに表示する(S3、図2、図4(a)参照)。   When a face image to be edited is selected from the input device 6 by the operator's operation, the CPU 2 generates a three-dimensional shape image shown in FIG. 2 using the face image data and texture data (S2). In this case, if the surface shape of the standard face is selected, the CPU 2 generates a three-dimensional shape image using the standard face image data and the texture data, and displays the standard face three-dimensional shape image on the display device 7. This is displayed on the display screen 7a (see S3, FIG. 2, and FIG. 4A).

一方、編集後の顔画像が選択されていれば、CPU2は、編集後の顔画像のデータとテクスチャデータを用いて図2に示す三次元形状画像を生成し(S2)、編集後の顔の三次元形状画像を表示装置7の表示画面7aに表示する(S3)。   On the other hand, if the edited face image is selected, the CPU 2 generates the three-dimensional shape image shown in FIG. 2 using the edited face image data and texture data (S2), and the edited face image is displayed. The three-dimensional shape image is displayed on the display screen 7a of the display device 7 (S3).

表示画面7aには顔画像がポリゴンモデルで表示されるが、その表面形状には部位の形状を変形させる操作点として部位変形用マーカHが表示されている(図4(a)参照)。なお、本実施形態では部位の形状を変形させる操作点として部位移動用マーカM、部位拡縮用マーカE及び部位回転用マーカRを用意しているが、標準の編集画面ではこれらのマーカは表示されておらず、作業者の選択操作によって表示されるようになっている(S9,S10参照)。これは、同一の位置に部位移動用マーカM、部位拡縮用マーカE及び部位回転用マーカRが重複して表示される場合があり(図6(a),図9(a),図11(a)参照)、全てのマーカを表示させると、却って操作点の表示が煩雑になり、操作がし難くなるからである。   The face image is displayed as a polygon model on the display screen 7a, and a part deformation marker H is displayed as an operation point for deforming the part shape on the surface shape (see FIG. 4A). In this embodiment, a part movement marker M, a part expansion / contraction marker E, and a part rotation marker R are prepared as operation points for deforming the part shape. However, these markers are displayed on the standard editing screen. It is displayed by the operator's selection operation (see S9 and S10). In this case, the part movement marker M, the part enlargement / reduction marker E, and the part rotation marker R may be displayed in duplicate in the same position (FIG. 6A, FIG. 9A, FIG. 11). This is because if all the markers are displayed, the operation point display becomes complicated and the operation becomes difficult.

作業者が入力装置6を操作して所望の部位変形用マーカH(i)(iは部位変形用マーカHのマーカ番号)を指定し、その部位変形用マーカH(i)を所望の位置に移動させる操作を行うと(S4:YES)、CPU2は、XYZ座標系におけるその部位変形用マーカH(i)の移動前の位置座標と移動後の位置座標を算出し、その算出結果から移動方向Nhiと移動量Dhiを算出する(S5)。更に、CPU2は、移動操作があった部位変形用マーカH(i)に連動対象として関連付けられている1又は2以上のボーンB(j)(jはボーン番号)を検索し、部位変形用マーカH(i)の移動内容とそのボーンB(j)に設定されている連動用のパラメータ(θbjhi,Kbjhi)とに基づいて各ボーンB(j)の移動後の位置座標を算出する(S6)。また、CPU2は、各ボーンB(j)に連動対象として関連付けられている複数のポリゴン頂点P(t)(tはポリゴン番号)の移動後の位置座標を算出する(S7)。ポリゴン頂点P(t)の移動後の位置座標もボーンB(j)の移動後の位置座標の算出と同様に、ボーンB(j)の移動内容と各ポリゴン頂点P(t)に設定されている連動用のパラメータ(θptbj,Kbjhi)とに基づいて算出される。 The operator operates the input device 6 to designate a desired part deformation marker H (i) (i is the marker number of the part deformation marker H), and places the part deformation marker H (i) at a desired position. When the movement operation is performed (S4: YES), the CPU 2 calculates the position coordinates before movement and the position coordinates after movement of the part deformation marker H (i) in the XYZ coordinate system, and the movement direction from the calculation result. N hi and movement amount D hi are calculated (S5). Further, the CPU 2 searches for one or more bones B (j) (j is a bone number) associated with the part deformation marker H (i) where the movement operation has been performed, and searches for the part deformation marker. Based on the movement contents of H (i) and the interlocking parameters (θ bjhi , K bjhi ) set for the bone B (j), the position coordinates after movement of each bone B (j) are calculated ( S6). Further, the CPU 2 calculates the position coordinates after the movement of a plurality of polygon vertices P (t) (t is a polygon number) associated with each bone B (j) as an interlocking target (S7). The position coordinates after movement of the polygon vertex P (t) are set to the movement contents of the bone B (j) and each polygon vertex P (t), similarly to the calculation of the position coordinates after movement of the bone B (j). It is calculated based on the interlocking parameters (θ ptbj , K bjhi ).

そして、CPU2は、部位変形用マーカH(i)と当該部位変形用マーカH(i)に連動する1又は2以上のボーンB(j)及び複数のポリゴン頂点P(t)の位置座標のデータを、算出した移動後の位置座標のデータに変化させるとともに、表示画面7aに表示された顔画像における表示位置を移動後の位置に変化させる(S8、図4(b)の例参照)。   Then, the CPU 2 stores position coordinate data of the part deformation marker H (i), one or more bones B (j) linked to the part deformation marker H (i), and a plurality of polygon vertices P (t). To the calculated position coordinate data after movement, and the display position in the face image displayed on the display screen 7a is changed to the position after movement (see the example of FIG. 4B).

続いて、CPU2は、入力装置6から編集作業終了の操作が入力されたか否かを判断し(S16)、編集作業終了の操作がなければ(S16:NO)、ステップS4に戻り、編集作業終了の操作があれば(S16:YES)、CPU2は、部位変形用マーカH(i)に対して行われた操作内容とその操作内容に基づくボーンB(j)及びポリゴン頂点P(t)の移動内容の演算結果を顔画像のデータとともに外部記憶装置5に記憶した後(S17)、編集処理を終了する。   Subsequently, the CPU 2 determines whether or not an editing operation end operation has been input from the input device 6 (S16). If there is no editing operation end operation (S16: NO), the CPU 2 returns to step S4 and ends the editing operation. If there is an operation (S16: YES), the CPU 2 moves the operation performed on the part deformation marker H (i) and the movement of the bone B (j) and the polygon vertex P (t) based on the operation content. After the content calculation result is stored in the external storage device 5 together with the face image data (S17), the editing process is terminated.

ステップS4で作業者が部位変形用マーカHの操作をせず(S4:NO)、入力装置6を操作して部位移動用マーカM、部位拡縮用マーカE及び部位回転用マーカRのいずれかを指定し、そのマーカの表示を指定すると(S9:YES)、CPU2は、表示画面7aに表示されている顔画像に指定されたマーカを表示させる(S10、図6(a),図9(a)、図11(a)の例参照)。   In step S4, the operator does not operate the part deformation marker H (S4: NO), and operates the input device 6 to select one of the part movement marker M, the part expansion / contraction marker E, and the part rotation marker R. When the designation is made and the display of the marker is designated (S9: YES), the CPU 2 displays the designated marker on the face image displayed on the display screen 7a (S10, FIG. 6 (a), FIG. 9 (a). ), See the example of FIG.

作業者が入力装置6を操作して所望の部位移動用マーカM、部位拡縮用マーカE又は部位回転用マーカRを指定し、そのマーカに対して所定の操作情報を入力すると(S11:YES)、CPU2は、指定されたマーカの設定されている部位に設けられている複数の部位変形用マーカH(i)に対して、入力装置6から入力された操作情報と各部位変形用マーカH(i)に設定されている連動用のパラメータに基づいてXYZ座標系における移動位置を算出し、その算出結果から移動方向と移動量を算出する(S12)。   When the operator operates the input device 6 to specify a desired part movement marker M, part expansion / contraction marker E, or part rotation marker R, and inputs predetermined operation information to the marker (S11: YES). The CPU 2 applies the operation information input from the input device 6 to each of the part deformation markers H (i) provided in the part where the designated marker is set and each part deformation marker H ( Based on the interlocking parameters set in i), the movement position in the XYZ coordinate system is calculated, and the movement direction and movement amount are calculated from the calculation result (S12).

例えば、作業者が部位移動用マーカMを表示させ、目の部位移動用マーカM(1)に対して移動操作を行うと、CPU2は、XYZ座標系におけるその部位移動用マーカM(1)の移動前の位置((Xm1,Ym1,Zm1)と移動後の位置(Xm1’,Ym1’,Zm1’)を算出し、その算出結果から移動方向θm1と移動量Dm1を算出する。そして、CPU2は、目に設定されている6つの部位変形用マーカH(i)(i=1〜6)の移動位置(Xhi’,Yhi’,Zhi’)及びこれらに直結されているボーンB(i)の移動位置(Xbi’,Ybi’,Zbi’)を算出する(図6,図7の例参照)。 For example, when the operator displays the part movement marker M and moves the eye part movement marker M (1), the CPU 2 moves the part movement marker M (1) in the XYZ coordinate system. The position before movement ((X m1 , Y m1 , Z m1 ) and the position after movement (X m1 ′, Y m1 ′, Z m1 ′) are calculated, and the movement direction θ m1 and the movement amount D m1 are calculated from the calculation results. Then, the CPU 2 calculates the movement positions (X hi ', Y hi ', Z hi ') of the six part deformation markers H (i) (i = 1 to 6) set in the eyes and these The movement position (X bi ′, Y bi ′, Z bi ′) of the bone B (i) directly connected to is calculated (see the examples of FIGS. 6 and 7).

また、作業者が部位拡縮用マーカEを表示させ、例えば、目の部位拡縮用マーカE(1)に対して拡大又は縮小の倍率xを入力すると、CPU2は、目に設定されている6つの部位変形用マーカH(i)(i=1〜6)に対して、それぞれ移動方向φhie1と移動距離L(i)’=Khie1×L(i)を算出する(図9,図10の例参照)。 Further, when the operator displays the part enlargement / reduction marker E and, for example, inputs an enlargement or reduction magnification x to the eye part enlargement / reduction marker E (1), the CPU 2 displays the six items set for the eyes. The movement direction φ hie1 and the movement distance L (i) ′ = K hie1 × L (i) are calculated for the part deformation markers H (i) (i = 1 to 6), respectively (FIGS. 9 and 10). See example).

また、作業者が部位回転用マーカRを表示させ、例えば、目の部位拡縮用マーカR(1)に対して回転操作を行うと、CPU2は、目に設定されている6つの部位変形用マーカH(i)(i=1〜6)に対してそれぞれ移動量Dy(i)=Fi(ψ)(i=1〜6)を算出する(図11,図12の例参照)。   Further, when the operator displays the part rotation marker R and, for example, performs a rotation operation on the eye part enlargement / reduction marker R (1), the CPU 2 displays the six part deformation markers set for the eyes. Movement amounts Dy (i) = Fi (ψ) (i = 1 to 6) are calculated for H (i) (i = 1 to 6), respectively (see the examples in FIGS. 11 and 12).

更に、CPU2は、移動した部位変形用マーカHに関連付けられている1又は2以上のボーンB(j)(jはボーンの番号)を検索し、部位変形用マーカHの移動内容とそのボーンB(j)に設定されている連動用のパラメータとに基づいて各ボーンB(j)の移動後の位置座標(Xbj’,Ybj’,Zbj’)を算出する(S13)。また、CPU2は、各ボーンB(j)に関連付けられている複数のポリゴン頂点P(k)(kはポリゴン頂点の番号)の移動後の位置座標(Xpk’,Ypk’,Zpk’)を算出する(S14)。 Further, the CPU 2 searches for one or more bones B (j) (j is the bone number) associated with the moved part deformation marker H, and the movement contents of the part deformation marker H and the bone B Based on the interlocking parameters set in (j), the position coordinates (X bj ', Y bj ', Z bj ') after movement of each bone B (j) are calculated (S13). Further, the CPU 2 moves the position coordinates (X pk ′, Y pk ′, Z pk ′) after movement of a plurality of polygon vertices P (k) (k is the number of the polygon vertices) associated with each bone B (j). ) Is calculated (S14).

そして、CPU2は、部位変形用マーカHと当該部位変形用マーカHに連動する1又は2以上のボーンB(j)及び複数のポリゴン頂点P(k)の位置座標のデータを、算出した移動後の位置座標のデータに変化させるとともに、表示画面7aに表示された顔画像における表示位置を移動後の位置座標に変化させる(S15、図6(b),図9(b),図11(b)の例参照)。   Then, the CPU 2 calculates the position coordinate data of the part deformation marker H, one or more bones B (j) and a plurality of polygon vertices P (k) linked to the part deformation marker H after the calculated movement. And the display position in the face image displayed on the display screen 7a is changed to the moved position coordinates (S15, FIG. 6B, FIG. 9B, FIG. 11B). ) Example).

続いて、CPU2は、入力装置6から編集作業終了の操作が入力されたか否かを判断し(S16)、編集作業終了の操作がなければ(S16:NO)、ステップS4に戻って上述した編集処理を行い、編集作業終了の操作があれば(S16:YES)、CPU2は、各マーカに対して行われた操作内容とその操作内容に基づくボーンB及びポリゴン頂点Pの移動内容の演算結果を顔の表面形状のデータとともに外部記憶装置5に記憶した後(S17)、編集処理を終了する。   Subsequently, the CPU 2 determines whether or not an editing operation end operation has been input from the input device 6 (S16). If there is no editing operation end operation (S16: NO), the CPU 2 returns to step S4 and performs the editing described above. If there is an operation for finishing the editing operation (S16: YES), the CPU 2 calculates the operation content performed on each marker and the calculation result of the movement content of the bone B and the polygon vertex P based on the operation content. After storing the facial surface shape data in the external storage device 5 (S17), the editing process is terminated.

なお、アニメーション編集は、作業者が修正したい動きの部分で指定したコマの顔画像に対して上述した顔画像編集における編集処理を行うことになるから、指定したコマの顔画像に対する編集作業は基本的に顔画像編集の顔画像に対する編集作業と同じである。   In animation editing, the face image of the frame specified by the movement part that the operator wants to correct is subjected to the editing processing in the face image editing described above. In particular, it is the same as the editing operation for the face image in the face image editing.

従って、図14に示すフローチャートにおいて、作業者が修正したい動きの部分で指定したコマの顔画像の編集作業が終了した場合、その編集内容を外部記憶装置5に記憶する(S16)。なお、他に修正したいコマがある場合には、そのコマの顔画像の編集をするために、ステップS1に戻る内容に修正すれば、アニメーション編集における編集処理を示すフローチャートにすることができる。   Therefore, in the flowchart shown in FIG. 14, when the editing operation of the face image of the frame designated by the movement portion that the operator wants to correct is completed, the editing content is stored in the external storage device 5 (S16). If there is another frame to be corrected, if the content is returned to step S1 in order to edit the face image of the frame, a flowchart showing editing processing in animation editing can be obtained.

以上のように、本実施形態によれば、従来の顔画像に設けられたボーンBとは別に、1又は2以上のボーンBを移動させるためのマーカH,M,E,Rを設け、それらのマーカH,M,E,Rに対する操作に基づいて1又は2以上のボーンBを移動させるようにしているので、ボーンBを変位させて顔の表面形状を変化させる編集作業が容易になる。   As described above, according to the present embodiment, apart from the bone B provided in the conventional face image, the markers H, M, E, and R for moving one or more bones B are provided. Since one or two or more bones B are moved based on the operations on the markers H, M, E, and R, the editing work for changing the surface shape of the face by displacing the bones B is facilitated.

特に、部位毎に、各部位に設定されている複数のボーンBを纏めて同じ方向に移動させる部位移動用マーカMや、複数のボーンBを纏めて放射状に移動させる部位拡縮用マーカEや、複数のボーンBを纏めて同じ方向に回転移動させる部位回転用マーカRを設けているので、これらのマーカM,E,Rを操作することにより顔面における部位の位置や大きさや向きなどを簡単に変更することができる。   In particular, for each part, a part moving marker M for collectively moving a plurality of bones B set in each part in the same direction, a part expanding / contracting marker E for collectively moving a plurality of bones B, Since the part rotation marker R that rotates and moves the plurality of bones B in the same direction is provided, by operating these markers M, E, R, the position, size, direction, etc. of the part on the face can be easily determined. Can be changed.

また、各部位に設定された部位変形用マーカHと近接若しくは隣接している部位に設定された部位変形用マーカH(例えば、目に設定された部位変形用マーカHと眉毛に設定された部位変形用マーカHなど)を連携させ、一方の部位変形用マーカHを操作して一方の部位を変形させたとき、他の部位変形用マーカHも連動して移動させるようにしているので、一方の部位の変形の影響を他の部位の変形にも好適に反映することができる。   Further, a part deformation marker H set in a part adjacent to or adjacent to a part deformation marker H set in each part (for example, a part deformation marker H set in eyes and a part set in eyebrows) Deformation marker H, etc.) are linked together, and when one part deformation marker H is operated to deform one part, the other part deformation marker H is also moved in conjunction with it. The influence of the deformation of the part can be suitably reflected in the deformation of other parts.

また、標準画像編集モードでゲームキャラクタの標準の顔画像を変形させる編集を行うと、自動的にその編集結果がアニメーションデータに反映され、アニメーションデータを再生すると、編集後の顔画像に対して所定の動作をさせることができる。従って、編集後の顔画像に対する動きが不自然であったり、違和感があったりして部分的に修正が必要な場合は別として、基本的に標準の顔画像を用いて作成されているアニメーションデータに対して改めて標準画像編集と同様の編集を行う必要がないので、アニメーションデータに対する編集効率が向上する。   In addition, when editing is performed to deform the game character's standard face image in the standard image editing mode, the editing result is automatically reflected in the animation data. When the animation data is played back, the edited face image is predetermined. Can be operated. Therefore, animation data that is basically created using standard face images, except for cases where the movement of the edited face image is unnatural or uncomfortable and requires partial correction. However, since it is not necessary to perform editing similar to the standard image editing, the editing efficiency for animation data is improved.

編集後の顔画像に対するアニメーションに対して部分的に編集をする場合でも、標準画像編集と同様に部位変形用マーカAH、部位移動用マーカAM、部位拡縮マーカAE及び部位回転用マーカARの操作によって所望のコマの顔の表面形状を簡単に変形できるので、アニメーションデータの編集作業を大幅に低減することができる。   Even in the case of partially editing the animation of the face image after editing, the operation of the part deformation marker AH, the part movement marker AM, the part expansion / contraction marker AE, and the part rotation marker AR is performed in the same manner as in the standard image editing. Since the surface shape of the face of a desired frame can be easily deformed, the work of editing animation data can be greatly reduced.

なお、上記実施形態では、顔の目の部位を例に本発明に係る顔形状編集方法を説明したが、目以外の口や鼻などの部位や顔の輪郭や髪形や髭などについても同様の方法が適用できることは言うまでもない。また、人の顔の表面形状だけでなく、動物や他の生き物の顔の表面形状の編集についても適用することができる。   In the above-described embodiment, the face shape editing method according to the present invention has been described by taking the part of the face eye as an example. It goes without saying that the method is applicable. Further, it can be applied not only to the surface shape of a human face but also to the surface shape of an animal or other creature.

また、上記実施形態では、主としてゲームキャラクタの顔画像を作成する際の標準の顔画像の編集やアニメーション画像の編集をするための顔画像編集装置として説明したが、本発明に係る標準顔編集用プログラムをゲームソフトに搭載すれば、ゲームソフトに設けられたキャラクタの標準の顔画像をプレイヤに好みの顔に編集させることができる。すなわち、ゲームソフトにプレイヤによるキャラクタの顔画像の編集機能を持たせることができる。   In the above-described embodiment, the face image editing apparatus for editing a standard face image or an animation image mainly when creating a face image of a game character has been described. If the program is installed in the game software, the player can edit the standard face image of the character provided in the game software into a favorite face. That is, the game software can have a function of editing the face image of the character by the player.

本発明に係る標準顔編集用プログラムでは、従来のボーンとは別に、そのボーンを個々に若しくは複数個を纏めて一定の纏まりを持った移動させるための部位変形用マーカH、部位移動用マーカM、部位拡縮用マーカE及び部位回転用マーカRを設けているので、顔画像の編集経験の少ないプレイヤであっても比較的容易にキャラクタの顔画像を所望の形状に編集することができる。   In the standard face editing program according to the present invention, apart from the conventional bone, a part deformation marker H and a part movement marker M for moving the bones individually or collectively to move them in a certain group. Since the part enlargement / reduction marker E and the part rotation marker R are provided, the face image of the character can be edited to a desired shape relatively easily even by a player having little experience in editing the face image.

また、プレイヤがキャラクタの標準の顔画像に対して好みの修正をした場合、修正後の顔画像のデータ(移動させたボーンBやポリゴン頂点Pの位置座標のデータなど)がアニメーションデータに反映され、そのアニメーションデータを再生すると、修正後の顔画像に対して所定の動きをさせることができるので、プレイヤはアニメーションデータを修正することなく、顔画像を修正したキャラクタをゲーム空間に登場させてゲームを楽しむことができる。   In addition, when the player makes a desired correction to the standard face image of the character, the corrected face image data (such as the position coordinates of the moved bone B and polygon vertex P) is reflected in the animation data. When the animation data is reproduced, the corrected face image can be moved in a predetermined manner, so that the player can make the character with the corrected face image appear in the game space without correcting the animation data. Can enjoy.

すなわち、ゲーム画面にはゲーム装置内のRAMからアニメーションデータとして作成されている各コマの画像が所定の周期でVRAMに読み出されてキャラクタの動画が再生されるが、アニメーションデータは、標準サイズの画像を元に作成されているので、例えば、キャラクタがまばたきをするアニメーションデータを再生した場合は、その顔の画像は、標準の顔画像の上瞼を上下に動かした画像となる。   In other words, on the game screen, images of each frame created as animation data from the RAM in the game device are read out to the VRAM at a predetermined cycle and a moving image of the character is reproduced. Since it is created based on an image, for example, when animation data in which a character blinks is reproduced, the face image is an image obtained by moving the upper face of a standard face image up and down.

しかしながら、例えば、プレイヤが部位拡縮用マーカEを用いてキャラクタの標準の顔画像の目のサイズを倍率Mで拡大する編集をした場合、上述したように、編集後の顔画像がアニメーションの1コマ目の顔画像に変更され、目に設定された部位拡縮用マーカEに入力された倍率Mはコマ間のボーンBの移動量に乗じられるように設定されているので、キャラクタのまばたきをする顔のアニメーションデータとして作成されている各コマの顔画像をVRAMに読み出す処理を行うと、コマ間でのキャラクタの目の上瞼の移動量は標準の移動量のM倍の移動量となるから、再生されるアニメーション画像は、編集後の顔画像の上瞼を上下に動かした画像となる。   However, for example, when the player edits by enlarging the eye size of the standard face image of the character with the magnification M using the part enlargement / reduction marker E, as described above, the edited face image is one frame of animation. Since the magnification M input to the part enlargement / reduction marker E set to the eye is set to be multiplied by the amount of movement of the bone B between frames, the face blinks the character. When the process of reading out the face image of each frame created as animation data to the VRAM is performed, the amount of movement of the upper eyelid of the character between frames is M times the amount of movement of the standard movement amount. The reproduced animation image is an image obtained by moving the upper face of the face image after editing up and down.

このように、VRAMにアニメーションデータの各コマの顔画像を読み出すときに、目の上瞼が動く量を目に設定されている部位拡縮用マーカEに入力された倍率Mで変化させることで、プレイヤが編集したキャラクタの顔画像についてまばたきをさせたアニメーション画像をゲーム画面に表示することができる。従って、例えば、編集したキャラクタの顔画像について編集前の顔画像と同様の上瞼の動きをさせた場合には、上瞼が下瞼に完全に閉じないという不都合が生じる場合があるが、上記のようにアニメーションデータの再生時に顔画像編集で部位拡縮用マーカEに入力された倍率Mが反映されるので、プレイヤは上記の不都合を感じることなく顔画像を修正したキャラクタでゲームを楽しむことができる。   In this way, when the face image of each frame of animation data is read into the VRAM, the amount by which the upper eyelid moves is changed by the magnification M input to the part enlargement / reduction marker E set for the eyes, An animation image obtained by blinking the face image of the character edited by the player can be displayed on the game screen. Therefore, for example, if the face image of the edited character is moved in the same manner as the face image before editing, there may be a problem that the upper eyelid does not completely close to the lower eyelid. As described above, when the animation data is reproduced, the magnification M input to the part enlargement / reduction marker E in the face image editing is reflected, so that the player can enjoy the game with the character whose face image is corrected without feeling the inconvenience described above. it can.

なお、上記の例では目の部位について説明したが、口や鼻などの他の部位についても同様である。また、部位拡縮用マーカEだけでなく、部位移動用マーカMや部位回転用マーカRについても顔画像編集で入力された操作情報をアニメーションデータの再生時に反映して各コマの顔画像を変化させることで、上記の効果を奏することができる。   In the above example, the eye part has been described, but the same applies to other parts such as the mouth and nose. Further, not only the part enlargement / reduction marker E but also the part movement marker M and the part rotation marker R reflect the operation information input in the face image editing when reproducing the animation data, and change the face image of each frame. Thus, the above effects can be achieved.

また、上記実施形態では、ポリゴンモデルによって顔の表面形状が表現される場合について説明したが、本発明は、顔の表面形状が多数の点で表現され、それらの点の位置を移動させて表面形状を変形させる編集方法に広く適用することができる。例えば、本発明は、NURBS(Non-Uniform Rational B-Spline)曲線によって表現させる表面形状の形状編集にも適用することができる。   In the above embodiment, the case where the surface shape of the face is represented by the polygon model has been described. However, the present invention expresses the surface shape of the face by a large number of points, and moves the positions of these points to the surface. The present invention can be widely applied to editing methods for deforming shapes. For example, the present invention can be applied to shape editing of a surface shape expressed by a NURBS (Non-Uniform Rational B-Spline) curve.

また、上記実施形態では、ゲームソフトに登場する人型のキャラクタの顔の表面形状の編集方法について説明したが、本発明がゲームソフトに登場するキャラクタの顔画像の編集に限定されないことは言うまでもない。   Moreover, although the said embodiment demonstrated the edit method of the surface shape of the face of the humanoid character which appears in game software, it cannot be overemphasized that this invention is not limited to the edit of the face image of the character which appears in game software. .

1 顔画像編集装置
2 CPU
3 ROM
4 RAM
5 外部記憶装置
6 入力装置
7 表示装置
7a 表示画面
P ポリゴン頂点(多角形の頂点)
B ボーン(制御点)
AB アニメーション画像におけるボーン(第2の制御点)
H 標準顔画像における部位変形用マーカ(第1の操作点)
AH アニメーション画像における部位変形用マーカ(第3の操作点)
M 標準顔画像における部位移動用マーカ(第2の操作点)
E 標準顔画像における部位拡縮用マーカ(第2の操作点)
R 標準顔画像における部位回転用マーカ(第2の操作点)
1 face image editing device 2 CPU
3 ROM
4 RAM
5 External storage device 6 Input device 7 Display device 7a Display screen P Polygon vertex (vertex of polygon)
B bone (control point)
AB Bone in animation image (second control point)
H Marker for deforming part in standard face image (first operation point)
Marker for part deformation in AH animation image (third operation point)
M Marker for moving part in standard face image (second operation point)
E Marker for part enlargement / reduction in standard face image (second operation point)
R Marker for part rotation in standard face image (second operation point)

Claims (11)

コンピュータを、
記憶部から、顔の表面形状が多数の多角形の集合で表現され、顔の各部位に前記多角形の頂点の位置を制御する1又は2以上の制御点とその制御点を直接的にあるいは間接的に移動させるための1又は2以上の第1の操作点が設定された標準の顔画像を読み出して表示部に表示させる第1の顔画像表示制御手段と、
操作部から前記表示部に表示された顔画像の前記第1の操作点に対して当該第1の操作点の移動に関する操作情報が入力されると、その操作情報に基づき当該第1の操作点の移動位置を含む第1の移動情報を算出する第1の移動情報算出手段と、
前記表示部に表示された前記標準の顔画像において、前記操作情報が入力された第1の操作点を前記第1の移動情報に含まれる移動位置に移動させる第1の操作点移動手段と、
前記第1の操作点を移動させる場合、当該第1の操作点の移動に連動させる制御点として予め設定された1又は2以上の前記制御点について、前記第1の操作点に対して算出される前記第1の移動情報と各制御点に予め設定されている連動条件とに基づき、各制御点の移動位置を含む第2の移動情報をそれぞれ算出する第2の移動情報算出手段と、
前記制御点を移動させる場合、当該制御点の移動に連動させる多角形の頂点として予め設定された1又は2以上の多角形の頂点について、前記制御点に対して算出される前記第2の移動情報と各多角形の頂点に予め設定されている連動条件とに基づき、各多角形の頂点の移動位置を含む第3の移動情報をそれぞれ算出する第3の移動情報算出手段と、
前記表示部に表示された前記標準の顔画像において、前記第3の移動情報が算出される1又は2以上の多角形の頂点を当該第3の移動情報に含まれる移動位置に移動させて前記顔画像を変形させる第1の顔画像変形手段と、
して機能させることを特徴とする、顔画像編集用プログラム。
Computer
From the storage unit, the surface shape of the face is expressed as a set of a large number of polygons, and one or more control points for controlling the positions of the vertices of the polygons in each part of the face and the control points directly or First face image display control means for reading a standard face image in which one or more first operation points for indirect movement are set and displaying them on a display unit;
When operation information related to movement of the first operation point is input from the operation unit to the first operation point of the face image displayed on the display unit, the first operation point is based on the operation information. First movement information calculation means for calculating first movement information including the movement position of
A first operation point moving means for moving the first operation point input with the operation information to a movement position included in the first movement information in the standard face image displayed on the display unit;
When the first operation point is moved, one or more control points set in advance as control points to be interlocked with the movement of the first operation point are calculated with respect to the first operation point. Second movement information calculation means for calculating second movement information including the movement position of each control point based on the first movement information and the interlocking condition preset for each control point;
When moving the control point, the second movement calculated for the control point with respect to one or more polygon vertices preset as polygon vertices linked to the movement of the control point Third movement information calculation means for calculating third movement information including the movement position of the vertex of each polygon based on the information and the interlocking condition set in advance at the vertex of each polygon;
In the standard face image displayed on the display unit, the vertex of one or more polygons for which the third movement information is calculated is moved to a movement position included in the third movement information, and the First face image deformation means for deforming the face image;
A program for editing a face image, characterized in that the program is made to function.
前記標準の顔画像に設定された複数の前記第1の操作点には、一方が移動すると、その移動に他方が連動するように互いに関連付けられた第1の操作点が含まれ、
前記第1の移動情報算出手段は、前記操作部からの操作情報に基づいて移動させる第1の操作点に連動させる他の第1の操作点についても、当該第1の操作点に対して算出する前記第1の移動情報と当該他の第1の操作点に予め設定されている連動条件とに基づき、当該他の第1の操作点の移動位置を含む第1の移動情報を算出し、
前記第1の操作点移動手段は、前記表示部に表示された前記標準の顔画像において、前記第1の移動情報が算出された前記他の第1の操作点を当該第1の移動情報に含まれる移動位置に移動させる、請求項1に記載の顔画像編集用プログラム。
The plurality of first operation points set in the standard face image include first operation points associated with each other so that when one moves, the other moves in conjunction with the movement,
The first movement information calculation means also calculates another first operation point linked to the first operation point to be moved based on the operation information from the operation unit, with respect to the first operation point. Calculating the first movement information including the movement position of the other first operation point based on the first movement information to be performed and the interlocking condition set in advance for the other first operation point;
The first operation point moving means uses the other first operation point for which the first movement information is calculated as the first movement information in the standard face image displayed on the display unit. The face image editing program according to claim 1, wherein the program is moved to an included movement position.
前記顔画像には、部位毎に、前記第1の操作点を移動させるための1又は2以上の第2の操作点が更に設定されており、
前記第1の移動情報算出手段は、前記操作部から前記第2の操作点に対する操作情報が入力されると、当該第2の操作点により移動が制御される1又は2以上の前記第1の操作点について、前記操作情報と各第1の操作点に予め設定されている移動条件とに基づき、前記第1の移動情報をそれぞれ算出し、
前記第1の操作点移動手段は、前記表示部に表示された前記標準の顔画像において、前記操作情報が入力された前記第2の操作点により移動が制御される前記第1の操作点を前記第1の移動情報算出手段で算出される前記第1の移動情報に含まれる移動位置に移動させる、
請求項1又は2に記載の顔画像編集用プログラム。
In the face image, one or more second operation points for moving the first operation point are further set for each part,
When the operation information for the second operation point is input from the operation unit, the first movement information calculation unit is configured to control the movement by the second operation point. For the operation point, the first movement information is calculated based on the operation information and the movement condition set in advance for each first operation point,
The first operation point moving means is configured to select the first operation point whose movement is controlled by the second operation point to which the operation information is input in the standard face image displayed on the display unit. Moving to a movement position included in the first movement information calculated by the first movement information calculation means;
The face image editing program according to claim 1 or 2.
前記第2の操作点は、当該第2の操作点が設定された部位を移動させるための部位移動用操作点であり、
前記第1の移動情報算出手段は、
前記操作部から前記部位移動用操作点に対して当該部位移動用操作点を移動させる操作情報が入力されたときには、当該部位に設定されている1又は2以上の前記第1の操作点について、前記部位移動用操作点の移動方向及び移動量に基づき各第1の操作点を標準の位置から前記部位移動用操作点と同一の方向に同一の移動量だけ移動させた移動位置をそれぞれ算出する、
請求項3に記載の顔画像編集用プログラム。
The second operation point is a part moving operation point for moving the part where the second operation point is set,
The first movement information calculation means includes:
When operation information for moving the part movement operation point with respect to the part movement operation point is input from the operation unit, the one or more first operation points set in the part are: Based on the moving direction and moving amount of the part moving operation point, each moving position is calculated by moving the first operating point from the standard position in the same direction as the part moving operating point by the same moving amount. ,
The face image editing program according to claim 3.
前記第2の操作点は、当該第2の操作点が設定された部位の大きさを変更するための部位拡縮用操作点であり、
前記第1の移動情報算出手段は、
前記操作部から前記部位拡縮用操作点に対して当該部位拡縮用操作点が設定された部位を拡大又は縮小させる倍率の操作情報が入力されたときには、当該部位に設定されている1又は2以上の前記第1の操作点について、各第1の操作点と前記部位拡縮用操作点を結ぶ線上で各第1の操作点の前記部位拡縮用操作点からの標準の距離を前記倍率で変化させた距離にある移動位置をそれぞれ算出する、
請求項3に記載の顔画像編集用プログラム。
The second operation point is a part expansion / contraction operation point for changing the size of the part where the second operation point is set,
The first movement information calculation means includes:
When operation information of a magnification for enlarging or reducing a part where the part enlargement / reduction operation point is set with respect to the part enlargement / reduction operation point is input from the operation unit, one or more set for the part With respect to the first operation point, a standard distance from the part expansion / contraction operation point of each first operation point on the line connecting each first operation point and the part expansion / contraction operation point is changed by the magnification. Each moving position at a certain distance is calculated,
The face image editing program according to claim 3.
前記第2の操作点は、当該第2の操作点が設定された部位を回転させる部位回転用操作点であり、
前記第1の移動位置算出手段は、
前記操作部から前記部位回転用操作点に対して当該部位回転用操作点を回転させる操作情報が入力されたときには、当該部位に設定されている1又は2以上の前記第1の操作点について、前記部位回転用操作点の回転方向及び回転量と各第1の操作点に予め設定された移動条件に基づき、移動位置をそれぞれ算出する、
請求項3に記載の顔画像編集用プログラム。
The second operation point is a part rotation operation point for rotating the part where the second operation point is set,
The first movement position calculation means includes:
When operation information for rotating the part rotation operation point with respect to the part rotation operation point is input from the operation unit, the one or more first operation points set in the part are: Based on the rotation direction and rotation amount of the operation point for part rotation and the movement condition set in advance for each first operation point, the movement position is calculated respectively.
The face image editing program according to claim 3.
前記記憶部には、更に前記標準の顔画像の所定の部位を変化させた複数コマ分の顔画像を含み、前記標準の顔に所定の表情をさせるアニメーション編集用の顔画像が記憶されており、
前記コンピュータを、
前記標準の顔画像に対して前記制御点及びその制御点により位置が制御される前記多角形の頂点を移動させて顔の表面形状を変形させる編集が行われると、編集後の顔画像を前記アニメーション編集用の顔画像に変更する画像変更手段と、
して更に機能させることを特徴とする、請求項3乃至6のいずれかに記載の顔画像編集用プログラム。
The storage unit further includes a face image for animation editing including a face image for a plurality of frames obtained by changing a predetermined part of the standard face image, and causing the standard face to have a predetermined expression. ,
The computer,
When editing is performed to move the control point and the vertex of the polygon whose position is controlled by the control point with respect to the standard face image to deform the surface shape of the face, the edited face image is Image changing means for changing to a face image for animation editing;
The face image editing program according to any one of claims 3 to 6, wherein the program is further functioned.
前記アニメーション編集用の各コマの顔画像には、前記第1の操作点と同一の機能を果たす第3の操作点と前記制御点と同一の機能を果たす第2の制御点が設定されており、
前記コンピュータを、
前記記憶部から、前記アニメーション編集用の顔画像のうち前記操作部で指定されたコマの顔画像を読み出して前記表示部に表示させる第2の顔画像表示制御手段と、
前記操作部から前記表示部に表示された顔画像の前記第3の操作点に対して当該第3の操作点の移動に関する操作情報が入力されると、その操作情報に基づき当該第3の操作点の移動位置を含む第4の移動情報を算出する第4の移動情報算出手段と、
前記表示部に表示された前記顔画像において、前記操作情報が入力された第3の操作点を前記第3の移動情報に含まれる移動位置に移動させる第2の操作点移動手段と、
前記第3の操作点を移動させる場合、当該第3の操作点の移動に連動させる制御点として予め設定された1又は2以上の前記第2の制御点について、前記第3の操作点に対して算出される前記第4の移動情報と各第2の制御点に予め設定されている連動条件とに基づき、各第2の制御点の移動位置を含む第5の移動情報をそれぞれ算出する第5の移動情報算出手段と、
前記第2の制御点を移動させる場合、当該第2の制御点の移動に連動させる多角形の頂点として予め設定された1又は2以上の多角形の頂点について、前記第2の制御点に対して算出される前記第5の移動情報と各多角形の頂点に予め設定されている連動条件とに基づき、各多角形の頂点の移動位置を含む第6の移動情報をそれぞれ算出する第6の移動情報算出手段と、
前記表示部に表示された顔画像において、前記第6の移動情報が算出される1又は2以上の多角形の頂点を当該第6の移動情報に含まれる移動位置に移動させて前記顔画像を変形させる第2の顔画像変形手段と、
して更に機能させる、請求項7に記載の顔画像編集用プログラム。
In the face image of each frame for animation editing, a third operation point that performs the same function as the first operation point and a second control point that performs the same function as the control point are set. ,
The computer,
Second face image display control means for reading out the face image of the frame designated by the operation unit from the storage unit and displaying it on the display unit from the storage unit;
When operation information related to the movement of the third operation point is input from the operation unit to the third operation point of the face image displayed on the display unit, the third operation is performed based on the operation information. Fourth movement information calculation means for calculating fourth movement information including the movement position of the point;
A second operation point moving means for moving a third operation point to which the operation information is input to a movement position included in the third movement information in the face image displayed on the display unit;
When moving the third operation point, with respect to the third operation point, one or more second control points set in advance as control points to be interlocked with the movement of the third operation point. The fifth movement information including the movement position of each second control point is calculated based on the fourth movement information calculated in this way and the interlocking condition set in advance for each second control point. 5 movement information calculation means;
When moving the second control point, for one or more polygon vertices preset as polygon vertices linked to the movement of the second control point, with respect to the second control point The sixth movement information including the movement positions of the vertices of each polygon is calculated based on the fifth movement information calculated in the above and the interlocking conditions set in advance at the vertices of each polygon. Movement information calculation means;
In the face image displayed on the display unit, the vertex image of one or more polygons for which the sixth movement information is calculated is moved to a movement position included in the sixth movement information, and the face image is moved. Second face image deformation means for deforming;
The face image editing program according to claim 7, further causing the program to further function.
前記アニメーション編集用の各コマの顔画像には、部位毎に、前記第2の操作点と同一の機能を果たす1又は2以上の第4の操作点が設定されており、
前記第4の操作点の数は、前記顔画像編集用の顔画像に設定されている前記第2の操作点の数よりも少なく設定されている、請求項8に記載の顔画像編集用プログラム。
In the face image of each frame for animation editing, one or more fourth operation points that perform the same function as the second operation point are set for each part,
9. The face image editing program according to claim 8, wherein the number of the fourth operation points is set to be smaller than the number of the second operation points set in the face image editing face image. .
請求項1乃至9のいずれかに記載の顔画像編集用プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the face image editing program according to claim 1 is recorded. 請求項1乃至9のいずれかに記載の顔画像編集用プログラムを記録したプログラム記憶部と、
前記プログラム記憶部に記憶された顔画像編集用プログラムを実行するコンピュータと、
を備えた顔画像編集システム。
A program storage unit that records the face image editing program according to any one of claims 1 to 9,
A computer for executing a face image editing program stored in the program storage unit;
A face image editing system.
JP2010181712A 2010-08-16 2010-08-16 Facial image editing program, recording medium recording the facial image editing program, and facial image editing system Active JP5620743B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010181712A JP5620743B2 (en) 2010-08-16 2010-08-16 Facial image editing program, recording medium recording the facial image editing program, and facial image editing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010181712A JP5620743B2 (en) 2010-08-16 2010-08-16 Facial image editing program, recording medium recording the facial image editing program, and facial image editing system

Publications (2)

Publication Number Publication Date
JP2012043057A JP2012043057A (en) 2012-03-01
JP5620743B2 true JP5620743B2 (en) 2014-11-05

Family

ID=45899319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010181712A Active JP5620743B2 (en) 2010-08-16 2010-08-16 Facial image editing program, recording medium recording the facial image editing program, and facial image editing system

Country Status (1)

Country Link
JP (1) JP5620743B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5856552B2 (en) * 2012-09-26 2016-02-09 株式会社ユニバーサルエンターテインメント 2D image generation program, recording medium on which 2D image generation program is recorded, 2D image generation system, and game machine including pachinko gaming machine, slot machine, or gaming machine
CN107657651B (en) * 2017-08-28 2019-06-07 腾讯科技(上海)有限公司 Expression animation generation method and device, storage medium and electronic device
CN110111417B (en) * 2019-05-15 2021-04-27 浙江商汤科技开发有限公司 Method, device and equipment for generating three-dimensional local human body model
CN110930298A (en) * 2019-11-29 2020-03-27 北京市商汤科技开发有限公司 Image processing method and apparatus, image processing device, and storage medium
CN115578493B (en) * 2022-10-20 2023-05-30 武汉两点十分文化传播有限公司 Maya expression coding method and system thereof
CN116485958B (en) * 2023-03-17 2024-02-06 北京优酷科技有限公司 Method and device for repairing action file and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3551538B2 (en) * 1995-04-27 2004-08-11 株式会社日立製作所 Method and apparatus for creating a three-dimensional model
JP4318825B2 (en) * 2000-02-15 2009-08-26 シャープ株式会社 Image processing apparatus and image processing method
JP4567027B2 (en) * 2007-06-06 2010-10-20 株式会社コナミデジタルエンタテインメント Image processing apparatus, image processing method, and program
GB2450757A (en) * 2007-07-06 2009-01-07 Sony Comp Entertainment Europe Avatar customisation, transmission and reception
KR100901274B1 (en) * 2007-11-22 2009-06-09 한국전자통신연구원 A character animation system and its method
JP4739430B2 (en) * 2008-10-17 2011-08-03 株式会社スクウェア・エニックス 3D design support device and program

Also Published As

Publication number Publication date
JP2012043057A (en) 2012-03-01

Similar Documents

Publication Publication Date Title
US8139068B2 (en) Three-dimensional animation of soft tissue of characters using controls associated with a surface mesh
JP5620743B2 (en) Facial image editing program, recording medium recording the facial image editing program, and facial image editing system
JP7126000B2 (en) Generating method, apparatus, and device for three-dimensional partial human body model
JP6301590B2 (en) Design of 3D modeling objects
JPWO2007013296A1 (en) Loop simulation apparatus and method and program thereof
US20090251462A1 (en) System and method for mesh distance based geometry deformation
US20040263518A1 (en) Defrobulated angles for character joint representation
US11948240B2 (en) Systems and methods for computer animation using an order of operations deformation engine
JP5920858B1 (en) Program, information processing apparatus, depth definition method, and recording medium
JP4291323B2 (en) Knit design method and apparatus
JP4357155B2 (en) Animation image generation program
US9928664B2 (en) Image processing device, image processing method and non-transitory computer-readable recording medium
JPH08297751A (en) Method and device for three-dimensional model generation
JP2001067491A (en) Method and device for image display using redivided polygon
JP5843679B2 (en) Image reproduction program and game system
JP2017199284A (en) Program, information processor, influence degree derivation method, image generation method and recording medium
KR102506506B1 (en) Method for generating facial expression and three dimensional graphic interface device using the same
JP4287479B2 (en) Image generating apparatus, image generating method, and program
JP4450047B2 (en) Display object generation method in information processing apparatus, program for controlling execution thereof, and recording medium storing the program
US10643365B1 (en) Deformation mesh control for a computer animated artwork
Skaria et al. Modeling subdivision control meshes for creating cartoon faces
US8379030B1 (en) Computer graphics variable transformation interface
Yli-Pentti On production of 3D character models for games
GB2422757A (en) Time-dependent animation of a 3D object
JP3620658B2 (en) Mapping processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130812

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140512

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140610

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140919

R150 Certificate of patent or registration of utility model

Ref document number: 5620743

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S802 Written request for registration of partial abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311802

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250