JP4839760B2 - Image generation device, image generation method, etc. - Google Patents

Image generation device, image generation method, etc. Download PDF

Info

Publication number
JP4839760B2
JP4839760B2 JP2005282189A JP2005282189A JP4839760B2 JP 4839760 B2 JP4839760 B2 JP 4839760B2 JP 2005282189 A JP2005282189 A JP 2005282189A JP 2005282189 A JP2005282189 A JP 2005282189A JP 4839760 B2 JP4839760 B2 JP 4839760B2
Authority
JP
Japan
Prior art keywords
highlight
light source
image generation
dimensional image
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005282189A
Other languages
Japanese (ja)
Other versions
JP2007094680A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2005282189A priority Critical patent/JP4839760B2/en
Publication of JP2007094680A publication Critical patent/JP2007094680A/en
Application granted granted Critical
Publication of JP4839760B2 publication Critical patent/JP4839760B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、仮想空間における物体の形状データに基づいて、当該物体の2次元画像を生成する画像生成装置、画像生成方法等の技術分野に関する。 The present invention relates to a technical field such as an image generation apparatus and an image generation method for generating a two-dimensional image of an object based on shape data of the object in a virtual space.

従来、コンピュータグラフィックスにより、仮想空間における物体に対して陰影付け(シェーディング)をして2次元画像を生成する場合には、オペレータが光源データを設定し、画像生成装置がこの設定に基づいて2次元画像を生成して画面上に表示する。その後、オペレータが画面上に表示された結果を見ながら光源の位置、角度、光強度等のパラメータや物体の色、材質等のパラメータを調整することにより、オペレータが意図した陰影を有する画像に近づけていく方法がとられている。   Conventionally, when a two-dimensional image is generated by shading (shading) an object in a virtual space by computer graphics, the operator sets light source data, and the image generation apparatus 2 sets the light source data based on this setting. Generate a dimensional image and display it on the screen. After that, the operator adjusts parameters such as the position, angle, and light intensity of the light source and parameters such as the color and material of the object while observing the result displayed on the screen, so that the operator approaches the image having the shading intended by the operator. The way to go is taken.

ところが、この様な方法は、光源、物体等のパラメータを調節することにより、2次元画像に施される陰影を間接的に指定するものであるため、試行錯誤を繰り返しながら意図した画像に近づけていく作業が必要となり、オペレータの作業負担が過大となるとともに、意図した画像を生成することが容易ではないという問題があった。   However, such a method indirectly specifies a shadow to be applied to a two-dimensional image by adjusting parameters of a light source, an object, etc., so that it approaches an intended image while repeating trial and error. This requires a lot of work, which increases the burden on the operator and makes it difficult to generate an intended image.

かかる問題に対して、例えば、特許文献1に記載のコンピュータグラフィックスシステムにおいては、画面上に表示された2次元画像に対し、明るさを最も強くしたいハイライト位置、明るさ等をオペレータが設定すると、シェーディング方程式を逆に計算することにより光源の位置等を設定する。そして、このようにして変更された光源データを用いて物体の新たな2次元画像を生成している。   To solve this problem, for example, in the computer graphics system described in Patent Document 1, the operator sets the highlight position, brightness, etc., for which the brightness is to be maximized for the two-dimensional image displayed on the screen. Then, the position of the light source is set by calculating the shading equation in reverse. Then, a new two-dimensional image of the object is generated using the light source data thus changed.

この方法によれば、指定されたハイライト位置の明るさを最も大きくした2次元画像を生成することができるようになっている。
特開平7−129795号公報
According to this method, a two-dimensional image in which the brightness at the designated highlight position is maximized can be generated.
Japanese Patent Laid-Open No. 7-129795

しかしながら、上述した特許文献1の方法は、物体上におけるハイライト分布中心位置を指定できる点でオペレータの作業負担は軽減されるものの、ハイライト反射効果によって2次元画像にどのような陰影が施されるか(例えば、ハイライトの大きさ、範囲、色の濃淡、輪郭のぼかし具合等)は、実際に試してみなければ分からない状況であり、結局はオペレータが試行錯誤を繰り返しながら意図した画像に近づけていく作業が必要となるという問題がある。   However, although the method of Patent Document 1 described above can reduce the operator's workload because it can specify the highlight distribution center position on the object, what kind of shading is applied to the two-dimensional image by the highlight reflection effect. (For example, the size of the highlight, the range, the shade of the color, the degree of blurring of the outline, etc.) is a situation that cannot be understood unless you actually try it. Eventually, the image that the operator intended while repeating trial and error There is a problem that it is necessary to work closer to the object.

本発明は、以上の点に鑑みてなされたものであり、仮想空間における物体に、意図した通りの陰影が施された2次元画像を容易に生成することを可能とする画像生成装置、画像生成方法等を提供することを目的とする。 The present invention has been made in view of the above, the object in the virtual space, the image generating device makes it possible to easily generate a two-dimensional image shading intended by has been subjected, the image generation The purpose is to provide a method and the like.

上記課題を解決するために、請求項1に記載の発明は、仮想空間における物体の形状データに基づいて、当該物体の2次元画像を生成する画像生成装置であって、前記2次元画像を表示する表示手段と、前記表示された2次元画像の任意の領域に対してハイライト表現を付加するハイライト表現付加手段と、前記ハイライト表現付加手段によりハイライト表現が付加された領域に対応する前記物体の表面の領域におけるハイライトの照度分布が、前記付加されたハイライト表現により表現された照度分布となるような光強度分布を有する光源を、前記仮想空間に生成する光源生成手段と、前記生成された光源を用いて、前記物体の新たな2次元画像を生成する2次元画像生成手段と、を備えることを特徴とする。 In order to solve the above-described problem, the invention described in claim 1 is an image generation apparatus that generates a two-dimensional image of an object based on shape data of the object in a virtual space, and displays the two-dimensional image. and display means for, highlight expression adding means for adding highlighting representation for any region of the displayed two-dimensional image, corresponding to the area highlighted representation is added by the highlight expressing adding means A light source generating means for generating, in the virtual space, a surface light source having a light intensity distribution such that an illuminance distribution of highlight in a region of the surface of the object becomes an illuminance distribution expressed by the added highlight expression ; And a two-dimensional image generating means for generating a new two-dimensional image of the object using the generated surface light source.

請求項2に記載の発明は、請求項1に記載の画像生成装置において、前記ハイライト表現付加手段により付加されたハイライト表現の照度分布を求め、前記光源生成手段により生成された面光源は前記物体表面に対する視線方向からの正反射方向に位置し、求められた照度分布に応じた光強度分布を有することを特徴とする。 According to a second aspect of the present invention, in the image generating apparatus according to the first aspect , the illuminance distribution of the highlight expression added by the highlight expression adding means is obtained, and the surface light source generated by the light source generating means is The light source is located in the regular reflection direction from the line-of-sight direction with respect to the object surface, and has a light intensity distribution according to the obtained illuminance distribution.

請求項3に記載の発明は、仮想空間における物体の形状データに基づいて、当該物体の2次元画像を生成する画像生成装置における画像生成方法であって、前記画像生成装置が備える表示制御手段が、前記2次元画像を表示部に表示させる表示工程と、前記画像生成装置が備えるハイライト表現付加手段が、入力部から入力された指示に基づいて前記表示された2次元画像の任意の領域に対してハイライト表現を付加するハイライト表現付加工程と、前記画像生成装置が備える光源生成手段が、前記ハイライト表現付加工程においてハイライト表現が付加された領域に対応する前記物体の表面の領域におけるハイライトの照度分布が、前記付加されたハイライト表現により表現された照度分布となるような光強度分布を有する面光源を、前記仮想空間に生成する光源生成工程と、前記画像生成装置が備える2次元画像生成手段が、前記生成された面光源を用いて、前記物体の新たな2次元画像を生成する2次元画像生成工程と、を含むことを特徴とする。 The invention according to claim 3 is an image generation method in an image generation apparatus that generates a two-dimensional image of an object based on shape data of the object in a virtual space, wherein the display control means included in the image generation apparatus includes A display step of displaying the two-dimensional image on a display unit, and a highlight expression adding unit included in the image generation device, in an arbitrary region of the displayed two-dimensional image based on an instruction input from the input unit A highlight expression adding step for adding a highlight expression to the area, and a light source generating means included in the image generation apparatus includes a region on the surface of the object corresponding to the area to which the highlight expression is added in the highlight expression adding step. A surface light source having a light intensity distribution such that the illuminance distribution of the highlight is an illuminance distribution expressed by the added highlight expression, A light source generating step of generating the virtual space, the two-dimensional image generating means for said image generating device comprises, using the generated surface light source, a two-dimensional image generating step of generating a new two-dimensional image of the object , Including.

請求項に記載の発明は、コンピュータを、請求項1または請求項2に記載の画像生成装置として機能させることを特徴とする。 According to a fourth aspect of the present invention, a computer is caused to function as the image generation apparatus according to the first or second aspect.

本発明によれば、表示された物体の2次元画像に対して、例えば、ハイライトの大きさ、範囲、色の濃淡、輪郭のぼかし具合等のハイライト表現が付加されると、この付加されたハイライトを有する2次元画像が生成されるような光強度分布を有する光源を生成し、この光源を用いて、2次元画像に付加されたハイライト表現通りにハイライト付けされた物体の新たな2次元画像が生成されるので、意図した通りのハイライトを有する2次元画像を容易に生成することが可能となる。 According to the present invention, with respect to two-dimensional images of the displayed object, for example, the size of the highlight range, shades of color, the highlight expression, such as blurring degree of the contour is added, is the additional A surface light source having a light intensity distribution that generates a two-dimensional image having a highlight is generated, and an object highlighted using the surface light source in accordance with a highlight expression added to the two-dimensional image Therefore, it is possible to easily generate a two-dimensional image having a highlight as intended.

以下、図面を参照して本発明の最良の実施形態について詳細に説明する。なお、以下に説明する実施の形態は、仮想空間における物体の、ハイライト付けされた2次元画像を生成して画面に表示させるハイライト画像生成装置に対して本発明を適用した場合の実施形態である。   Hereinafter, the best embodiment of the present invention will be described in detail with reference to the drawings. The embodiment described below is an embodiment when the present invention is applied to a highlight image generation apparatus that generates a highlighted two-dimensional image of an object in a virtual space and displays it on a screen. It is.

[1]ハイライト画像生成装置Sの構成及び機能概要
先ず、本実施形態に係るハイライト画像生成装置Sの構成及び機能について説明する。
[1] Outline of Configuration and Function of Highlight Image Generation Device S First, the configuration and function of the highlight image generation device S according to the present embodiment will be described.

図1は、本実施形態に係るハイライト画像生成装置Sの概要構成の一例を示すブロック図である。   FIG. 1 is a block diagram illustrating an example of a schematic configuration of a highlight image generation apparatus S according to the present embodiment.

図1に示すように、ハイライト画像生成装置は、CPU、RAM、ROM等を備える制御部1と、各種プログラム(例えば、画像生成処理プログラム等)及びデータ(光源データ、形状・材質データ等)等を記憶する記憶部2(例えば、ハードディスクドライブ、フロッピー(登録商標)ディスクドライブ、光ディスクドライブ等)と、陰影表現付加手段としての入力指示部3(例えば、キーボード、マウス、ライトペン等)と、表示手段としての画像表示部4(例えば、ディスプレー等)と、により構成されている。   As shown in FIG. 1, the highlight image generation apparatus includes a control unit 1 including a CPU, a RAM, a ROM, etc., various programs (for example, an image generation processing program) and data (light source data, shape / material data, etc.). Storage unit 2 (for example, hard disk drive, floppy (registered trademark) disk drive, optical disk drive, etc.), and input instruction unit 3 (for example, keyboard, mouse, light pen, etc.) as shadow expression adding means, And an image display unit 4 (for example, a display) as display means.

ハイライト画像生成装置Sとしては、例えば、パーソナルコンピュータ、ワークステーション、PDA(Personal Digital Assistant)等が適用可能である。   As the highlight image generation apparatus S, for example, a personal computer, a workstation, a PDA (Personal Digital Assistant), or the like is applicable.

制御部1は、CPUが、ROMまたは記憶部2に記憶された各種プログラムを読み出し実行することにより、ハイライト画像生成装置Sを統括制御するとともに、本実施形態に係る光源生成手段、2次元画像生成手段として機能するようになっている。 The control unit 1 reads and executes various programs stored in the ROM or the storage unit 2 by the CPU, thereby performing overall control of the highlight image generation device S, and the light source generation unit and the two-dimensional image according to the present embodiment. and functions as generating means or the like.

また、制御部1は、機能的に、形状・材質データ保持部11と、視点データ保持部12と、光源データ保持部13と、ハイライトデータ保持部14と、源生成手段としてのハイライト生成部15と、2次元画像生成手段としての画像生成部16と、により構成されている。 The control unit 1 functionally includes the shape, material data holding unit 11, a viewpoint data storage unit 12, a light source data storage unit 13, the highlight data holding unit 14, the highlight of a light source generating means The generation unit 15 and an image generation unit 16 as a two-dimensional image generation unit are configured.

形状・材質データ保持部11には、記憶部2から読み出されたオブジェクトの形状データ(例えば、頂点の位置、線分データ、面データ等)、材質データ(例えば、反射率等)が記憶される。   The shape / material data holding unit 11 stores object shape data (for example, vertex position, line segment data, surface data, etc.) and material data (for example, reflectance) read from the storage unit 2. The

視点データ保持部12には、例えば、視点の位置、視線方向、視野角等のデータが記憶される。   The viewpoint data holding unit 12 stores, for example, data such as a viewpoint position, a line-of-sight direction, and a viewing angle.

光源データ保持部13には、記憶部2から読み出された光源の種類、位置、光強度等のデータが記憶されている。また、光源データ保持部13には、ハイライト光源の光強度分布等のデータが記憶される。   The light source data holding unit 13 stores data such as the type, position, and light intensity of the light source read from the storage unit 2. The light source data holding unit 13 stores data such as the light intensity distribution of the highlight light source.

ハイライト生成部15により生成されるハイライト光源は、ある広がりを有する面光源であり、その領域内の各位置で独立した光強度(光源の輝度)を有している。従って、光源の領域全体で、ある光強度分布を有することとなり、そのデータは、例えば、光源の領域内における位置と対応付けられた光強度のマップを、RGB各色ごとに構成した構造を有している。   The highlight light source generated by the highlight generation unit 15 is a surface light source having a certain spread, and has independent light intensity (luminance of the light source) at each position in the region. Accordingly, the entire light source region has a certain light intensity distribution, and the data has, for example, a structure in which a light intensity map associated with a position in the light source region is configured for each color of RGB. ing.

ハイライトデータ保持部14には、ハイライト生成部15により、オブジェクト表面に生成されたハイライト領域のハイライト分布(本実施形態に係る照度分布)等が記憶される。   The highlight data holding unit 14 stores the highlight distribution (illuminance distribution according to the present embodiment) of the highlight area generated on the object surface by the highlight generation unit 15.

ハイライト分布とは、仮想空間上のオブジェクト表面において、ハイライト光に照らされた領域内の各位置における照度(光源に照らされた部分の輝度)の集まりによる分布であり、そのデータは、例えば、ハイライト光に照らされた領域内における位置と対応付けられた照度のマップを、RGB各色ごとに構成した構造を有している。   The highlight distribution is a distribution based on a collection of illuminance (brightness of the portion illuminated by the light source) at each position in the area illuminated by the highlight light on the object surface in the virtual space. The illuminance map associated with the position in the region illuminated by the highlight light has a structure configured for each color of RGB.

ハイライト生成部15は、入力指示部3により、画像表示部4に表示されたオブジェクトの2次元画像の任意の領域に対して付加されたハイライト表現のハイライト分布を、仮想空間におけるオブジェクトの表面に座標変換して、オブジェクトの表面におけるハイライト分布を生成するが、その具体的な方法について以下に説明する。   The highlight generation unit 15 converts the highlight distribution of the highlight expression added to an arbitrary area of the two-dimensional image of the object displayed on the image display unit 4 by the input instructing unit 3 to the object in the virtual space. A coordinate distribution is converted to the surface to generate a highlight distribution on the surface of the object. A specific method will be described below.

3次元仮想空間におけるオブジェクトの2次元画像をビューウインドウ(投影面上において、画像表示部4に表示される領域)上に変換するには、例えば、射影変換により、オブジェクトのワールド座標(仮想空間における座標)からウインドウ座標(ビューウインドウにおける座標)に変換させる。具体的には、所定の射影変換行列とオブジェクトのワールド座標とを掛け合わせることでウインドウ座標を求める。   In order to convert a two-dimensional image of an object in the three-dimensional virtual space onto a view window (an area displayed on the image display unit 4 on the projection plane), for example, by projective transformation, the world coordinates of the object (in the virtual space) Coordinates) to window coordinates (coordinates in the view window). Specifically, the window coordinates are obtained by multiplying a predetermined projective transformation matrix and the world coordinates of the object.

ハイライト生成部15は、ビューウインドウ上にハイライト表現が付加された領域のハイライト分布からオブジェクト表面におけるハイライト分布を計算し、これをハイライトデータ保持部14に記憶させる。 The highlight generation unit 15 calculates the highlight distribution on the object surface from the highlight distribution of the region where the highlight expression is added on the view window, and stores this in the highlight data holding unit 14.

また、ハイライト生成部15は、オブジェクト表面におけるハイライト分布を、仮想空間における環境オブジェクトに映し込んでハイライト光源を生成する。 The highlight generation unit 15 reflects the highlight distribution on the object surface on the environment object in the virtual space to generate a highlight light source.

これは、鏡面反射によりオブジェクト表面に他のオブジェクトを映し込む手法の一つであるリフレクションマッピングと同様の考え方により行われるが、その具体的な方法について以下に説明する。   This is performed based on the same idea as reflection mapping, which is one of the methods of reflecting other objects on the object surface by specular reflection. The specific method will be described below.

図2は、ハイライト光源が生成される様子の一例を示す図である。   FIG. 2 is a diagram illustrating an example of how a highlight light source is generated.

図2に示すように、オブジェクト表面におけるハイライトが分布する範囲をSとし、その範囲内のある位置xにおける反射光の照度をPc(x)とする(Pc(x)は、オブジェクト表面におけるイライト分布の位置xにおける照度と等しい)。 As shown in FIG. 2, the range in which highlight the object surface are distributed as S, the illuminance of the reflected light at the position x that within that range as Pc (x) (Pc (x ) is Ha in the object surface Equal to the illuminance at position x of the illite distribution).

先ず、視点から、オブジェクト表面における位置xに向かう視線方向Vを求める。次いで、オブジェクト表面における位置xに対する視線方向Vからの正反射方向Rを求める。そして、位置xからの正反射方向Rと環境オブジェクト面との交差する位置θを求める。範囲Sに対する位置θの取り得る範囲をωとすると、ωをその範囲としたハイライト光源が生成されることになる。   First, the line-of-sight direction V toward the position x on the object surface is obtained from the viewpoint. Next, a regular reflection direction R from the line-of-sight direction V with respect to the position x on the object surface is obtained. Then, a position θ where the regular reflection direction R from the position x intersects the environmental object plane is obtained. If a possible range of the position θ with respect to the range S is ω, a highlight light source having ω as the range is generated.

位置θにおけるハイライト光源の光強度Pr(θ)は、次式により求めることができる。   The light intensity Pr (θ) of the highlight light source at the position θ can be obtained by the following equation.

Figure 0004839760
式1において、kはハイライト反射係数であり、予め光源データ保持部13に記憶されている。
Figure 0004839760
In Equation 1, k is a highlight reflection coefficient and is stored in the light source data holding unit 13 in advance.

ハイライト生成部15は、範囲S全域(範囲ω全域)について光強度を求め、ハイライト光源の光強度分布として光源データ格納部13に記憶させる。   The highlight generation unit 15 obtains the light intensity for the entire range S (the entire range ω) and stores it in the light source data storage unit 13 as the light intensity distribution of the highlight light source.

このようにして、ハイライト生成部15は、画像表示部4に表示された2次元画像に付加されたハイライトを有するオブジェクトの2次元画像が生成されるような光強度分布を有するハイライト光源を、仮想空間に生成する光源生成手段として機能する。   In this way, the highlight generation unit 15 is a highlight light source having a light intensity distribution that generates a two-dimensional image of an object having a highlight added to the two-dimensional image displayed on the image display unit 4. As a light source generating means for generating in a virtual space.

画像生成部16は、形状・材質データ、視点データ、光源データ等に基づいて、射影変換、クリッピング、隠面消去、シェーディング、テクスチャマッピング等を含むレンダリング処理によりオブジェクトの新たな2次元画像を生成し、画像表示部4に表示する。   The image generation unit 16 generates a new two-dimensional image of the object through rendering processing including projective transformation, clipping, hidden surface removal, shading, texture mapping, and the like based on the shape / material data, viewpoint data, light source data, and the like. Are displayed on the image display unit 4.

シェーディング処理において、オブジェクト表面の位置xに対するハイライト光源による反射光の照度Pc(x)は、式1を変形した次式により求められる。   In the shading process, the illuminance Pc (x) of the reflected light from the highlight light source with respect to the position x on the object surface is obtained by the following equation obtained by modifying Equation 1.

Figure 0004839760
なお、その他の処理は公知であるので詳しい説明は省略する。
Figure 0004839760
Since other processes are publicly known, detailed description is omitted.

次に、オブジェクトにハイライトを付加するための操作画面について説明する。図3は、本実施形態に係る操作画面の一例を示す図である。   Next, an operation screen for adding highlight to an object will be described. FIG. 3 is a diagram illustrating an example of an operation screen according to the present embodiment.

オペレータによる入力指示部3の操作により、画像生成プログラムが起動されると、画像表示部4に、例えば、図3に示すような操作画面が表示される。   When the image generation program is started by the operation of the input instruction unit 3 by the operator, for example, an operation screen as shown in FIG. 3 is displayed on the image display unit 4.

操作画面には、オブジェクトの2次元画像411が表示される画像表示エリア41と、ハイライトカラーを選択するためのカラー選択メニュー42と、ハイライトを付加するブラシの形状(大きさ、輪郭のぼかし具合等)を選択するためのブラシ選択メニュー43と、2次元画像の生成を開始させるための画像生成ボタン44と、が設けられている。   The operation screen includes an image display area 41 on which a two-dimensional image 411 of an object is displayed, a color selection menu 42 for selecting a highlight color, and a shape (size and outline blur) of a brush to which highlight is added. A brush selection menu 43 for selecting a condition, and an image generation button 44 for starting generation of a two-dimensional image.

オペレータが、入力指示部3により、カラー選択メニュー42の中から、2次元画像411に付加したいハイライトカラーを選択し、また、ブラシ選択メニュー43からブラシの形状を選択する。   The operator selects a highlight color to be added to the two-dimensional image 411 from the color selection menu 42 using the input instruction unit 3, and selects a brush shape from the brush selection menu 43.

次いで、オペレータが、例えば、2次元画像411上の任意の位置でマウスのボタンを押しながら、ハイライト表示させたい領域をなぞるようにしてマウスを動かすと、2次元画像411上にハイライト表現412が付加されて表示される。   Next, for example, when the operator moves the mouse so as to trace the area to be highlighted while pressing the mouse button at an arbitrary position on the two-dimensional image 411, the highlight expression 412 is displayed on the two-dimensional image 411. Is displayed.

このようにして、入力指示部3は、画像表示部4に表示された2次元画像の任意の領域に対してハイライト表現412を付加する陰影表現付加手段として機能する。なお、この後、別のハイライトカラーまたは別のブラシ形状を選択して、更に、ハイライト表現412を付加するようにしても良い。   In this way, the input instruction unit 3 functions as a shadow expression adding unit that adds the highlight expression 412 to an arbitrary region of the two-dimensional image displayed on the image display unit 4. After that, another highlight color or another brush shape may be selected and a highlight expression 412 may be further added.

このようにして、オペレータの意図したハイライト表現412が付加されたら、オペレータが、入力指示部3を操作して画像生成ボタン44を選択することにより、ハイライト光源の生成及び2次元画像の生成が開始される。   When the highlight expression 412 intended by the operator is added in this way, the operator operates the input instruction unit 3 to select the image generation button 44, thereby generating a highlight light source and a two-dimensional image. Is started.

[2]ハイライト画像生成装置Sの動作
次に、以上の構成を有するハイライト画像生成装置Sにおける動作例について説明する。
[2] Operation of Highlight Image Generating Device S Next, an operation example of the highlight image generating device S having the above configuration will be described.

図4は、2次元画像にハイライト表現が付加された領域からハイライト光源が生成されるまでの様子の一例を示す図である。また、図5は、本実施形態に係るハイライト画像生成装置Sの処理の流れの一例を示すフローチャートである。   FIG. 4 is a diagram illustrating an example of a state from when a highlight expression is added to a two-dimensional image until a highlight light source is generated. FIG. 5 is a flowchart illustrating an example of a process flow of the highlight image generation apparatus S according to the present embodiment.

図4に示すように、仮想空間上にはオブジェクト101が配置され、それを内包するようにして環境オブジェクト102が配置されている(本実施形態に係る環境オブジェクトは球体であるが、例えば、立方体であっても良い)。また、視点位置、視野角等に基づき、クリッピング処理のためのビューボリューム103が構成され、ビューボリューム103を有限にするための近クリップ面103aと遠クリップ面103bとが、オブジェクト101の2次元画像が投影されるビューウインドウ104と平行にして設けられている。なお、ビューウインドウ104は、本来、概念的にはビューボリューム103内に位置するが、図4においては、説明のために、ビューボリューム103の外側に示している。   As shown in FIG. 4, an object 101 is arranged in a virtual space, and an environmental object 102 is arranged so as to contain it (the environmental object according to the present embodiment is a sphere, but for example, a cube May be). Further, a view volume 103 for clipping processing is configured based on the viewpoint position, the viewing angle, and the like, and the near clip plane 103a and the far clip plane 103b for limiting the view volume 103 are two-dimensional images of the object 101. Are provided in parallel with the view window 104 on which the image is projected. Note that the view window 104 is originally conceptually located in the view volume 103, but in FIG. 4, it is shown outside the view volume 103 for explanation.

2次元画像に対してハイライト表現412が付加され、画像生成ボタン44が選択されると、図5に示すように、ハイライト生成部15は、ハイライト表現412が付加された領域上の画素の、ビューウインドウ104におけるウインドウ座標Pwを、近クリップ面103a上の座標Psに変換する(ステップS1)。この変換は、例えば、次式により求められる。   When the highlight expression 412 is added to the two-dimensional image and the image generation button 44 is selected, as illustrated in FIG. 5, the highlight generation unit 15 displays the pixels on the area to which the highlight expression 412 is added. The window coordinates Pw in the view window 104 are converted into coordinates Ps on the near clip plane 103a (step S1). This conversion is obtained by the following equation, for example.

Figure 0004839760
なお、式3において、Mvはビューポート変換行列であり、この行列は、ビューウインドウと近クリップ面103aとの縦の長さの比、横の長さの比により求めることができる。
Figure 0004839760
In Equation 3, Mv is a viewport transformation matrix, and this matrix can be obtained by the ratio of the vertical length and the horizontal length of the view window and the near clip plane 103a.

次いで、ハイライト生成部15は、座標Psをワールド座標Pnvに変換する(ステップS2)。   Next, the highlight generation unit 15 converts the coordinates Ps to world coordinates Pnv (step S2).

そして、ハイライト生成部15は、視点105の位置(ワールド座標Vv)とPnvを通る直線方向Vとオブジェクト101の表面が交差する位置の座標Pv求める(ステップS3)。 Then, the highlight generation unit 15 obtains the coordinates Pv of the position where the position of the viewpoint 105 (world coordinates Vv), the straight line direction V passing through Pnv, and the surface of the object 101 intersect (Step S3).

次いで、ハイライト生成部15は、オブジェクト101の表面座標Pvにおける照度として、ビューウインドウ104上の座標Pwにおけるハイライトカラーの照度を、座標Pvに対応付けてハイライトデータ保持部14に記憶する(ステップS4)。 Then, the highlight generating unit 15, as illuminance at coordinates Pv of the surface of the object 101, stores the illuminance of the highlight color in the coordinates Pw on view window 104, the highlight data holding unit 14 in association with the coordinates Pv (Step S4).

その後、ハイライト生成部15は、ハイライト表現412が付加された領域上の全画素について処理が行われたか否かを判定し(ステップS5)、処理していない画素がある場合は(ステップS5:NO)、残りの画素についてステップS1〜S4の処理を繰り返す。   Thereafter, the highlight generation unit 15 determines whether or not processing has been performed for all the pixels on the region to which the highlight expression 412 is added (step S5), and if there is a pixel that has not been processed (step S5). : NO), the process of steps S1 to S4 is repeated for the remaining pixels.

そして、全ての画素について処理が行われると(ステップS5:YES)、オブジェクト101の表面のハイライトの領域の全ての照度がハイライトデータ保持部14に記憶されることにより、オブジェクト101の表面におけるハイライト分布106の生成が完了する。 When all the pixels are processed (step S5: YES), all the illuminances in the highlight area on the surface of the object 101 are stored in the highlight data holding unit 14, thereby The generation of the highlight distribution 106 is completed.

その後、ハイライト生成部15は、オブジェクト101の表面に生成されたハイライト分布106について、前述した方法により、環境オブジェクト102上の光源の座標Lvを求め(ステップS6)、オブジェクト101の表面における座標Pvの照度に対応する、ハイライト光源の光強度を式1により求め(ステップS7)、光源データ保持部13に記憶させる(ステップS8)。   Thereafter, the highlight generation unit 15 obtains the coordinates Lv of the light source on the environmental object 102 with respect to the highlight distribution 106 generated on the surface of the object 101 by the method described above (step S6), and coordinates on the surface of the object 101 The light intensity of the highlight light source corresponding to the illuminance of Pv is obtained by Equation 1 (step S7) and stored in the light source data holding unit 13 (step S8).

次いで、ハイライト分布106の全ての位置について処理が行われたか否かを判定し(ステップS9)、処理していない位置がある場合(ステップS5:NO)、ハイライト生成部15は、残りの位置についてステップS6〜S8の処理を繰り返す。   Next, it is determined whether or not processing has been performed for all positions of the highlight distribution 106 (step S9). If there is a position that has not been processed (step S5: NO), the highlight generation unit 15 The processes in steps S6 to S8 are repeated for the position.

そして、全ての位置について処理が行われると(ステップS9:YES)、ハイライト光源107の光強度分布が光源データ記憶部13に記憶され、ハイライト光源107の生成が完了し、ステップS10に移行する。   When the processing is performed for all positions (step S9: YES), the light intensity distribution of the highlight light source 107 is stored in the light source data storage unit 13, the generation of the highlight light source 107 is completed, and the process proceeds to step S10. To do.

ステップS10においては、画像生成部16が、形状・材質データ、視点データ、ハイライト生成部15により生成されたハイライト光源107の光源データ等を読み出し、これらのデータを用いて新たな2次元画像を生成し、画像表示部4に表示させる(ステップS11)。   In step S10, the image generation unit 16 reads shape / material data, viewpoint data, light source data of the highlight light source 107 generated by the highlight generation unit 15, and the like, and uses these data to create a new two-dimensional image. Is generated and displayed on the image display unit 4 (step S11).

このようにして生成された2次元画像のハイライト反射効果は、操作画面において付加されたハイライト表現と同等となる。すなわち、オペレータが意図したハイライト反射効果を直接的に指定できるのである。   The highlight reflection effect of the two-dimensional image generated in this way is equivalent to the highlight expression added on the operation screen. That is, the highlight reflection effect intended by the operator can be directly specified.

ところで、一旦、ハイライト光源を生成して、オブジェクトの2次元画像を生成した後に、視点の位置を変更し、または、オブジェクトを回転させ、あるいは、オブジェクトを移動させる等により、視点、オブジェクト及び光源の位置関係が変化すると、ハイライト反射効果が変化してしまい、意図したハイライトを得るために、オペレータによる作業が改めて必要となってしまう。   By the way, once the highlight light source is generated and the two-dimensional image of the object is generated, the viewpoint, the object, and the light source are changed by changing the position of the viewpoint, rotating the object, or moving the object. If the positional relationship changes, the highlight reflection effect changes, and the operator needs to work again to obtain the intended highlight.

しかし、本実施形態においては、このような場合でも、最初に2次元画像を生成したときのハイライトを簡単に再現することができる。   However, in this embodiment, even in such a case, the highlight when the two-dimensional image is first generated can be easily reproduced.

つまり、ハイライト生成部15によりハイライト光源を生成する際に、ハイライトデータをハイライトデータ記憶部2に記憶させているので、図5におけるステップ5の処理が終了した状態と同じ状態になっている。   That is, since the highlight data is stored in the highlight data storage unit 2 when the highlight light source is generated by the highlight generation unit 15, the state is the same as the state in which the process of step 5 in FIG. ing.

そこで、オペレータによる入力指示部3の操作により、画像生成ボタン44が選択されたら、ハイライト生成部15は、ステップS6から処理を開始し、視点位置、ハイライト領域の座標、ハイライトカラーの明度、オブジェクト表面のハイライト領域における法線方向等に基づいて、新たにハイライト光源を生成すれば良い。   Therefore, when the image generation button 44 is selected by the operation of the input instruction unit 3 by the operator, the highlight generation unit 15 starts processing from step S6, and the viewpoint position, the coordinates of the highlight area, and the brightness of the highlight color. A new highlight light source may be generated based on the normal direction in the highlight area of the object surface.

なお、オブジェクトを回転、移動等させる場合には、それに対応してハイライト領域の座標を変換すれば良い。   When the object is rotated, moved, etc., the coordinates of the highlight area may be converted accordingly.

以上説明したように、本実施形態によれば、画像表示部4に表示されたオブジェクトの2次元画像の任意の領域に対して、入力指示部3がハイライト表現を付加し、ハイライト生成部15が、この付加されたハイライトを有する2次元画像が生成されるような光強度分布を有するハイライト光源を仮想空間に生成し、このハイライト光源を用いて、画像生成部16が、オブジェクトの新たな2次元画像を生成するので、意図した通りの陰影が施された2次元画像を容易に生成することが可能となる。   As described above, according to the present embodiment, the input instruction unit 3 adds a highlight expression to an arbitrary region of the two-dimensional image of the object displayed on the image display unit 4, and the highlight generation unit 15 generates a highlight light source having a light intensity distribution in such a manner that a two-dimensional image having the added highlight is generated in the virtual space, and the image generation unit 16 uses the highlight light source to Therefore, it is possible to easily generate a two-dimensional image with a shade as intended.

また、入力指示部3により付加されたハイライト表現のハイライト分布を求め、オブジェクト表面に対する視線方向からの正反射方向に位置するハイライト光源であって、且つ、求められたハイライト分布に応じた光強度分布を有するハイライト光源を生成するので、リフレクションマッピング等の単純化された方法によりハイラ イト光源を生成して、意図した通りの陰影が施された2次元画像を生成することが可能となる。 Further, a highlight distribution of the highlight expression added by the input instruction unit 3 is obtained, and the highlight light source is located in the regular reflection direction from the line-of-sight direction with respect to the object surface, and according to the obtained highlight distribution. It is possible to generate a highlight light source with a simplified method such as reflection mapping and generate a two-dimensional image with a shade as intended. It becomes.

本実施形態に係るハイライト画像生成装置の概要構成の一例を示すブロック図である。It is a block diagram which shows an example of schematic structure of the highlight image generation apparatus which concerns on this embodiment. ハイライト光源が生成される様子の一例を示す図である。It is a figure which shows an example of a mode that a highlight light source is produced | generated. 本実施形態に係る操作画面の一例を示す図である。It is a figure which shows an example of the operation screen which concerns on this embodiment. 2次元画像にハイライト表現が付加された領域からハイライト光源が生成されるまでの様子の一例を示す図である。It is a figure which shows an example of a mode until a highlight light source is produced | generated from the area | region where highlight expression was added to the two-dimensional image. 本実施形態に係るハイライト画像生成装置Sの処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a process of the highlight image generation apparatus S which concerns on this embodiment.

符号の説明Explanation of symbols

1 制御部
2 記憶部
3 入力指示部
4 画像表示部
11 形状・材質データ保持部
12 視点データ保持部
13 光源データ保持部
14 ハイライトデータ保持部
15 ハイライト生成部
16 画像生成部
41 画像表示エリア
42 カラー選択メニュー
43 ブラシ選択メニュー
44 画像生成ボタン
101 オブジェクト
102 環境オブジェクト
103 ビューボリューム
103a 近クリップ面
103b 遠クリップ面
104 ビューウインドウ
105 視点
106 ハイライト分布
107 ハイライト光源
411 オブジェクトの2次元画像
412 ハイライト表現
S ハイライト画像生成装置
DESCRIPTION OF SYMBOLS 1 Control part 2 Memory | storage part 3 Input instruction | indication part 4 Image display part 11 Shape / material data holding part 12 Viewpoint data holding part 13 Light source data holding part 14 Highlight data holding part 15 Highlight generation part 16 Image generation part 41 Image display area 42 Color selection menu 43 Brush selection menu 44 Image generation button 101 Object 102 Environmental object 103 View volume 103a Near clip plane 103b Far clip plane 104 View window 105 View point 106 Highlight distribution 107 Highlight light source 411 Two-dimensional image of object 412 Highlight Representation S Highlight image generator

Claims (4)

仮想空間における物体の形状データに基づいて、当該物体の2次元画像を生成する画像生成装置であって、
前記2次元画像を表示する表示手段と、
前記表示された2次元画像の任意の領域に対してハイライト表現を付加するハイライト表現付加手段と、
前記ハイライト表現付加手段によりハイライト表現が付加された領域に対応する前記物体の表面の領域におけるハイライトの照度分布が、前記付加されたハイライト表現により表現された照度分布となるような光強度分布を有する面光源を、前記仮想空間に生成する光源生成手段と、
前記生成された面光源を用いて、前記物体の新たな2次元画像を生成する2次元画像生成手段と、
を備えることを特徴とする画像生成装置。
An image generation device that generates a two-dimensional image of an object based on shape data of the object in a virtual space,
Display means for displaying the two-dimensional image;
Highlight expression adding means for adding a highlight expression to an arbitrary region of the displayed two-dimensional image;
Light such that the illuminance distribution of the highlight in the area of the surface of the object corresponding to the area to which the highlight expression is added by the highlight expression adding means becomes the illuminance distribution expressed by the added highlight expression. A light source generating means for generating a surface light source having an intensity distribution in the virtual space;
Two-dimensional image generation means for generating a new two-dimensional image of the object using the generated surface light source;
An image generation apparatus comprising:
請求項1に記載の画像生成装置において、
前記ハイライト表現付加手段により付加されたハイライト表現の照度分布を求め、
前記光源生成手段により生成された面光源は前記物体表面に対する視線方向からの正反射方向に位置し、求められた照度分布に応じた光強度分布を有することを特徴とする画像生成装置。
The image generation apparatus according to claim 1,
Find the illuminance distribution of the highlight expression added by the highlight expression adding means ,
Surface light source generated by the light source generating means is located in the specular reflection direction from the viewing direction relative to the object surface, the image generating apparatus characterized by having a light intensity distribution corresponding to the obtained illumination distribution.
仮想空間における物体の形状データに基づいて、当該物体の2次元画像を生成する画像生成装置における画像生成方法であって、
前記画像生成装置が備える表示制御手段が、前記2次元画像を表示部に表示させる表示工程と、
前記画像生成装置が備えるハイライト表現付加手段が、入力部から入力された指示に基づいて前記表示された2次元画像の任意の領域に対してハイライト表現を付加するハイライト表現付加工程と、
前記画像生成装置が備える光源生成手段が、前記ハイライト表現付加工程においてハイライト表現が付加された領域に対応する前記物体の表面の領域におけるハイライトの照度分布が、前記付加されたハイライト表現により表現された照度分布となるような光強度分布を有する面光源を、前記仮想空間に生成する光源生成工程と、
前記画像生成装置が備える2次元画像生成手段が、前記生成された面光源を用いて、前記物体の新たな2次元画像を生成する2次元画像生成工程と、
を含むことを特徴とする画像生成方法。
An image generation method in an image generation apparatus that generates a two-dimensional image of an object based on shape data of the object in a virtual space,
A display step in which the display control means provided in the image generation device displays the two-dimensional image on a display unit ;
A highlight expression adding unit included in the image generation apparatus adds a highlight expression to an arbitrary area of the displayed two-dimensional image based on an instruction input from an input unit ;
The light source generation means included in the image generation apparatus is configured such that the illuminance distribution of the highlight in the area of the surface of the object corresponding to the area to which the highlight expression is added in the highlight expression adding step is the added highlight expression. A light source generation step of generating a surface light source having a light intensity distribution in the virtual space so as to be an illuminance distribution expressed by:
A two-dimensional image generation step in which a two-dimensional image generation means included in the image generation device generates a new two-dimensional image of the object using the generated surface light source;
An image generation method comprising:
コンピュータを、請求項1または請求項2に記載の画像生成装置として機能させることを特徴とする画像生成処理プログラム。   An image generation processing program for causing a computer to function as the image generation apparatus according to claim 1.
JP2005282189A 2005-09-28 2005-09-28 Image generation device, image generation method, etc. Expired - Fee Related JP4839760B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005282189A JP4839760B2 (en) 2005-09-28 2005-09-28 Image generation device, image generation method, etc.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005282189A JP4839760B2 (en) 2005-09-28 2005-09-28 Image generation device, image generation method, etc.

Publications (2)

Publication Number Publication Date
JP2007094680A JP2007094680A (en) 2007-04-12
JP4839760B2 true JP4839760B2 (en) 2011-12-21

Family

ID=37980338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005282189A Expired - Fee Related JP4839760B2 (en) 2005-09-28 2005-09-28 Image generation device, image generation method, etc.

Country Status (1)

Country Link
JP (1) JP4839760B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4831223B2 (en) * 2009-09-29 2011-12-07 カシオ計算機株式会社 Image display apparatus and method, and program
JP5762015B2 (en) * 2011-01-27 2015-08-12 キヤノン株式会社 Image processing apparatus, image processing method, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0737121A (en) * 1993-07-23 1995-02-07 Sharp Corp Picture processing method
JPH07129795A (en) * 1993-10-28 1995-05-19 Hitachi Ltd Computer graphic system provided with changing function for image illumination effect

Also Published As

Publication number Publication date
JP2007094680A (en) 2007-04-12

Similar Documents

Publication Publication Date Title
US6867787B1 (en) Character generator and character generating method
US6529206B1 (en) Image processing apparatus and method, and medium therefor
US6556195B1 (en) Image processing device and image processing method
JP5299173B2 (en) Image processing apparatus, image processing method, and program
KR19980702804A (en) Hardware Architecture for Image Generation and Manipulation
JP2007066064A (en) Image generating device and image generating program
US7542033B2 (en) Method and program for generating a two-dimensional cartoonish picturization of a three-dimensional object
JP3777149B2 (en) Program, information storage medium, and image generation apparatus
JP3748545B2 (en) Program, information storage medium, and image generation apparatus
JP2006107093A (en) Image processor and program
JP4839760B2 (en) Image generation device, image generation method, etc.
US6744440B1 (en) Image processing apparatus, recording medium, and program
JP2017059041A (en) Image processing device, image processing method, and program
JP2003115055A (en) Image generator
JP6930091B2 (en) Image processing equipment, image processing methods, image processing systems and programs
JP2003168130A (en) System for previewing photorealistic rendering of synthetic scene in real-time
KR100496956B1 (en) Comparing Method of Two 3D CAD Files
JP3586253B2 (en) Texture mapping program
JP2020013390A (en) Information processing apparatus, information processing program, and information processing method
JP2000057376A (en) Method for generating new viewpoint image
JP2007183832A (en) Display control system, display control method, and program
JP2005235015A (en) Three-dimensional image generation device and three-dimensional image generation method
JP3453410B2 (en) Image processing apparatus and method
JP2000163601A (en) Image processor, image processing method and recording medium
JP2968209B2 (en) Three-dimensional graphics editing apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080808

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110210

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110510

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110729

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20110808

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110919

R150 Certificate of patent or registration of utility model

Ref document number: 4839760

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20141014

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees